From ae8fb35f99f61c40f6968033c1067cc6f5d97c37 Mon Sep 17 00:00:00 2001 From: Jon Goldberg Date: Wed, 24 Jan 2018 18:50:25 -0500 Subject: [PATCH] Fix redirection when there's a forward with a From line --- redirect.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; }