[Mailman-Users] Digest flag in membership list? ...

2005-09-07 Thread Jason LaMar
A disclaimer: I realize our implementation is not at all what was intended
for typical Mailman usage, but ...

We have lists where:

* the subscribers don't know their individual passwords for Web access

* the subscribers don't have Web access to Mailman subscription features

* we (the admins) manually control whether subscribers get to use digest
mode, based on their e-mail requests

The lists are set up this way because this is the main campus-wide
alert/announcement system for e-mail, so we want to guarantee that everyone
is SUPPOSED to get every message sent to these lists.

OK, so here's the kicker. Based on a somewhat transient user population (we
regularly lose and add a small fraction of students, and sometimes even
employees), we've developed an external script to regularly cross-check the
current subscriber list and then update it with subscriber additions and
removals as necessary.

Unfortunately, when the lists are refreshed, all individual subscriber
parameters (like digest mode) are wiped out to their defaults. So my
question is: Is there some sort of flag associated with each subscriber
entry that indicates digest usage, that we should be sure not to touch
during the list refresh? Or, to put it more broadly, how would you suggest
doing backend (non-subscriber) list maintenance that doesn't impact
individual subscriber preferences?



Thanks,

Jason

_

Jason LaMar
Interim Director of Information Services
Libraries and Information Services
Ohio Wesleyan University; Delaware, OH 43015
Tel: 740-368-3131, Fax: 740-368-3272, Web: http://www.owu.edu/


--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] Digest flag in membership list? ...

2005-09-07 Thread Mark Sapiro
Jason LaMar wrote:

OK, so here's the kicker. Based on a somewhat transient user population (we
regularly lose and add a small fraction of students, and sometimes even
employees), we've developed an external script to regularly cross-check the
current subscriber list and then update it with subscriber additions and
removals as necessary.

Unfortunately, when the lists are refreshed, all individual subscriber
parameters (like digest mode) are wiped out to their defaults. So my
question is: Is there some sort of flag associated with each subscriber
entry that indicates digest usage, that we should be sure not to touch
during the list refresh? Or, to put it more broadly, how would you suggest
doing backend (non-subscriber) list maintenance that doesn't impact
individual subscriber preferences?

Are you scripting the web interface and doing mass adds and removals or
are you directly calling the Python methods?

If the former, any mass subscribed users will get digests or not
depending on the value of the list attribute digest_is_default at the
time.

If the latter, look at Mailman/OldStyleMemberships.py. In particular,
the methods getRegularMemberKeys() and getDigestMemberKeys() for
getting non-digest and digest member lists, and the addNewMember()
method which takes arguments of the form 'digest=yes|no'. Also see the
setMemberOption() method.

Note that if existing members have their digest setting changed by your
script, I think you must be deleting and readding them.

Note also, that unlike other user settings, 'digests' is not a flag -
it's implemented internally via separate lists for regular and digest
members.

--
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp