2005-10-22 [colin] 1.9.15cvs90
authorColin Leroy <colin@colino.net>
Sat, 22 Oct 2005 09:04:05 +0000 (09:04 +0000)
committerColin Leroy <colin@colino.net>
Sat, 22 Oct 2005 09:04:05 +0000 (09:04 +0000)
* src/compose.c
When replying to a mail sent by one of our accounts,
use the original list of recipients. Let 'Reply All'
and 'Reply to sender' work like previously.

ChangeLog-gtk2.claws
PATCHSETS
configure.ac
src/compose.c

index c71bfdf61d0460904ffee68ea0b08238aa3e5110..2e6e6ebc625164f297fd7257f17291c161a7c0b8 100644 (file)
@@ -1,3 +1,10 @@
+2005-10-22 [colin]     1.9.15cvs90
+
+       * src/compose.c
+               When replying to a mail sent by one of our accounts,
+               use the original list of recipients. Let 'Reply All'
+               and 'Reply to sender' work like previously.
+
 2005-10-21 [colin]     1.9.15cvs89
 
        * src/prefs_filtering.c
index 5dce8d7ea9983102ed52da3ea73ce8aff91a5c5d..95c44038c80f6ef8fca405bb8700fc207ab7c3a8 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.25.2.6 -r 1.25.2.7 tools/Makefile.am;  cvs diff -u -r 1.3.2.1 -r 1.3.2.2 tools/OOo2sylpheed.pl;  cvs diff -u -r 1.30.2.5 -r 1.30.2.6 tools/README;  cvs diff -u -r 1.1 -r 1.2 tools/README.sylprint;  cvs diff -u -r -1.1.2.2 -r -1.1.2.3 tools/asus_mailled.sh;  cvs diff -u -r 1.16.2.2 -r 1.16.2.3 tools/filter_conv.pl;  cvs diff -u -r 1.3.2.1 -r 1.3.2.2 tools/freshmeat_search.pl;  cvs diff -u -r 1.3.2.1 -r 1.3.2.2 tools/google_search.pl;  cvs diff -u -r -1.1 -r -1.2 tools/gpg-sign-syl;  cvs diff -u -r 1.1.14.1 -r 1.1.14.2 tools/kmail2sylpheed.pl;  cvs diff -u -r 1.3.4.1 -r 1.3.4.2 tools/kmail2sylpheed_v2.pl;  cvs diff -u -r 1.3.2.1 -r 1.3.2.2 tools/multiwebsearch.pl;  cvs diff -u -r 1.2.2.1 -r 1.2.2.2 tools/nautilus2sylpheed.sh;  cvs diff -u -r 1.2.14.1 -r 1.2.14.2 tools/newscache_clean.pl;  cvs diff -u -r 1.2.2.1 -r 1.2.2.2 tools/outlook2sylpheed.pl;  cvs diff -u -r -1.1.14.1 -r -1.1.14.2 tools/sylpheed-switcher;  cvs diff -u -r 1.2 -r 1.3 tools/sylprint.pl;  cvs diff -u -r 1.1 -r 1.2 tools/sylprint.rc;  cvs diff -u -r 1.2.2.1 -r 1.2.2.2 tools/tb2sylpheed;  cvs diff -u -r 1.1.4.2 -r 1.1.4.3 tools/vcard2xml.py;  cvs diff -u -r 1.5.2.2 -r 1.5.2.3 tools/kdeservicemenu/sylpheed-kdeservicemenu.pl;  ) > 1.9.15cvs87.patchset
 ( cvs diff -u -r 1.382.2.185 -r 1.382.2.186 src/compose.c;  cvs diff -u -r 1.207.2.77 -r 1.207.2.78 src/folderview.c;  cvs diff -u -r 1.52.2.15 -r 1.52.2.16 src/prefs_folder_item.c;  cvs diff -u -r 1.43.2.31 -r 1.43.2.32 src/toolbar.c;  ) > 1.9.15cvs88.patchset
 ( cvs diff -u -r 1.59.2.25 -r 1.59.2.26 src/prefs_filtering.c;  cvs diff -u -r 1.96.2.81 -r 1.96.2.82 src/textview.c;  cvs diff -u -r 1.1.2.7 -r 1.1.2.8 src/plugins/pgpinline/pgpinline.c;  ) > 1.9.15cvs89.patchset
+( cvs diff -u -r 1.382.2.186 -r 1.382.2.187 src/compose.c;  ) > 1.9.15cvs90.patchset
index c4aa8bc3eec59ecee9ec0cf5ea6e685ac2c2d76f..623729a8331953d61ba6ef4a0dabd9a087b720a9 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=15
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=89
+EXTRA_VERSION=90
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 878f8a6f6fbc625e40f3aacfb6a1374a4c6d1d63..642db7f2b16116d81fdcf7a352d800df99121dd9 100644 (file)
@@ -2231,12 +2231,27 @@ static void compose_reply_set_entry(Compose *compose, MsgInfo *msginfo,
                        compose_entry_append(compose,
                            msginfo->folder->prefs->default_reply_to,
                            COMPOSE_TO);
-               } else
-                       compose_entry_append(compose,
+               } else {
+                       gchar *tmp1 = NULL;
+                       Xstrdup_a(tmp1, msginfo->from, return);
+                       extract_address(tmp1);
+                       if (to_all || to_sender ||
+                           !account_find_from_address(tmp1))
+                               compose_entry_append(compose,
                                 (compose->replyto && !to_sender)
-                                 ? compose->replyto :
-                                 msginfo->from ? msginfo->from : "",
-                                 COMPOSE_TO);
+                                         ? compose->replyto :
+                                         msginfo->from ? msginfo->from : "",
+                                         COMPOSE_TO);
+                       else if (!to_all && !to_sender) {
+                               /* reply to the last list of recipients */
+                               compose_entry_append(compose,
+                                         msginfo->to ? msginfo->to : "",
+                                         COMPOSE_TO);
+                               compose_entry_append(compose,
+                                         msginfo->cc ? msginfo->cc : "",
+                                         COMPOSE_CC);
+                       }
+               }
        } else {
                if (to_sender || (compose->followup_to && 
                        !strncmp(compose->followup_to, "poster", 6)))