aboutsummaryrefslogtreecommitdiff
path: root/src/compose.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-11-29 05:33:07 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-11-29 05:33:07 +0000
commite7f6d03d3475bb24aba9c850b04e06cd3027edb9 (patch)
tree050d48cd8f4342213c84504f8a77e4a77bcc8528 /src/compose.c
parent09874681f486f97526251c166a8675fcdfc08a23 (diff)
added an option to inherit recipients on reply to self messages.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1384 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/compose.c')
-rw-r--r--src/compose.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/compose.c b/src/compose.c
index 42bf2083..359cbe42 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -1578,12 +1578,23 @@ static void compose_reply_set_entry(Compose *compose, MsgInfo *msginfo,
!address_equal(compose->replyto, compose->ml_post))
compose_entry_set(compose, compose->replyto,
COMPOSE_ENTRY_CC);
- } else
+ } else if (prefs_common.inherit_recipient_on_self_reply &&
+ address_equal(compose->account->address,
+ msginfo->from)) {
+ compose_entry_set(compose, msginfo->to,
+ COMPOSE_ENTRY_TO);
+ if (to_all) {
+ compose_entry_set(compose, compose->cc,
+ COMPOSE_ENTRY_CC);
+ to_all = FALSE;
+ }
+ } else {
compose_entry_set(compose,
(compose->replyto && !ignore_replyto)
? compose->replyto
: msginfo->from ? msginfo->from : "",
COMPOSE_ENTRY_TO);
+ }
} else {
if (ignore_replyto) {
compose_entry_set(compose,