[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mailman-developers
Subject:    [Mailman-Developers] Patch against sync_members
From:       "Richard Ellerbrock" <richarde () eskom ! co ! za>
Date:       1999-11-01 13:56:48
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic