aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-02-09 19:50:41 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-02-09 19:50:41 +0800
commit4287c8e129507c5b4120f0038f2f130130a81633 (patch)
tree2922ae122e73561bd7eddc45e6848d3c55ecf89c /camel/providers
parent6dd04ef03f9b900d8ee6e7d9e611fb368db6dd6e (diff)
downloadgsoc2013-evolution-4287c8e129507c5b4120f0038f2f130130a81633.tar
gsoc2013-evolution-4287c8e129507c5b4120f0038f2f130130a81633.tar.gz
gsoc2013-evolution-4287c8e129507c5b4120f0038f2f130130a81633.tar.bz2
gsoc2013-evolution-4287c8e129507c5b4120f0038f2f130130a81633.tar.lz
gsoc2013-evolution-4287c8e129507c5b4120f0038f2f130130a81633.tar.xz
gsoc2013-evolution-4287c8e129507c5b4120f0038f2f130130a81633.tar.zst
gsoc2013-evolution-4287c8e129507c5b4120f0038f2f130130a81633.zip
** See bug #53978.
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. svn path=/trunk/; revision=24678
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/local/camel-mbox-store.c6
1 files changed, 5 insertions, 1 deletions
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]))