diff options
author | Not Zed <NotZed@Ximian.com> | 2004-02-05 20:29:58 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-02-05 20:29:58 +0800 |
commit | 5a167b9be36bd11bb3b61c021d6a41b90c728cac (patch) | |
tree | b4e5a7ab5e73f5c625ff21747b220e2cd2f71012 /mail/em-folder-tree.c | |
parent | 9e58087307421a11742b41003edda9a7b949bd31 (diff) | |
download | gsoc2013-evolution-5a167b9be36bd11bb3b61c021d6a41b90c728cac.tar.gz gsoc2013-evolution-5a167b9be36bd11bb3b61c021d6a41b90c728cac.tar.zst gsoc2013-evolution-5a167b9be36bd11bb3b61c021d6a41b90c728cac.zip |
sync the from folder if we're going to delete it, otherwise we can't
2004-02-05 Not Zed <NotZed@Ximian.com>
* em-folder-tree.c (emft_copy_folders__copy): sync the from folder
if we're going to delete it, otherwise we can't because its not
empty. See #53815.
svn path=/trunk/; revision=24631
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r-- | mail/em-folder-tree.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index 4436cc46d1..776a5c9ef0 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -1041,6 +1041,9 @@ emft_copy_folders__copy (struct _mail_msg *mm) camel_folder_transfer_messages_to (fromfolder, uids, tofolder, NULL, m->delete, &mm->ex); camel_folder_free_uids (fromfolder, uids); + if (m->delete) + camel_folder_sync(fromfolder, TRUE, NULL); + camel_object_unref (fromfolder); camel_object_unref (tofolder); } @@ -1061,6 +1064,9 @@ emft_copy_folders__copy (struct _mail_msg *mm) d(printf ("deleting folder '%s'\n", info->full_name)); + /* FIXME: we need to do something with the exception + since otherwise the users sees a failed operation + with no error message or even any warnings */ if (camel_store_supports_subscriptions (m->fromstore)) camel_store_unsubscribe_folder (m->fromstore, info->full_name, NULL); |