1- # $Id: client.py,v 1.136 2003-09-08 09:28:28 jlgijsbers Exp $
1+ # $Id: client.py,v 1.137 2003-09-08 21:07:29 jlgijsbers Exp $
22
33__doc__ = """
44WWW request handler (also used in the stand-alone server).
@@ -766,15 +766,22 @@ def registerAction(self):
766766
767767 # send the email
768768 tracker_name = self .db .config .TRACKER_NAME
769- subject = 'Complete your registration to %s' % tracker_name
770- body = '''
771- To complete your registration of the user "%(name)s" with %(tracker)s,
772- please visit the following URL:
769+ tracker_email = self .db .config .TRACKER_EMAIL
770+ subject = 'Complete your registration to %s -- key %s' % (tracker_name ,
771+ otk )
772+ body = """To complete your registration of the user "%(name)s" with
773+ %(tracker)s, please do one of the following:
774+
775+ - send a reply to %(tracker_email)s and maintain the subject line as is (the
776+ reply's additional "Re:" is ok),
777+
778+ - or visit the following URL:
773779
774780 %(url)s?@action=confrego&otk=%(otk)s
775- ''' % {'name' : props ['username' ], 'tracker' : tracker_name , 'url' : self .base ,
776- 'otk' : otk }
777- if not self .standard_message (props ['address' ], subject , body ):
781+ """ % {'name' : props ['username' ], 'tracker' : tracker_name , 'url' : self .base ,
782+ 'otk' : otk , 'tracker_email' : tracker_email }
783+ if not self .standard_message (props ['address' ], subject , body ,
784+ tracker_email ):
778785 return
779786
780787 # commit changes to the database
@@ -783,14 +790,13 @@ def registerAction(self):
783790 # redirect to the "you're almost there" page
784791 raise Redirect , '%suser?@template=rego_progress' % self .base
785792
786- def standard_message (self , to , subject , body ):
793+ def standard_message (self , to , subject , body , author = None ):
787794 try :
788- self .mailer .standard_message (to , subject , body )
795+ self .mailer .standard_message (to , subject , body , author )
789796 return 1
790797 except MessageSendException , e :
791798 self .error_message .append (str (e ))
792799
793-
794800 def registerPermission (self , props ):
795801 ''' Determine whether the user has permission to register
796802
0 commit comments