fix bug 550175 - wrong save folder when reediting drafts
authorColin Leroy <colin@colino.net>
Wed, 11 Sep 2002 17:12:43 +0000 (17:12 +0000)
committerColin Leroy <colin@colino.net>
Wed, 11 Sep 2002 17:12:43 +0000 (17:12 +0000)
ChangeLog.claws
configure.in
src/compose.c

index c6d6b63..f3c7b20 100644 (file)
@@ -1,3 +1,9 @@
+2002-09-11 [colin]     0.8.2claws39
+
+       * src/compose.c
+               Fix bug #550175 - wrong save folder when reediting
+               drafts
+
 2002-09-11 [paul]      0.8.2claws38
 
        * sync with 0.8.2cvs14
index ed7561c..7315961 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=8
 MICRO_VERSION=2
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws38
+EXTRA_VERSION=claws39
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 98adacb..e326783 100644 (file)
@@ -1175,7 +1175,8 @@ void compose_reedit(MsgInfo *msginfo)
        compose = compose_create(account, COMPOSE_REEDIT);
        compose->targetinfo = procmsg_msginfo_copy(msginfo);
 
-        if (msginfo->folder->stype == F_QUEUE) {
+        if (msginfo->folder->stype == F_QUEUE
+       ||  msginfo->folder->stype == F_DRAFT) {
                gchar queueheader_buf[BUFFSIZE];
 
                /* Set message save folder */
@@ -4010,6 +4011,15 @@ static gint compose_write_headers(Compose *compose, FILE *fp,
                                fprintf(fp, "Disposition-Notification-To: %s\n", compose->account->address);
                }
        }
+       
+       /* Save copy folder */
+       if(is_draft && 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", savefolderid);
+               g_free(savefolderid);
+       }
 
        /* separator between header and body */
        fputs("\n", fp);