summaryrefslogtreecommitdiff
path: root/Mailman/Deliverer.py
diff options
context:
space:
mode:
authorklm1998-04-11 18:49:43 +0000
committerklm1998-04-11 18:49:43 +0000
commit233d7021ea7946ca03ae329df3723a1e19193ef6 (patch)
tree07292b2e5621734e3bb42158150503ea1adefd1c /Mailman/Deliverer.py
parent58c2f18ce88f1d450a0e9c2e4b74780374ab34cd (diff)
downloadmailman-233d7021ea7946ca03ae329df3723a1e19193ef6.tar.gz
mailman-233d7021ea7946ca03ae329df3723a1e19193ef6.tar.zst
mailman-233d7021ea7946ca03ae329df3723a1e19193ef6.zip
Diffstat (limited to 'Mailman/Deliverer.py')
-rw-r--r--Mailman/Deliverer.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/Mailman/Deliverer.py b/Mailman/Deliverer.py
index 8d9f68a4c..75afa4436 100644
--- a/Mailman/Deliverer.py
+++ b/Mailman/Deliverer.py
@@ -1,6 +1,6 @@
"""Mixin class with message delivery routines."""
-__version__ = "$Revision: 394 $"
+__version__ = "$Revision: 432 $"
import string, os, sys, tempfile
@@ -86,8 +86,11 @@ class Deliverer:
# This method assumes the sender is list-admin if you don't give one.
def SendTextToUser(self, subject, text, recipient, sender=None,
add_headers=[]):
- if not sender:
- sender = self.GetAdminEmail()
+ # repr(recipient) necessary for addresses containing "'" quotes!
+ self.LogMsg("test", "(mmd) plain: %s, repr: %s" % (recipient,
+ repr(recipient)))
+ if not sender:
+ sender = self.GetAdminEmail()
mm_utils.SendTextToUser(subject, text, recipient, sender,
add_headers=add_headers)
@@ -103,6 +106,8 @@ class Deliverer:
tmpfile_prefix = ""):
if not(len(recipients)):
return
+ # repr(recipient) necessary for addresses containing "'" quotes!
+ recipients = map(repr, recipients)
to_list = string.join(recipients)
tempfile.tempdir = '/tmp'