Archive for September, 2011
How to find a user subscribed to a mailman list…
by jfargen on Sep.29, 2011, under Uncategorized
Recently I was tasked to determine if an email address was subscribed to any lists on the mailman server which I run. The solution came in two pieces.
1) Dump all of the list members to files named after the list, you can do that with the nifty one liner below.
root@localhost # for i in `./list_lists | awk ‘{ print $1 }’`; do ./list_members -o /root/members/$i $i; done
2) cd /root/members then simply grep for the users emails.
root@localhost # grep -r ‘users@emailaddress.com’ .