summaryrefslogtreecommitdiff
path: root/modules/mm_utils.py
diff options
context:
space:
mode:
authorklm1998-04-12 01:35:36 +0000
committerklm1998-04-12 01:35:36 +0000
commitef2d3536637c1646c2582afad4a4b61636ae41ec (patch)
treecd151c00184a34f1798dae3319043d6b8c3e8892 /modules/mm_utils.py
parent079d197c284a7393d56743e4edc46c39cd5b8a9f (diff)
downloadmailman-ef2d3536637c1646c2582afad4a4b61636ae41ec.tar.gz
mailman-ef2d3536637c1646c2582afad4a4b61636ae41ec.tar.zst
mailman-ef2d3536637c1646c2582afad4a4b61636ae41ec.zip
Diffstat (limited to 'modules/mm_utils.py')
-rw-r--r--modules/mm_utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/mm_utils.py b/modules/mm_utils.py
index 9dfd6bbdd..77113491b 100644
--- a/modules/mm_utils.py
+++ b/modules/mm_utils.py
@@ -5,7 +5,7 @@ message and address munging, a handy-dandy routine to map a function on all
the maillists, the Logging routines, and whatever else doesn't belong
elsewhere."""
-__version__ = "$Revision: 431 $"
+__version__ = "$Revision: 437 $"
import sys, string, fcntl, os, random, regsub, re
@@ -82,6 +82,8 @@ def DeliverToUser(msg, recipient, add_headers=[]):
if not msg.getheader('to'):
msg.headers.append('To: %s\n' % recipient)
for i in add_headers:
+ if i and i[-1] != '\n':
+ i = i + '\n'
msg.headers.append(i)
file.write(string.join(msg.headers, '')+ '\n')
file.write(QuotePeriods(msg.body))