aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortkikuchi <>2005-10-23 06:46:53 +0000
committertkikuchi <>2005-10-23 06:46:53 +0000
commit82149b6a3378242d3f797c6e74c1ad7d980f9216 (patch)
tree132e4f3c2dded43fea7878079e7d3234c2da65de
parentff94888a8f381e3ad161e8e06d130160140ea4ec (diff)
downloadmailman2-82149b6a3378242d3f797c6e74c1ad7d980f9216.tar.gz
mailman2-82149b6a3378242d3f797c6e74c1ad7d980f9216.tar.xz
mailman2-82149b6a3378242d3f797c6e74c1ad7d980f9216.zip
Use msg.send() to add Date header in create notification.
Mlist is already removed when remove. Use email.Utils.formatdate().
-rw-r--r--Mailman/MTA/Manual.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Mailman/MTA/Manual.py b/Mailman/MTA/Manual.py
index fae3889c..7e4e4648 100644
--- a/Mailman/MTA/Manual.py
+++ b/Mailman/MTA/Manual.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2003 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-2005 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -17,6 +17,7 @@
"""Creation/deletion hooks for manual /etc/aliases files."""
import sys
+import email.Utils
from cStringIO import StringIO
from Mailman import mm_cfg
@@ -96,8 +97,7 @@ equivalent) file by adding the following lines, and possibly running the
siteowner, siteowner,
_('Mailing list creation request for list %(listname)s'),
sfp.getvalue(), mm_cfg.DEFAULT_SERVER_LANGUAGE)
- outq = get_switchboard(mm_cfg.OUTQUEUE_DIR)
- outq.enqueue(msg, recips=[siteowner], nodecorate=1)
+ msg.send(mlist)
@@ -140,5 +140,6 @@ equivalent) file by removing the following lines, and possibly running the
siteowner, siteowner,
_('Mailing list removal request for list %(listname)s'),
sfp.getvalue(), mm_cfg.DEFAULT_SERVER_LANGUAGE)
+ msg['Date'] = email.Utils.formatdate(localtime=1)
outq = get_switchboard(mm_cfg.OUTQUEUE_DIR)
outq.enqueue(msg, recips=[siteowner], nodecorate=1)