[SAC] [OSGeo] #2330: White-list president@osgeo.org in all mailing lists

#2330: White-list president@osgeo.org in all mailing lists
---------------------------+-------------------
Reporter: Delawen | Owner: jsanz
     Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Mailing Lists | Keywords:
---------------------------+-------------------
Hi,

I would like to have president@osgeo.org able to send emails to all
mailing lists.

Context: I want to send a warning for the AGM slides to all groups, but
getting the account one by one on all mailing lists is awful. Would be
good if it is just white listed so any future president can post easily.
Sure there is some command line to do it quicker?

Thanks!

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2330&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2330: White-list president@osgeo.org in all mailing lists
---------------------------+--------------------
Reporter: Delawen | Owner: jsanz
     Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Mailing Lists | Resolution:
Keywords: |
---------------------------+--------------------

Comment (by jsanz):

I'll check the `withlist` command described here next week unless someone
wants to take a look before.

https://www.gnu.org/software/mailman/site.html

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2330#comment:1&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#2330: White-list president@osgeo.org in all mailing lists
---------------------------+---------------------
Reporter: Delawen | Owner: jsanz
     Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Mailing Lists | Resolution: fixed
Keywords: |
---------------------------+---------------------
Changes (by jsanz):

* status: new => closed
* resolution: => fixed

Comment:

Done María, for reference I'll leave here the script I added and how to
run it

{{{
jsanz@osgeo6:/var/lib/mailman/bin$ cat add_president.py
PRESIDENT = 'president@osgeo.org'

def add_president(myList):
     addrs = myList.accept_these_nonmembers
     if PRESIDENT not in addrs:
         print('Adding address....')
         addrs.append(PRESIDENT)
         myList.Save()
         print('Done!')
     else:
         print('Address already present')

}}}

Once placed the `add_president.py` file running it through all the lists
was as simple as:

{{{
jsanz@osgeo6:/var/lib/mailman/bin$ sudo ./withlist -l -r add_president -a
}}}

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/2330#comment:2&gt;
OSGeo <https://osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.