save account address when saving as draft
authorColin Leroy <colin@colino.net>
Sat, 12 Oct 2002 11:39:35 +0000 (11:39 +0000)
committerColin Leroy <colin@colino.net>
Sat, 12 Oct 2002 11:39:35 +0000 (11:39 +0000)
ChangeLog.claws
configure.in
src/compose.c

index cc642e983e4aebe1df37bb278c4a0dfdbe346065..fff8222694d7ce3f9e3d087a99c17cdcc83d2cfd 100644 (file)
@@ -1,3 +1,9 @@
+2002-10-12 [colin]     0.8.5claws25
+
+       * src/compose.c
+               Save account address when saving as draft.
+               (closes bug 621838)
+
 2002-10-12 [colin]     0.8.5claws24
 
        * src/summaryview.c
index 59a3a13863a50bf4ca9728ca62af87c6fbca93ce..49b8c8ae882c532c8af4f60fb2c1c7af7f41cf05 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws24
+EXTRA_VERSION=claws25
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index c8027b9ff7d46f93a607e484f8f186d99aa0ab21..312a8f6c85bc93de7f62c6891f62bcd64f96ea93 100644 (file)
@@ -1148,7 +1148,7 @@ void compose_reedit(MsgInfo *msginfo)
        g_return_if_fail(msginfo != NULL);
        g_return_if_fail(msginfo->folder != NULL);
 
-        if (msginfo->folder->stype == F_QUEUE) {
+        if (msginfo->folder->stype == F_QUEUE || msginfo->folder->stype == F_DRAFT) {
                gchar queueheader_buf[BUFFSIZE];
                gint id;
 
@@ -3901,17 +3901,17 @@ static gint compose_write_headers(Compose *compose, FILE *fp,
        g_return_val_if_fail(compose->account != NULL, -1);
        g_return_val_if_fail(compose->account->address != NULL, -1);
 
-       /* Save copy folder */
+       /* Save draft infos */
        if (is_draft) {
+               fprintf(fp, "S:%s\n", compose->account->address);
                if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(compose->savemsg_checkbtn))) {
                        gchar *savefolderid;
 
                        savefolderid = gtk_editable_get_chars(GTK_EDITABLE(compose->savemsg_entry), 0, -1);
-                       fprintf(fp, "SCF:%s\n\n", savefolderid);
+                       fprintf(fp, "SCF:%s\n", savefolderid);
                        g_free(savefolderid);
-               } else {
-                       fprintf(fp, " \n\n");
                }
+               fprintf(fp, "\n");
        }
 
        /* Date */