[Mailman-Users] run mailman commands..

Steven Stern subscribed-lists at sterndata.com
Sat Jan 19 20:41:08 CET 2008

Hash: SHA1

On 01/19/2008 01:11 PM, Khalil Abbas wrote:
| hello all..
| I have a dedicated server with CentOS installed.. I need to perform
some mailman commands without going thru the administrative interface
that doesn't work due to an 'internal server error' message..
| now mailman commands are installed here:
| /usr/lib/mailman/bin
| for example I need to run the ' list_members listname' command but it
keeps telling me that this is not a command.. although I logged in as
'root' not as the regular user name ..
| can you please write the exact syntax that allows me to put the
members of a list called "dailymail" (without the quotes)in a text file
using the list_members command?
| I also would really appreciate the exact syntax of the command that
allows me to mass-subscribe the emails in a text file and adding them to
same list called "dailymail"? .. and also the syntax that removes a
bunch of emails in a text file from the list ..

I prefer to use sync_members rather than remove_members and add_members.
~ With sync_members you need only keep the list of who should be on the
list.  When you run it, mailman will remove those currently on the list
who are not in your file and add those from the file who are not on the
list.  This works well when using a separate system to keep track of
subscriptions or generating your subscription list from some other database.

In this example, you'd create a file called dailylist-members.txt that
contains the list of email addresses that should be on the list.

I'd recommend the following command:

~   /usr/lib/mailman/bin/sync_members -g=no -w=no -a=no -f
dailymail-members.txt dailymail

For full usage info, use /usr/lib/mailman/bin/sync_members -h

- --

~  Steve
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org


More information about the Mailman-Users mailing list