aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@gnome.org>2009-11-04 22:27:20 +0800
committerSrinivasa Ragavan <sragavan@gnome.org>2009-11-05 00:14:51 +0800
commit0ef5640acb2245ced60f42753057b7db5c94d690 (patch)
treee09a39fdc21efc27c9591efb813cefded9e0e12d
parent838d694758a268ace3b0e78c5af01a144fd9b2a7 (diff)
downloadgsoc2013-evolution-0ef5640acb2245ced60f42753057b7db5c94d690.tar
gsoc2013-evolution-0ef5640acb2245ced60f42753057b7db5c94d690.tar.gz
gsoc2013-evolution-0ef5640acb2245ced60f42753057b7db5c94d690.tar.bz2
gsoc2013-evolution-0ef5640acb2245ced60f42753057b7db5c94d690.tar.lz
gsoc2013-evolution-0ef5640acb2245ced60f42753057b7db5c94d690.tar.xz
gsoc2013-evolution-0ef5640acb2245ced60f42753057b7db5c94d690.tar.zst
gsoc2013-evolution-0ef5640acb2245ced60f42753057b7db5c94d690.zip
Sync to disk the outbox, since if we crash, we endup sending mail again.
-rw-r--r--mail/mail-ops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 04d08cef13..b25056a983 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -620,8 +620,11 @@ mail_send_message(CamelFolder *queue, const gchar *uid, const gchar *destination
}
}
}
- if (!camel_exception_is_set(ex))
+ if (!camel_exception_is_set(ex)) {
camel_folder_set_message_flags (queue, uid, CAMEL_MESSAGE_DELETED|CAMEL_MESSAGE_SEEN, ~0);
+ /* Sync it to disk, since if it crashes in between, we keep sending it again on next start. */
+ camel_folder_sync (queue, FALSE);
+ }
if (err->len) {
/* set the culmulative exception report */