From: Michael M Slusarz Date: Mon, 30 Nov 2009 18:26:50 +0000 (-0700) Subject: Prefer Reply All when determining auto reply mechanism X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=69b87cd952b2591a9637bae4805e8c107f5e3155;p=horde.git Prefer Reply All when determining auto reply mechanism --- diff --git a/imp/lib/Compose.php b/imp/lib/Compose.php index 897b1d5eb..e3d143d8d 100644 --- a/imp/lib/Compose.php +++ b/imp/lib/Compose.php @@ -1298,7 +1298,7 @@ class IMP_Compose } } - if (in_array($type, array('reply_all', '*'))) { + if (in_array($type, array('reply_all', 'reply_auto', '*'))) { /* Filter out our own address from the addresses we reply to. */ $identity = Horde_Prefs_Identity::singleton(array('imp', 'imp')); $all_addrs = array_keys($identity->getAllFromAddresses(true)); @@ -1340,6 +1340,12 @@ class IMP_Compose $hdr_cc[] = $ob['address'] . ', '; } } + + /* Clear the To field if we are auto-determining list. */ + if ($type == 'reply_auto') { + $header['to'] = ''; + } + $header[empty($header['to']) ? 'to' : 'cc'] = rtrim(implode('', $hdr_cc), ' ,'); /* Build the Bcc: header. */