|
|
@ -1803,9 +1803,12 @@ function rcmail_identity_select($MESSAGE, $identities = null, $compose_mode = 'r
|
|
|
|
// Try Return-Path
|
|
|
|
// Try Return-Path
|
|
|
|
if ($from_idx === null && ($return_path = $MESSAGE->headers->others['return-path'])) {
|
|
|
|
if ($from_idx === null && ($return_path = $MESSAGE->headers->others['return-path'])) {
|
|
|
|
foreach ($identities as $idx => $ident) {
|
|
|
|
foreach ($identities as $idx => $ident) {
|
|
|
|
if (strpos($return_path, str_replace('@', '=', $ident['email_ascii']).'@') !== false) {
|
|
|
|
$ident = str_replace('@', '=', $ident['email_ascii']) . '@';
|
|
|
|
$from_idx = $idx;
|
|
|
|
foreach ((array)$return_path as $path) {
|
|
|
|
break;
|
|
|
|
if (strpos($path, $ident) !== false) {
|
|
|
|
|
|
|
|
$from_idx = $idx;
|
|
|
|
|
|
|
|
break 2;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|