summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2010-05-03 23:02:25 -0400
committerCraig Andrews <candrews@integralblue.com>2010-05-03 23:02:25 -0400
commit4fe00a3075c10c5b2168ac2b4996a32055a799ee (patch)
tree9845f7fc6a3b0ee6381b412ce894ee43d19e77a3 /lib
parentf514f7b722f71fa8b60d0ee88e54d47d4a05af4a (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.php4
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;
}