Fix bug #590825 (obey Follow-up: poster)
authorColin Leroy <colin@colino.net>
Thu, 12 Sep 2002 20:51:10 +0000 (20:51 +0000)
committerColin Leroy <colin@colino.net>
Thu, 12 Sep 2002 20:51:10 +0000 (20:51 +0000)
ChangeLog.claws
configure.in
src/compose.c

index 55d643a..e915873 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-12 [colin]     0.8.2claws43
+
+       * src/compose.c
+               Fix bug #590825 (obey Follow-up: poster)
+
 2002-09-12 [colin]     0.8.2claws42
 
        * src/procmime.c
index cd200f9..0de8279 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=8
 MICRO_VERSION=2
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws42
+EXTRA_VERSION=claws43
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 5fb89ac..10c16d1 100644 (file)
@@ -1685,13 +1685,25 @@ static void compose_reply_set_entry(Compose *compose, MsgInfo *msginfo,
                        compose_entry_append
                                (compose, msginfo->from ? msginfo->from : "",
                                 COMPOSE_TO);
-               else
-                       compose_entry_append
-                               (compose,
-                                compose->followup_to ? compose->followup_to
-                                : compose->newsgroups ? compose->newsgroups
-                                : "",
-                                COMPOSE_NEWSGROUPS);
+               else {
+                       if (compose->followup_to && !strncmp(compose->followup_to,"poster",6)) {
+                               compose_entry_append
+                                       (compose,
+                                       ((compose->replyto && !ignore_replyto)
+                                       ? compose->replyto
+                                       : (compose->mailinglist && !ignore_replyto)
+                                       ? compose->mailinglist
+                                       : msginfo->from ? msginfo->from : ""),
+                                       COMPOSE_TO);                            
+                       } else {
+                               compose_entry_append
+                                       (compose,
+                                        compose->followup_to ? compose->followup_to
+                                        : compose->newsgroups ? compose->newsgroups
+                                        : "",
+                                        COMPOSE_NEWSGROUPS);
+                       }
+               }
        }
 
        if (msginfo->subject && *msginfo->subject) {