From: Michael M Slusarz Date: Fri, 1 Oct 2010 06:38:30 +0000 (-0600) Subject: Bug #9271: Fix auto-reply when replying to own messages X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=58f5bba7da3193496929ed1709e695a9962c0ced;p=horde.git Bug #9271: Fix auto-reply when replying to own messages --- diff --git a/imp/lib/Compose.php b/imp/lib/Compose.php index 524a006fe..1d21a4e23 100644 --- a/imp/lib/Compose.php +++ b/imp/lib/Compose.php @@ -1789,7 +1789,11 @@ class IMP_Compose protected function _getMatchingIdentity($h) { $msgAddresses = array(); - foreach (array('to', 'cc', 'bcc') as $val) { + + /* Bug #9271: Check 'from' address first; if replying to a message + * originally sent by user, this should be the identity used for the + * reply also. */ + foreach (array('from', 'to', 'cc', 'bcc') as $val) { $msgAddresses[] = $h->getValue($val); }