Skip to content

Commit fa64b75

Browse files
author
Johannes Gijsbers
committed
Send a message confirming the confirmation.
1 parent 61563b4 commit fa64b75

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

roundup/mailgw.py

Lines changed: 5 additions & 1 deletion
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.130 2003-09-08 09:28:28 jlgijsbers Exp $
76+
$Id: mailgw.py,v 1.131 2003-09-08 21:18:56 jlgijsbers Exp $
7777
"""
7878

7979
import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
@@ -438,6 +438,10 @@ def handle_message(self, message):
438438
otk = otk_re.search(m.group('title'))
439439
if otk:
440440
self.db.confirm_registration(otk.group('otk'))
441+
subject = 'Your registration to %s is complete' % \
442+
self.instance.config.TRACKER_NAME
443+
sendto = [message.getaddrlist('from')[0][1]]
444+
self.mailer.standard_message(sendto, subject, '')
441445
return
442446
elif hasattr(self.instance.config, 'MAIL_DEFAULT_CLASS') and \
443447
self.instance.config.MAIL_DEFAULT_CLASS:

0 commit comments

Comments
 (0)