diff roundup/mailgw.py @ 3579:7f1e2d650486

fix blank-title subject line handling [SF#1442121]
author Richard Jones <richard@users.sourceforge.net>
date Thu, 02 Mar 2006 23:45:23 +0000
parents cf0f007dd807
children 338f204ea2a5
line wrap: on
line diff
--- a/roundup/mailgw.py	Tue Feb 28 05:53:04 2006 +0000
+++ b/roundup/mailgw.py	Thu Mar 02 23:45:23 2006 +0000
@@ -72,7 +72,7 @@
 an exception, the original message is bounced back to the sender with the
 explanatory message given in the exception.
 
-$Id: mailgw.py,v 1.172 2006-01-25 03:51:21 richard Exp $
+$Id: mailgw.py,v 1.173 2006-03-02 23:45:22 richard Exp $
 """
 __docformat__ = 'restructuredtext'
 
@@ -647,7 +647,7 @@
             # or fallback on the default class
             if self.db.config['EMAIL_REGISTRATION_CONFIRMATION']:
                 otk_re = re.compile('-- key (?P<otk>[a-zA-Z0-9]{32})')
-                otk = otk_re.search(m.group('title'))
+                otk = otk_re.search(m.group('title') or '')
                 if otk:
                     self.db.confirm_registration(otk.group('otk'))
                     subject = 'Your registration to %s is complete' % \

Roundup Issue Tracker: http://roundup-tracker.org/