[Mailman-Users] Private Lists and mailpasswds

Justin Alcorn justin at jalcorn.net
Wed Oct 2 00:35:40 CEST 2002


-----BEGIN PGP SIGNED MESSAGE-----

Private lists on my server didn't get the monthly password mailing, even though
I set them to do so.  I'm not a member of any private lists on any other server,
so I wasn't sure if this was expected behavior.

Looking through cron/mailpasswds I found:

~    a_public_list = None

~    (for all lists....)

~        if not a_public_list and mlist.advertised:
~            a_public_list = mlist


~    if a_public_list:
~        a_public_list.Lock()
~        try:
~            mail_passwords(a_public_list, hosts)
~        finally:
~            a_public_list.Save()
~            a_public_list.Unlock()


OK, I'm a perl, C and php coder, not python, but it appears to me that we aren't
going to process any lists unless at least one is advertised.  Why?  There's no
indication of that in any documentation.  I have no public lists on my server,
so I go through all the processing and end up with a_public_list being false,
and I simply fall through to the bottom.  I can't see any security risk
associated with sending out the passwords.  Is this a bug?

if I take off the 'and mlist.advertised' it seems to me that I'd send out
passwords.  But I still don't quite understand the logic, it seems that the
first public list found will be Lock()ed, Save()ed and Unlock()ed.  HUH?
someone please explain.
- --
Justin Alcorn
http://jalcorn.net
PGP Sig: A36D D691 C5B0 BE15  5A2A AF49 AA1C 372C
http://www.keen.com/UnixHelp

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
Comment: Using PGP with Netscape - http://enigmail.mozdev.org

iQEVAwUBPZojO3YdKc0RR4enAQGVSQgAvDFEHqWjKJ0CRN+CiHZr5uVz2dwADViv
Jz3OupMQ0IrJO0W1GmrtoACI2nTChMhFMTAbNvhbVGXnRTSCdUUoHrUBhIhlCus4
+hZekrSGYDCVqLuSDwSbHtgSwWRGOvFpP9610esL97zTb/Vqw0j3LSG2M6OXAtI9
DIIRZgexMum7N8Aiv3Z53CWYril94Q4Y+AS+LLKmDlMsqXW6XH5PV5vB6TQCpspW
pi8NvlZd9HhDWC0YtXbRDVmzdr6rS0rYp1Esj6W95o5zuQn0CkrP8FqDdhBfmC1q
FZQnxLDe4MAbJ4D/EZI5v26sMCVm3PAPWFDoWGAocSucL7/B088ntQ==
=ClXl
-----END PGP SIGNATURE-----





More information about the Mailman-Users mailing list