Or, even easier to generate the list:
/usr/mailman/bin/list_lists | awk '{print $1 "-owner@<your host>"}'
________________________________________
From: Mailman-Users <[email protected]> on 
behalf of Hirayama, Pat <[email protected]>
Sent: Thursday, July 28, 2016 12:23 PM
To: Martin Stein; [email protected]
Subject: Re: [Mailman-Users] Sending mails to all list administrators

I suppose you could generate a list of people to send by doing something like:

/usr/lib/mailman/bin/list_admins --all | sed 's/.*Owners: //'|sed 
's/,/\r/g'|sed 's/ //g'|sort|uniq

And that use that to send your email.  Maybe combine it with xargs to do 
something like:

/usr/lib/mailman/bin/list_admins --all | sed 's/.*Owners: //'|sed 
's/,/\r/g'|sed 's/ //g'|sort|uniq | xargs -I {} mail -s 'subject' {} < 
message.txt

At least, I think that last might work. :)

                                -p


--
Pat Hirayama
Systems Engineer / 206.667.4856 / [email protected] / Fred Hutch / Cures 
Start Here
CIT | Enterprise IT Services / Advancing IT and Data Services to Accelerate the 
Elimination of Disease

-----Original Message-----
From: Mailman-Users 
[mailto:[email protected]] On Behalf Of 
Martin Stein
Sent: Thursday, July 28, 2016 5:15 AM
To: [email protected]
Subject: [Mailman-Users] Sending mails to all list administrators

Hi,

I'm looking for an easy way, as site administrator, to send a message to
all list administrators. Is there any possibility to set up a
autogenerated list with all list administrators of the site or another
smooth solution?

Regards,

Martin

--
Martin Stein
Attac Deutschland Webteam

Attac Deutschland
Münchener Str. 48
60329 Frankfurt am Main
Mail: [email protected]

------------------------------------------------------
Mailman-Users mailing list [email protected]
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/phirayam%40fredhutch.org
------------------------------------------------------
Mailman-Users mailing list [email protected]
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/cmupythia%40cmu.edu
------------------------------------------------------
Mailman-Users mailing list [email protected]
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to