* <many>: (WIP) use ~/mu/xapian as the database with an embedded version tag

- add checks in the code to make sure the database is up to date,
    if not, warn the user.
This commit is contained in:
Dirk-Jan C. Binnema
2010-01-23 20:50:06 +02:00
parent d5aa4e92e0
commit 501ce008d3
15 changed files with 265 additions and 29 deletions

View File

@ -530,12 +530,10 @@ clear_links (const gchar* dirname, DIR *dir)
continue;
}
if (entry->d_type == DT_LNK) {
if (unlink (fullpath) != 0) {
g_warning ("error unlinking %s: %s",
fullpath, strerror(errno));
rv = FALSE;
}
if (entry->d_type == DT_LNK && unlink (fullpath) != 0) {
g_warning ("error unlinking %s: %s",
fullpath, strerror(errno));
rv = FALSE;
} else /* == DT_DIR, see check before*/
rv = mu_maildir_clear_links (fullpath);
}