Fix redirection when there's a forward with a From line
This commit is contained in:
@ -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];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user