Don't ignore value of 'Save copy of outgoing messages to this folder instead of Sent...
authorDarko Koruga <darko@users.sourceforge.net>
Fri, 19 Sep 2003 08:34:20 +0000 (08:34 +0000)
committerDarko Koruga <darko@users.sourceforge.net>
Fri, 19 Sep 2003 08:34:20 +0000 (08:34 +0000)
ChangeLog.claws
configure.ac
src/compose.c

index 467966b..66f18f9 100644 (file)
@@ -1,3 +1,9 @@
+2003-09-19 [darko]     0.9.5claws20
+
+       * src/compose.c
+               don't ignore value of 'Save copy of outgoing messages to
+               this folder instead of Sent' in message redirect
+
 2003-09-17 [christoph] 0.9.5claws19
 
        * src/compose.c
index e21114d..de721e4 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=19
+EXTRA_VERSION=20
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index 2e5dcb0..32515f6 100644 (file)
@@ -1299,6 +1299,7 @@ Compose *compose_redirect(PrefsAccount *account, MsgInfo *msginfo)
        Compose *compose;
        gchar *filename;
        GtkItemFactory *ifactory;
+       FolderItem *item;
 
        g_return_val_if_fail(msginfo != NULL, NULL);
 
@@ -1323,6 +1324,17 @@ Compose *compose_redirect(PrefsAccount *account, MsgInfo *msginfo)
 
        compose->redirect_filename = filename;
        
+       /* Set save folder */
+       item = msginfo->folder;
+       if (item && item->prefs && item->prefs->save_copy_to_folder) {
+               gchar *folderidentifier;
+
+               gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(compose->savemsg_checkbtn), prefs_common.savemsg);
+               folderidentifier = folder_item_get_identifier(item);
+               gtk_entry_set_text(GTK_ENTRY(compose->savemsg_entry), folderidentifier);
+               g_free(folderidentifier);
+       }
+
        compose_attach_parts(compose, msginfo);
 
        if (msginfo->subject)