MESSAGE
DATE | 2015-10-20 |
FROM | Rick Moen
|
SUBJECT | Re: [Hangout-NYLXS] events
|
From hangout-bounces-at-nylxs.com Tue Oct 20 20:17:26 2015 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: from www.mrbrklyn.com (www.mrbrklyn.com [96.57.23.82]) by mrbrklyn.com (Postfix) with ESMTP id 3B4F61624E7; Tue, 20 Oct 2015 20:17:25 -0400 (EDT) X-Original-To: hangout-at-nylxs.com Delivered-To: hangout-at-nylxs.com Received: from linuxmafia.com (linuxmafia.COM [198.144.195.186]) by mrbrklyn.com (Postfix) with ESMTP id 30C5B1624DA for ; Tue, 20 Oct 2015 19:49:49 -0400 (EDT) Received: from rick by linuxmafia.com with local (Exim 4.72) (envelope-from ) id 1Zogf6-0007Ll-UX for hangout-at-nylxs.com; Tue, 20 Oct 2015 16:49:48 -0700 Date: Tue, 20 Oct 2015 16:49:48 -0700 From: Rick Moen To: hangout-at-nylxs.com Message-ID: <20151020234948.GA5268-at-linuxmafia.com> References: <20151020193745.GA2527-at-www.mrbrklyn.com> <5626B405.80209-at-coredump.us> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <5626B405.80209-at-coredump.us> Organization: If you lived here, you'd be $HOME already. X-Mas: Bah humbug. X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: rick-at-linuxmafia.com X-SA-Exim-Scanned: No (on linuxmafia.com); SAEximRunCond expanded to false Subject: Re: [Hangout-NYLXS] events X-BeenThere: hangout-at-nylxs.com X-Mailman-Version: 2.1.17 Precedence: list Reply-To: NYLXS Discussions List List-Id: NYLXS Discussions List List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: hangout-bounces-at-nylxs.com Sender: "hangout"
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
|
|