diff roundup/mailgw.py @ 1793:dbe541c1aa39

Oops, forgot to run all tests. Fixed.
author Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
date Sat, 06 Sep 2003 10:37:11 +0000
parents 2cd528577108
children 071ea6fc803f
line wrap: on
line diff
--- a/roundup/mailgw.py	Sat Sep 06 10:21:18 2003 +0000
+++ b/roundup/mailgw.py	Sat Sep 06 10:37:11 2003 +0000
@@ -73,7 +73,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.128 2003-09-06 10:21:18 jlgijsbers Exp $
+$Id: mailgw.py,v 1.129 2003-09-06 10:37:11 jlgijsbers Exp $
 """
 
 import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
@@ -517,9 +517,9 @@
                 # no classname, check if this a registration confirmation email
                 # or fallback on the default class
                 otk_re = re.compile('-- key (?P<otk>[a-zA-Z0-9]{32})')
-                otk = otk_re.search(m.group('title')).group('otk')
+                otk = otk_re.search(m.group('title'))
                 if otk:
-                    self.db.confirm_registration(otk)
+                    self.db.confirm_registration(otk.group('otk'))
                     return
                 elif hasattr(self.instance.config, 'MAIL_DEFAULT_CLASS') and \
                          self.instance.config.MAIL_DEFAULT_CLASS:

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