Skip to content

Commit 3d09410

Browse files
author
Johannes Gijsbers
committed
Oops, forgot to run all tests. Fixed.
1 parent 17bd46c commit 3d09410

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

roundup/mailgw.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class node. Any parts of other types are each stored in separate files
7373
an exception, the original message is bounced back to the sender with the
7474
explanatory message given in the exception.
7575
76-
$Id: mailgw.py,v 1.128 2003-09-06 10:21:18 jlgijsbers Exp $
76+
$Id: mailgw.py,v 1.129 2003-09-06 10:37:11 jlgijsbers Exp $
7777
"""
7878

7979
import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
@@ -517,9 +517,9 @@ def handle_message(self, message):
517517
# no classname, check if this a registration confirmation email
518518
# or fallback on the default class
519519
otk_re = re.compile('-- key (?P<otk>[a-zA-Z0-9]{32})')
520-
otk = otk_re.search(m.group('title')).group('otk')
520+
otk = otk_re.search(m.group('title'))
521521
if otk:
522-
self.db.confirm_registration(otk)
522+
self.db.confirm_registration(otk.group('otk'))
523523
return
524524
elif hasattr(self.instance.config, 'MAIL_DEFAULT_CLASS') and \
525525
self.instance.config.MAIL_DEFAULT_CLASS:

test/test_mailgw.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# but WITHOUT ANY WARRANTY; without even the implied warranty of
99
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1010
#
11-
# $Id: test_mailgw.py,v 1.47 2003-09-06 10:21:03 jlgijsbers Exp $
11+
# $Id: test_mailgw.py,v 1.48 2003-09-06 10:37:10 jlgijsbers Exp $
1212

1313
import unittest, cStringIO, tempfile, os, shutil, errno, imp, sys, difflib
1414
import rfc822
@@ -982,7 +982,6 @@ def testRegistrationConfirmation(self):
982982
def suite():
983983
l = [unittest.makeSuite(MailgwTestCase),
984984
]
985-
l = [MailgwTestCase("testRegistrationConfirmation")]
986985
return unittest.TestSuite(l)
987986

988987

0 commit comments

Comments
 (0)