[Mailman-Developers] Patch against sync_members
Richard Ellerbrock
richarde@eskom.co.za
Mon, 01 Nov 1999 15:56:48 +0200
Here is a little patch against the sync_members program to allow it to understand the following syntax:
sync_members -w=no -a=no -f - listname
The sync members command did not understand the - filename (read from stdio), even though the help for sync_members says that it does read from stdio.
--- sync_members Mon Nov 1 15:51:51 1999
+++ sync_members.eskom Mon Nov 1 15:30:48 1999
@@ -166,6 +166,11 @@
filemembers = fp.readlines()
fp.close()
+# filemembers = sys.argv[i:]
+ # if there were no arguments on the command line, then it's probably
+ # a user error. XXX this is questionable
+# if not filemembers:
+# usage(1, 'No addresses found on the command line')
else:
try:
fp = open(filename)
--
Richard Ellerbrock
richarde@eskom.co.za