diff --git a/redirect.php b/redirect.php index 574284d..3b1a58c 100755 --- a/redirect.php +++ b/redirect.php @@ -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]; }