From: Paweł Pękala Date: Fri, 17 Sep 2010 19:25:30 +0000 (+0000) Subject: 2010-09-17 [pawel] 3.7.6cvs37 X-Git-Tag: REL_3_7_7~30 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=a48f8ae68460b883bdda94f0d38d1bb40bef73d9;hp=8ffa24d40c380823223d73bb5df88198ce664d7d 2010-09-17 [pawel] 3.7.6cvs37 * src/compose.c Respect reply_account_autosel when changing compose account to email one while replying to NNTP post --- diff --git a/ChangeLog b/ChangeLog index 8498c4900..204068561 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-09-17 [pawel] 3.7.6cvs37 + + * src/compose.c + Respect reply_account_autosel when changing compose + account to email one while replying to NNTP post + 2010-09-17 [wwp] 3.7.6cvs36 * doc/man/claws-mail.1 diff --git a/PATCHSETS b/PATCHSETS index c0721927a..22dfe27ea 100644 --- a/PATCHSETS +++ b/PATCHSETS @@ -4032,3 +4032,4 @@ ( cvs diff -u -r 1.382.2.553 -r 1.382.2.554 src/compose.c; ) > 3.7.6cvs34.patchset ( cvs diff -u -r 1.382.2.554 -r 1.382.2.555 src/compose.c; ) > 3.7.6cvs35.patchset ( cvs diff -u -r 1.1.2.7 -r 1.1.2.8 doc/man/claws-mail.1; ) > 3.7.6cvs36.patchset +( cvs diff -u -r 1.382.2.555 -r 1.382.2.556 src/compose.c; ) > 3.7.6cvs37.patchset diff --git a/configure.ac b/configure.ac index 304211349..12579035a 100644 --- a/configure.ac +++ b/configure.ac @@ -12,7 +12,7 @@ MINOR_VERSION=7 MICRO_VERSION=6 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=36 +EXTRA_VERSION=37 EXTRA_RELEASE= EXTRA_GTK2_VERSION= diff --git a/src/compose.c b/src/compose.c index f86d7ff3d..db19a222a 100644 --- a/src/compose.c +++ b/src/compose.c @@ -3194,6 +3194,9 @@ static void compose_reply_set_entry(Compose *compose, MsgInfo *msginfo, } } } else { + if ((to_sender || to_ml) && prefs_common.reply_account_autosel) + compose_check_for_email_account(compose); + if (to_sender || (compose->followup_to && !strncmp(compose->followup_to, "poster", 6))) compose_entry_append @@ -3215,7 +3218,6 @@ static void compose_reply_set_entry(Compose *compose, MsgInfo *msginfo, compose->newsgroups ? compose->newsgroups : "", COMPOSE_NEWSGROUPS, PREF_NONE); } else if (reply_to_ml) { - compose_check_for_email_account(compose); compose_entry_append(compose, compose->ml_post, COMPOSE_TO, PREF_ML); } else @@ -11180,7 +11182,10 @@ void compose_reply_to_address(MessageView *msgview, MsgInfo *msginfo, msginfo_list = g_slist_prepend(msginfo_list, msginfo); compose = compose_reply_mode(COMPOSE_REPLY_TO_ADDRESS, msginfo_list, body); - compose_check_for_email_account(compose); + + if (prefs_common.reply_account_autosel) + compose_check_for_email_account(compose); + compose_set_folder_prefs(compose, msginfo->folder, FALSE); compose_entry_append(compose, address, COMPOSE_TO, PREF_NONE); compose_reply_set_subject(compose, msginfo);