X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=class%2Fmime%2FRfc822Header.class.php;h=b42f7ba743aaa0cad9e71617b6b419a1f05bc868;hp=d14a1b6b0442e14d7deb3227dc4df897d9c71c24;hb=b65a57eafe670d1550f663704ec100a5fe719bef;hpb=5e5daa47f6270e55903f95fb3deff491fde2d6f5 diff --git a/class/mime/Rfc822Header.class.php b/class/mime/Rfc822Header.class.php index d14a1b6b..b42f7ba7 100644 --- a/class/mime/Rfc822Header.class.php +++ b/class/mime/Rfc822Header.class.php @@ -5,7 +5,7 @@ * * This file contains functions needed to handle headers in mime messages. * - * @copyright 2003-2015 The SquirrelMail Project Team + * @copyright 2003-2018 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -352,6 +352,9 @@ class Rfc822Header { case 'x-spam-status': $this->x_spam_status = $this->parseSpamStatus($value); break; + case 'x-sm-flag-reply': + $this->x_sm_flag_reply = $value; + break; default: break; } @@ -970,7 +973,7 @@ class Rfc822Header { * Looks through this list of addresses and * returns the array index (an integer even * if the array is given with keys of a - * different type) of the *last* matching + * different type) of the first matching * $address found in this message's * TO or CC headers, unless there is an exact * match (meaning that the "personal @@ -1002,10 +1005,10 @@ class Rfc822Header { $i=0; foreach($address as $argument) { $match = $this->findAddress($argument, true); - if ($match[1]) { + if ($match[1]) { // this indicates when the personal information matched return $i; } else { - if (count($match[0]) && !$result) { + if (count($match[0]) && $result === FALSE) { $result = $i; } }