01tonythomas has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/153041

Change subject: Fix regex fucntions after change 
I0f9b098982adf023347e3f1343f1e16ccec91df1
......................................................................

Fix regex fucntions after change I0f9b098982adf023347e3f1343f1e16ccec91df1

The tests pass now

Change-Id: Ibb15562c9a928298f0a73261305054711cd6d714
---
M includes/ProcessBounceWithRegex.php
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BounceHandler 
refs/changes/41/153041/1

diff --git a/includes/ProcessBounceWithRegex.php 
b/includes/ProcessBounceWithRegex.php
index ba7e3f6..779621c 100644
--- a/includes/ProcessBounceWithRegex.php
+++ b/includes/ProcessBounceWithRegex.php
@@ -40,6 +40,10 @@
                        if ( preg_match( "/^X-Failed-Recipients: (.*)/", 
$emailLine, $failureMatch ) ) {
                                $emailHeaders[ 'x-failed-recipients' ] = 
$failureMatch[1];
                        }
+                       if ( trim( $emailLine ) == "" ) {
+                               // Empty line denotes that the header part is 
finished
+                               break;
+                       }
                }
                return $emailHeaders;
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/153041
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibb15562c9a928298f0a73261305054711cd6d714
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BounceHandler
Gerrit-Branch: master
Gerrit-Owner: 01tonythomas <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to