Mark Sapiro writes:

 >  >>> with open('/path/to/config.pck', 'rb') as fp:
 > ...     dict = pickle.load(fp)
 > ...

This will work, but it's risky.  If you don't know Python and you're
just going follow the recipe below, don't worry about this.  Just
follow the recipe exactly, and type "quit()" when you're done to leave
Python.

Details for the curious: if you plan to do other things in the session
you might find odd things happening because "dict" is the name of a
type.  I suggest using "d" or "dct" or "data" (don't use "list"
because that's also a type) everywhere instead of "dict".

 > At this point, dict is a Python dictionary with members = all
 > list information. E.g.,
 >  >>> attrs = list(dict.keys())
 >  >>> attrs.sort()
 >  >>> print(attrs)
 > will print all the list attributes in alpha order
 >  >>> print(dict['members'])
 > will print the list's regular members
 >  >>> print(dict['digest_members'])
 > will print the list's digest members
 > 
 > If you still have access to the lists on Dreamhost, see the scripts at 
 > <https://www.msapiro.net/scripts/mailman-subscribers.py> 
 > <https://www.msapiro.net/scripts/mailman-subscribers3.py>. These are 
 > Python 2 and Python 3 respectively scripts that will screen scrape the 
 > list admin interface to obtain membership lists. You need Python (2 or 
 > 3) to run them. They are the same other than the fact that 
 > mailman-subscribers3.py is Python 3 compatible.


-- 
GNU Mailman consultant (installation, migration, customization)
Sirius Open Source    https://www.siriusopensource.com/
Software systems consulting in Europe, North America, and Japan
------------------------------------------------------
Mailman-Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/[email protected]/
    https://mail.python.org/archives/list/[email protected]/
Member address: [email protected]

Reply via email to