]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
When handling incoming mail, skip everything after a blank line if we already have...
authorCraig Andrews <candrews@integralblue.com>
Tue, 4 May 2010 03:02:25 +0000 (23:02 -0400)
committerCraig Andrews <candrews@integralblue.com>
Tue, 4 May 2010 03:02:25 +0000 (23:02 -0400)
lib/mailhandler.php

index 890f6d5b49fea9decfaf8476b0c3dbe5e28cb70c..e9ba418399dcad6709fbb2530c6360e609f03ffc 100644 (file)
@@ -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;
         }