- fix regex if reply-to header is present in autoresponder, fixes #423

This commit is contained in:
Michael Kaufmann (d00p)
2010-10-01 05:10:01 +00:00
parent be8d38b478
commit dc6034796a

View File

@@ -138,7 +138,7 @@ if($db->num_rows($result) > 0)
$to = $match[2];
}
elseif(!strlen($to)
&& preg_match("/To:\s+(.*@.*)$/", $line, $match)
&& preg_match("/^To:\s+(.*@.*)$/", $line, $match)
) {
$to = $match[1];
}