[Mailman-Users] Re: [ext] Find number of list members with "withlist"?

2024-01-23 Thread Odhiambo Washington
On Tue, Jan 23, 2024 at 4:50 PM Ralf Hildebrandt < ralf.hildebra...@charite.de> wrote: > * Odhiambo Washington : > > > We're curious. > > > > How did you do it? :-) > > import re > > def generic_nonmember_action(mlist): > if (mlist.generic_nonmember_action == 0): >pattern = > re.compil

[Mailman-Users] Re: [ext] Find number of list members with "withlist"?

2024-01-23 Thread Ralf Hildebrandt via Mailman-Users
* Odhiambo Washington : > We're curious. > > How did you do it? :-) import re def generic_nonmember_action(mlist): if (mlist.generic_nonmember_action == 0): pattern = re.compile(r"^.*@(mydomain1|myotherdomain|yetanotherdomain)\.de$") external_addresses = 0 internal_add

[Mailman-Users] Re: [ext] Find number of list members with "withlist"?

2024-01-23 Thread Odhiambo Washington
On Tue, Jan 23, 2024 at 3:09 PM Ralf Hildebrandt via Mailman-Users < mailman-users@python.org> wrote: > * Ralf Hildebrandt via Mailman-Users : > > Sorry for the simple question, but how do I get the number of list > > members from a particular list using "withlist"? > > > > I'm trying to find list

[Mailman-Users] Re: [ext] Find number of list members with "withlist"?

2024-01-23 Thread Ralf Hildebrandt via Mailman-Users
* Ralf Hildebrandt via Mailman-Users : > Sorry for the simple question, but how do I get the number of list > members from a particular list using "withlist"? > > I'm trying to find lists with generic_nonmember_action set to 0 AND > the number of list members exceeding a certain threshold. Neverm

[Mailman-Users] Find number of list members with "withlist"?

2024-01-23 Thread Ralf Hildebrandt via Mailman-Users
Sorry for the simple question, but how do I get the number of list members from a particular list using "withlist"? I'm trying to find lists with generic_nonmember_action set to 0 AND the number of list members exceeding a certain threshold. -- Ralf Hildebrandt Charité - Universitätsmedizin Berl