* Expunge the draft messages when removed. Fixes NB#60398
authorSergio Villar Senin <svillar@igalia.com>
Fri, 15 Jun 2007 09:08:06 +0000 (09:08 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Fri, 15 Jun 2007 09:08:06 +0000 (09:08 +0000)
pmo-trunk-r2251

src/modest-mail-operation.c

index ca10622..f24b1f5 100644 (file)
@@ -599,7 +599,9 @@ modest_mail_operation_save_to_drafts (ModestMailOperation *self,
 
        if (draft_msg != NULL) {
                header = tny_msg_get_header (draft_msg);
+               /* Remove the old draft expunging it */
                tny_folder_remove_msg (folder, header, NULL);
+               tny_folder_sync (folder, TRUE, NULL);
                g_object_unref (header);
        }