[Mailman-Users] Sending mails to all list administrators

Hirayama, Pat phirayam at fredhutch.org
Thu Jul 28 12:23:22 EDT 2016


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 / phirayam at fredhutch.org / 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:mailman-users-bounces+phirayam=fredhutch.org at python.org] On Behalf Of Martin Stein
Sent: Thursday, July 28, 2016 5:15 AM
To: mailman-users at python.org
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: martin.stein at attac.de

------------------------------------------------------
Mailman-Users mailing list Mailman-Users at python.org
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


More information about the Mailman-Users mailing list