diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-08-05 09:14:44 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-08-05 09:14:44 +0200 |
commit | 9263f55a634cafc805307a138f3f2d54df1faa21 (patch) | |
tree | 022bf5749ec935c901c9a8f62afb6dca1a350996 /program/steps/mail | |
parent | 17239fa5224cefb7e32665719461beaaf5e52017 (diff) |
Ignore Reply-To when replying to own message (#1489230)
Diffstat (limited to 'program/steps/mail')
-rw-r--r-- | program/steps/mail/compose.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index af84619f2..c9d8c0b45 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -322,8 +322,8 @@ foreach ($parts as $header) { else if (!empty($MESSAGE->headers->from)) $fvalue = $MESSAGE->headers->from; - // Reply to message sent by yourself (#1487074) - if (!empty($ident) && $fvalue == $ident['ident']) { + // Reply to message sent by yourself (#1487074, #1489230) + if (!empty($ident) && in_array($ident['ident'], array($fvalue, $MESSAGE->headers->from))) { $fvalue = $MESSAGE->headers->to; } } |