diff options
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 6 | ||||
-rw-r--r-- | camel/providers/local/camel-mbox-store.c | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 8beb93b3eb..9812ba2404 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,11 @@ 2004-02-09 Not Zed <NotZed@Ximian.com> + ** See bug #53978. + + * providers/local/camel-mbox-store.c: added ".lock" to the list of + ignored extensions. + (ignore_file): ignore anything ending in ~ too. + ** See bug #51319. * providers/local/camel-local-folder.c diff --git a/camel/providers/local/camel-mbox-store.c b/camel/providers/local/camel-mbox-store.c index 2567978fa1..1eb827d823 100644 --- a/camel/providers/local/camel-mbox-store.c +++ b/camel/providers/local/camel-mbox-store.c @@ -108,7 +108,7 @@ mbox_folder_name_to_meta_path(CamelStore *store, const char *folder_name, const } static char *extensions[] = { - ".msf", ".ev-summary", ".ibex.index", ".ibex.index.data", ".cmeta" + ".msf", ".ev-summary", ".ibex.index", ".ibex.index.data", ".cmeta", ".lock" }; static gboolean @@ -116,7 +116,11 @@ ignore_file(const char *filename, gboolean sbd) { int flen, len, i; + /* TODO: Should probably just be 1 regex */ flen = strlen(filename); + if (flen > 0 && filename[flen-1] == '~') + return TRUE; + for (i = 0; i <(sizeof(extensions) / sizeof(extensions[0])); i++) { len = strlen(extensions[i]); if (len < flen && !strcmp(filename + flen - len, extensions[i])) |