incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1455799 - /incubator/public/trunk/voter/voter.py
Date Wed, 13 Mar 2013 04:17:00 GMT
Author: brane
Date: Wed Mar 13 04:16:59 2013
New Revision: 1455799

URL: http://svn.apache.org/r1455799
Log:
Fix bug in vote status: E-mail headers can span multiple lines.

Modified:
    incubator/public/trunk/voter/voter.py

Modified: incubator/public/trunk/voter/voter.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/voter/voter.py?rev=1455799&r1=1455798&r2=1455799&view=diff
==============================================================================
--- incubator/public/trunk/voter/voter.py (original)
+++ incubator/public/trunk/voter/voter.py Wed Mar 13 04:16:59 2013
@@ -82,6 +82,8 @@ class MBoxParser(object):
         subject = decode('Subject')
         if not subject or not date:
             return
+        # Make sure the subject does not span multiple lines.
+        subject = subject.replace('\n', '')
 
         if not (to and cls.__general_rx.search(to)
                 or cc and cls.__general_rx.search(cc)):



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message