summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 49c45b7)
raw | patch | inline | side by side (parent: 49c45b7)
author | jlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sat, 6 Sep 2003 10:37:11 +0000 (10:37 +0000) | ||
committer | jlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sat, 6 Sep 2003 10:37:11 +0000 (10:37 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1860 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/mailgw.py | patch | blob | history | |
test/test_mailgw.py | patch | blob | history |
diff --git a/roundup/mailgw.py b/roundup/mailgw.py
index 1c8bc5d7cea6447475a4368d131fc352b2a50fa1..a07fafde2750bfe61fe9e269e16cb25d9a135400 100644 (file)
--- a/roundup/mailgw.py
+++ b/roundup/mailgw.py
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
# 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:
diff --git a/test/test_mailgw.py b/test/test_mailgw.py
index 1cc8c85546185bca183f26abc3cb6b7812b6c61e..be8a77483e9a5aa59ebbae8f826f31e29e46f0ce 100644 (file)
--- a/test/test_mailgw.py
+++ b/test/test_mailgw.py
# 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
def suite():
l = [unittest.makeSuite(MailgwTestCase),
]
- l = [MailgwTestCase("testRegistrationConfirmation")]
return unittest.TestSuite(l)