diff options
author | Craig Andrews <candrews@integralblue.com> | 2010-05-03 23:02:25 -0400 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2010-05-03 23:02:25 -0400 |
commit | 4fe00a3075c10c5b2168ac2b4996a32055a799ee (patch) | |
tree | 9845f7fc6a3b0ee6381b412ce894ee43d19e77a3 /lib | |
parent | f514f7b722f71fa8b60d0ee88e54d47d4a05af4a (diff) |
When handling incoming mail, skip everything after a blank line if we already have content
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mailhandler.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mailhandler.php b/lib/mailhandler.php index 890f6d5b4..e9ba41839 100644 --- a/lib/mailhandler.php +++ b/lib/mailhandler.php @@ -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; } |