summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2bc6db4)
raw | patch | inline | side by side (parent: 2bc6db4)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 20 Jan 2004 00:05:46 +0000 (00:05 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 20 Jan 2004 00:05:46 +0000 (00:05 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2049 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/mailer.py | patch | blob | history |
diff --git a/roundup/mailer.py b/roundup/mailer.py
index 6d9e6c8d63438210e5d15aa16c7a67e3c761f4b2..ddfc109978f6f032774dbec99ae2067b94d28e4a 100644 (file)
--- a/roundup/mailer.py
+++ b/roundup/mailer.py
"""Sending Roundup-specific mail over SMTP."""
-# $Id: mailer.py,v 1.3 2003-10-04 11:21:47 jlgijsbers Exp $
+# $Id: mailer.py,v 1.4 2004-01-20 00:05:46 richard Exp $
import time, quopri, os, socket, smtplib, re
from MimeWriter import MimeWriter
from roundup.rfc2822 import encode_header
+from roundup import __version__
class MessageSendError(RuntimeError):
pass
writer.addheader('X-Roundup-Name', self.config.TRACKER_NAME)
# and another one to avoid loops
writer.addheader('X-Roundup-Loop', 'hello')
+ # finally, an aid to debugging problems
+ writer.addheader('X-Roundup-Version', __version__)
writer.addheader('MIME-Version', '1.0')
quopri.encode(content, body, 0)
self.smtp_send(to, message)
-
+
def bounce_message(self, bounced_message, to, error,
subject='Failed issue tracker submission'):
"""Bounce a message, attaching the failed submission.