[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

web/scripts listnotice.py,,1.2

Author: sopwith

Update of /cvs/fedora/web/scripts
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18025/scripts

Modified Files:
Log Message:
Send one e-mail to all lists

Index: listnotice.py
RCS file: /cvs/fedora/web/scripts/listnotice.py,v
retrieving revision
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- listnotice.py	30 Mar 2005 17:47:28 -0000
+++ listnotice.py	28 Jun 2005 21:37:24 -0000	1.2
@@ -45,12 +45,12 @@
 print "Sending reminder to", p.listlist
-for curlist in p.listlist:
-  rfh, wfh = popen2.popen2("/usr/sbin/sendmail " + curlist)
+if 1:
+  rfh, wfh = popen2.popen2("/usr/sbin/sendmail " + ' '.join(p.listlist))
   wfh.write("""From: Elliot Lee <sopwith redhat com>
 Message-ID: <sopwith %s list-reminder redhat com>
-To: %s
 Reply-To: sopwith redhat com
+To: undisclosed-recipients;
 Subject: Fedora Project Mailing Lists reminder
 This is a reminder of the mailing lists for the Fedora Project, and
@@ -62,7 +62,7 @@
 right mailing list to use for a question or discussion, please contact
 me. This will help you get the best possible answer for your question,
 and keep other list subscribers happy!
-""" % (time.strftime('%F.%T').replace(':', '.'), curlist))
+""" % (time.strftime('%F.%T').replace(':', '.')))

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]