Blame SOURCES/evolution-data-server-3.8.5-maildir-tmp-autocreate.patch
|
|
9cfe9a |
diff -up evolution-data-server-3.8.5/camel/providers/local/camel-maildir-store.c.maildir-tmp-autocreate evolution-data-server-3.8.5/camel/providers/local/camel-maildir-store.c
|
|
|
9cfe9a |
--- evolution-data-server-3.8.5/camel/providers/local/camel-maildir-store.c.maildir-tmp-autocreate 2013-07-23 13:57:51.000000000 +0200
|
|
|
9cfe9a |
+++ evolution-data-server-3.8.5/camel/providers/local/camel-maildir-store.c 2013-08-12 10:31:18.600063994 +0200
|
|
|
9cfe9a |
@@ -506,9 +506,11 @@ scan_fi (CamelStore *store,
|
|
|
9cfe9a |
cur = g_build_filename (path, dir_name, "cur", NULL);
|
|
|
9cfe9a |
new = g_build_filename (path, dir_name, "new", NULL);
|
|
|
9cfe9a |
|
|
|
9cfe9a |
- if (!(g_stat (tmp, &st) == 0 && S_ISDIR (st.st_mode)
|
|
|
9cfe9a |
- && g_stat (cur, &st) == 0 && S_ISDIR (st.st_mode)
|
|
|
9cfe9a |
- && g_stat (new, &st) == 0 && S_ISDIR (st.st_mode)))
|
|
|
9cfe9a |
+ if (!(g_stat (cur, &st) == 0 && S_ISDIR (st.st_mode)
|
|
|
9cfe9a |
+ && g_stat (new, &st) == 0 && S_ISDIR (st.st_mode)
|
|
|
9cfe9a |
+ /* Create 'tmp' dir on demand, if other directories are there,
|
|
|
9cfe9a |
+ because some backup tools can drop the 'tmp' directory. */
|
|
|
9cfe9a |
+ && ((g_stat (tmp, &st) == 0 && S_ISDIR (st.st_mode)) || g_mkdir (tmp, 0700) == 0)))
|
|
|
9cfe9a |
fi->flags |= CAMEL_FOLDER_NOSELECT;
|
|
|
9cfe9a |
|
|
|
9cfe9a |
g_free (new);
|