summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d9229fd)
raw | patch | inline | side by side (parent: d9229fd)
author | stefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 14 Jul 2009 18:21:06 +0000 (18:21 +0000) | ||
committer | stefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 14 Jul 2009 18:21:06 +0000 (18:21 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4318 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/mailer.py | patch | blob | history | |
roundup/roundupdb.py | patch | blob | history |
diff --git a/roundup/mailer.py b/roundup/mailer.py
index 0d801bc18a98f457deb13adc0dd0de62ff554798..4ab9b13c28017be5f04384edf7f5940005abaf3b 100644 (file)
--- a/roundup/mailer.py
+++ b/roundup/mailer.py
"""Sending Roundup-specific mail over SMTP.
"""
__docformat__ = 'restructuredtext'
-# $Id: mailer.py,v 1.22 2008-07-21 01:44:58 richard Exp $
import time, quopri, os, socket, smtplib, re, sys, traceback, email
message = self.get_standard_message(to, subject, author)
message.set_payload(content)
encode_quopri(message)
- self.smtp_send(to, str(message))
+ self.smtp_send(to, message.as_string())
def bounce_message(self, bounced_message, to, error,
subject='Failed issue tracker submission'):
# send
try:
- self.smtp_send(to, str(message))
+ self.smtp_send(to, message.as_string())
except MessageSendError:
# squash mail sending errors when bouncing mail
# TODO this *could* be better, as we could notify admin of the
diff --git a/roundup/roundupdb.py b/roundup/roundupdb.py
index fe9c8e315b947cd9b0ce4f8b2090560f1dcc4d47..1a9f705e58871910e9e85087d1e320523cbde9de 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.139 2008-08-07 06:31:16 richard Exp $
"""Extending hyperdb with types specific to issue-tracking.
"""
encode_quopri(message)
if first:
- mailer.smtp_send(sendto + bcc_sendto, str(message))
+ mailer.smtp_send(sendto + bcc_sendto, message.as_string())
else:
- mailer.smtp_send(sendto, str(message))
+ mailer.smtp_send(sendto, message.as_string())
first = False
def email_signature(self, nodeid, msgid):