diff roundup/roundupdb.py @ 188:1536be43d2fa

Roundupdb now appends "mailing list" information to its messages... ...which include the e-mail address and web interface address. Templates may override this in their db classes to include specific information (support instructions, etc).
author Richard Jones <richard@users.sourceforge.net>
date Thu, 02 Aug 2001 06:38:17 +0000
parents 9c5ddad06430
children d45384bc6420
line wrap: on
line diff
--- a/roundup/roundupdb.py	Thu Aug 02 06:00:33 2001 +0000
+++ b/roundup/roundupdb.py	Thu Aug 02 06:38:17 2001 +0000
@@ -1,4 +1,4 @@
-# $Id: roundupdb.py,v 1.7 2001-07-30 02:38:31 richard Exp $
+# $Id: roundupdb.py,v 1.8 2001-08-02 06:38:17 richard Exp $
 
 import re, os, smtplib, socket
 
@@ -243,6 +243,7 @@
             m.append('Reply-To: %s'%self.ISSUE_TRACKER_EMAIL)
             m.append('')
             m.append(self.db.msg.get(msgid, 'content'))
+            m.append(self.email_footer(nodeid, msgid))
             # TODO attachments
             try:
                 smtp = smtplib.SMTP(self.MAILHOST)
@@ -252,8 +253,21 @@
             except smtplib.SMTPException, value:
                 return "Couldn't send confirmation email: %s"%value
 
+    def email_footer(self, nodeid, msgid):
+        ''' Add a footer to the e-mail with some useful information
+        '''
+        web = self.ISSUE_TRACKER_WEB
+        return '''%s
+Roundup issue tracker
+%s
+%s
+'''%('_'*len(web), self.ISSUE_TRACKER_EMAIL, web)
+
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.7  2001/07/30 02:38:31  richard
+# get() now has a default arg - for migration only.
+#
 # Revision 1.6  2001/07/30 00:05:54  richard
 # Fixed IssueClass so that superseders links to its classname rather than
 # hard-coded to "issue".

Roundup Issue Tracker: http://roundup-tracker.org/