aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-10-29 15:08:52 +0800
committerMilan Crha <mcrha@redhat.com>2010-10-29 15:08:52 +0800
commit95d422b0c016e4b8c60100dc47b2e70ad6b2757a (patch)
treed4fe97a827ec488da7b03f5aef5d13b378c4c229 /mail/mail-ops.c
parenta95d55794a80579e7f3028c4c3fd59270e552fa0 (diff)
downloadgsoc2013-evolution-95d422b0c016e4b8c60100dc47b2e70ad6b2757a.tar
gsoc2013-evolution-95d422b0c016e4b8c60100dc47b2e70ad6b2757a.tar.gz
gsoc2013-evolution-95d422b0c016e4b8c60100dc47b2e70ad6b2757a.tar.bz2
gsoc2013-evolution-95d422b0c016e4b8c60100dc47b2e70ad6b2757a.tar.lz
gsoc2013-evolution-95d422b0c016e4b8c60100dc47b2e70ad6b2757a.tar.xz
gsoc2013-evolution-95d422b0c016e4b8c60100dc47b2e70ad6b2757a.tar.zst
gsoc2013-evolution-95d422b0c016e4b8c60100dc47b2e70ad6b2757a.zip
Bug #633371 - Remote pop folder no longer emptied
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 88e327bbf4..ffaa7e41af 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -244,7 +244,7 @@ fetch_mail_exec (struct _fetch_mail_msg *m,
if (!strncmp (m->source_uri, "mbox:", 5)) {
gchar *path = mail_tool_do_movemail (m->source_uri, error);
- if (path && error == NULL) {
+ if (path && (!error || !*error)) {
camel_folder_freeze (fm->destination);
camel_filter_driver_set_default_folder (
fm->driver, fm->destination);
@@ -253,7 +253,7 @@ fetch_mail_exec (struct _fetch_mail_msg *m,
cancellable, error);
camel_folder_thaw (fm->destination);
- if (error == NULL)
+ if (!error || !*error)
g_unlink (path);
}
g_free (path);
@@ -301,7 +301,7 @@ fetch_mail_exec (struct _fetch_mail_msg *m,
camel_uid_cache_save (cache);
}
- if (fm->delete && error == NULL) {
+ if (fm->delete && (!error || !*error)) {
/* not keep on server - just delete all the actual messages on the server */
for (i=0;i<folder_uids->len;i++) {
d(printf("force delete uid '%s'\n", (gchar *)folder_uids->pdata[i]));
@@ -309,7 +309,7 @@ fetch_mail_exec (struct _fetch_mail_msg *m,
}
}
- if ((fm->delete || cache_uids) && error == NULL) {
+ if ((fm->delete || cache_uids) && (!error || !*error)) {
/* expunge messages (downloaded so far) */
/* FIXME Not passing a GCancellable or GError here. */
camel_folder_synchronize_sync (