Thomas Bruederli
2013-07-25 ccce3cce3aa6d638f74fe330dfbd29f10ff35334
Fix identity-selection using Return-Path headers (#1489241)
1 files modified
3 ■■■■ changed files
program/steps/mail/func.inc 3 ●●●● patch | view | raw | blame | history
program/steps/mail/func.inc
@@ -1803,9 +1803,8 @@
    // Try Return-Path
    if ($from_idx === null && ($return_path = $MESSAGE->headers->others['return-path'])) {
        foreach ($identities as $idx => $ident) {
            $ident = str_replace('@', '=', $ident['email_ascii']) . '@';
            foreach ((array)$return_path as $path) {
                if (strpos($path, $ident) !== false) {
                if (stripos($path, $ident['email_ascii']) !== false) {
                    $from_idx = $idx;
                    break 2;
                }