Fix redirection when there's a forward with a From line

This commit is contained in:
Jon Goldberg 2018-01-24 18:50:25 -05:00
parent 281022be8f
commit ae8fb35f99
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ while (!feof($fd)) {
}
//also extract the "From" address.
if(preg_match("/^from: (.*)/i", $line, $matches)) {
if(!$from && preg_match("/^from: (.*)/i", $line, $matches)) {
$from = $matches[1];
}