web/scripts listnotice.py,1.1.1.1,1.2

Elliot Lee (sopwith) fedora-extras-commits at redhat.com
Tue Jun 28 21:37:26 UTC 2005


Author: sopwith

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

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


Index: listnotice.py
===================================================================
RCS file: /cvs/fedora/web/scripts/listnotice.py,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- listnotice.py	30 Mar 2005 17:47:28 -0000	1.1.1.1
+++ listnotice.py	28 Jun 2005 21:37:24 -0000	1.2
@@ -45,12 +45,12 @@
         p.feed(aline)
 p.close()
 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 at redhat.com>
 Message-ID: <sopwith.%s.list-reminder at redhat.com>
-To: %s
 Reply-To: sopwith at 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(':', '.')))
   wfh.write(mystr.getvalue())
   wfh.close()
   rfh.close()




More information about the fedora-extras-commits mailing list