summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-02-09 11:50:41 +0000
committerMichael Zucci <zucchi@src.gnome.org>2004-02-09 11:50:41 +0000
commit710f3d5448c317dd241b58342b3b95d51ea9ea3d (patch)
tree37fa6790ea2d9c5a7e058525a889fc6f444d1773
parenta9a477b24033077c51595dbe0f78bdd4ec47224f (diff)
downloadevolution-data-server-710f3d5448c317dd241b58342b3b95d51ea9ea3d.tar.gz
** See bug #53978.EVOLUION_1_5_4
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.
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/providers/local/camel-mbox-store.c6
2 files changed, 11 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 8beb93b3e..9812ba240 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 2567978fa..1eb827d82 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]))