When handling incoming mail, skip everything after a blank line if we already have content

This commit is contained in:
Craig Andrews 2010-05-03 23:02:25 -04:00
parent f514f7b722
commit 4fe00a3075

View File

@ -265,6 +265,10 @@ class MailHandler
if (preg_match('/^\s*Begin\s+forward/', $line)) { if (preg_match('/^\s*Begin\s+forward/', $line)) {
break; break;
} }
// skip everything after a blank line if we already have content
if ($output !== '' && $line === '') {
break;
}
$output .= ' ' . $line; $output .= ' ' . $line;
} }