summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 026d999)
raw | patch | inline | side by side (parent: 026d999)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sat, 15 Dec 2001 23:48:35 +0000 (23:48 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sat, 15 Dec 2001 23:48:35 +0000 (23:48 +0000) |
actually sending mail :)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@470 57a73879-2fb5-44c3-a270-3262357dd7e2
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@470 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/roundupdb.py | patch | blob | history |
diff --git a/roundup/roundupdb.py b/roundup/roundupdb.py
index 6cb939a2b988665f5234c97c2eb1b29e47e0d70e..e6c3e8871a25d14f55d0d818ad23777e582f040e 100644 (file)
--- a/roundup/roundupdb.py
+++ b/roundup/roundupdb.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: roundupdb.py,v 1.31 2001-12-15 19:24:39 rochecompaan Exp $
+# $Id: roundupdb.py,v 1.32 2001-12-15 23:48:35 richard Exp $
__doc__ = """
Extending hyperdb with types specific to issue-tracking.
import hyperdb, date
+# set to indicate to roundup not to actually _send_ email
+ROUNDUPDBSENDMAILDEBUG = os.environ.get('ROUNDUPDBSENDMAILDEBUG', '')
+
class DesignatorError(ValueError):
pass
def splitDesignator(designator, dre=re.compile(r'([^\d]+)(\d+)')):
# now try to send the message
try:
- smtp = smtplib.SMTP(self.MAILHOST)
- # send the message as admin so bounces are sent there instead
- # of to roundup
- smtp.sendmail(self.ADMIN_EMAIL, sendto, message.getvalue())
+ if ROUNDUPDBSENDMAILDEBUG:
+ print 'From: %s\nTo: %s\n%s\n=-=-=-=-=-=-=-='%(
+ self.ADMIN_EMAIL, sendto, message.getvalue())
+ else:
+ smtp = smtplib.SMTP(self.MAILHOST)
+ # send the message as admin so bounces are sent there instead
+ # of to roundup
+ smtp.sendmail(self.ADMIN_EMAIL, sendto, message.getvalue())
except socket.error, value:
raise MessageSendError, \
"Couldn't send confirmation email: mailhost %s"%value
#
# $Log: not supported by cvs2svn $
+# Revision 1.31 2001/12/15 19:24:39 rochecompaan
+# . Modified cgi interface to change properties only once all changes are
+# collected, files created and messages generated.
+# . Moved generation of change note to nosyreactors.
+# . We now check for changes to "assignedto" to ensure it's added to the
+# nosy list.
+#
# Revision 1.30 2001/12/12 21:47:45 richard
# . Message author's name appears in From: instead of roundup instance name
# (which still appears in the Reply-To:)