MESSAGE
DATE | 2015-10-20 |
FROM | Rick Moen
|
SUBJECT | Re: [Hangout-NYLXS] events
|
Quoting Chris Knadle (Chris.Knadle-at-coredump.us):
> As you'll find out, exporting a list of subscribers requires digging into > the Berkeley DB manually too...
Yeah, I forgot about the per-list BerkeleyDB 'config.db' files. That's annoying, for the same reason as the Python 'pickled' format for various Python object data in .pck files:
$ ls -al /var/lib/mailman/lists/test total 31 drwxrwsr-x 2 root list 1024 Oct 20 12:00 . drwxrwsr-x 19 root list 1024 Jun 20 2011 .. -rw-rw-r-- 1 list list 357 Mar 15 2000 archives.html -rw-rw---- 1 list list 2864 May 6 2003 config.db -rw-rw---- 1 list list 2864 May 6 2003 config.db.last -rw-rw---- 1 list list 4064 Oct 20 12:00 config.pck -rw-rw---- 1 list list 4064 Oct 20 09:00 config.pck.last -rw-rw-r-- 1 list list 189 Mar 15 2000 handle_opts.html -rw-rw-r-- 1 list list 3065 Mar 15 2000 listinfo.html -rw-rw-r-- 1 list list 4105 Mar 15 2000 options.html -rw-rw---- 1 list list 132 Oct 15 17:23 pending.pck -rw-rw-r-- 1 list list 719 Oct 16 08:00 request.pck -rw-rw-r-- 1 list list 1169 Mar 15 2000 roster.html -rw-rw-r-- 1 list list 185 Mar 15 2000 subscribe.html $
> -- or using wget to dump admin web pages and scraping them for > subscribed addresses.
Isn't it easier to use the command-line utilities in $MAILMAN_HOME/bin ? E.g.:
# /var/lib/mailman/bin/list_members -f test Rick Moen #
# /var/lib/mailman/bin/list_members List all the members of a mailing list.
Usage: /var/lib/mailman/bin/list_members [options] listname
Where:
--output file -o file Write output to specified file instead of standard out.
--regular / -r Print just the regular (non-digest) members.
--digest[=kind] / -d [kind] Print just the digest members. Optional argument can be "mime" or "plain" which prints just the digest members receiving that kind of digest.
--nomail[=why] / -n [why] Print the members that have delivery disabled. Optional argument can be "byadmin", "byuser", "bybounce", or "unknown" which prints just the users who have delivery disabled for that reason. It can also be "enabled" which prints just those member for whom delivery is enabled.
--fullnames / -f Include the full names in the output.
--preserve / -p Output member addresses case preserved the way they were added to the list. Otherwise, addresses are printed in all lowercase.
--invalid / -i Print only the addresses in the membership list that are invalid. Ignores -r, -d, -n.
--unicode / -u Print addresses which are stored as Unicode objects instead of normal string objects. Ignores -r, -d, -n.
--help -h Print this help message and exit.
listname is the name of the mailing list to use.
Note that if neither -r or -d is supplied, both regular members are printed first, followed by digest members, but no indication is given as to address status. # _______________________________________________ hangout mailing list hangout-at-nylxs.com http://www.nylxs.com/mailman/listinfo/hangout
|
|