From 83eee27867eade0fb0772218ccddf5b8a6fb29d8 Mon Sep 17 00:00:00 2001 From: jlgijsbers Date: Sat, 6 Sep 2003 10:37:11 +0000 Subject: [PATCH] Oops, forgot to run all tests. Fixed. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1860 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/mailgw.py | 6 +++--- test/test_mailgw.py | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/roundup/mailgw.py b/roundup/mailgw.py index 1c8bc5d..a07fafd 100644 --- a/roundup/mailgw.py +++ b/roundup/mailgw.py @@ -73,7 +73,7 @@ are calling the create() method to create a new node). If an auditor raises 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 @@ Emails to Roundup trackers must include a Subject: line! # no classname, check if this a registration confirmation email # or fallback on the default class otk_re = re.compile('-- key (?P[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: diff --git a/test/test_mailgw.py b/test/test_mailgw.py index 1cc8c85..be8a774 100644 --- a/test/test_mailgw.py +++ b/test/test_mailgw.py @@ -8,7 +8,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # -# $Id: test_mailgw.py,v 1.47 2003-09-06 10:21:03 jlgijsbers Exp $ +# $Id: test_mailgw.py,v 1.48 2003-09-06 10:37:10 jlgijsbers Exp $ import unittest, cStringIO, tempfile, os, shutil, errno, imp, sys, difflib import rfc822 @@ -982,7 +982,6 @@ This is a test confirmation of registration. def suite(): l = [unittest.makeSuite(MailgwTestCase), ] - l = [MailgwTestCase("testRegistrationConfirmation")] return unittest.TestSuite(l) -- 2.30.2