diff options
author | Srinivasa Ragavan <sragavan@gnome.org> | 2009-11-04 22:27:20 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@gnome.org> | 2009-11-05 00:15:04 +0800 |
commit | b958de6faac3361452395a275ccf813365c29da7 (patch) | |
tree | c2b74ee621e18cc504c9ee70e2c9e892a40b1f32 /mail | |
parent | fa057e9f0440ad501a3c43495ad33534f7346d98 (diff) | |
download | gsoc2013-evolution-b958de6faac3361452395a275ccf813365c29da7.tar.gz gsoc2013-evolution-b958de6faac3361452395a275ccf813365c29da7.tar.zst gsoc2013-evolution-b958de6faac3361452395a275ccf813365c29da7.zip |
Sync to disk the outbox, since if we crash, we endup sending mail again.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/mail-ops.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 27b5ef80ce..cc45b42901 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -630,8 +630,11 @@ mail_send_message (struct _send_queue_msg *m, CamelFolder *queue, const gchar *u } } } - 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 */ |