When handling incoming mail, skip everything after a blank line if we already have content
This commit is contained in:
parent
f514f7b722
commit
4fe00a3075
|
@ -265,6 +265,10 @@ class MailHandler
|
|||
if (preg_match('/^\s*Begin\s+forward/', $line)) {
|
||||
break;
|
||||
}
|
||||
// skip everything after a blank line if we already have content
|
||||
if ($output !== '' && $line === '') {
|
||||
break;
|
||||
}
|
||||
|
||||
$output .= ' ' . $line;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user