Thanks very much Bruce and Mark!  

Much appreciated,

John

On 5/27/22, 1:53 PM, "Mark Sapiro" <m...@msapiro.net> wrote:

    On 5/27/22 12:47, Bruce Johnson via Mailman-Users wrote:
    > Well some guy named Mark supported one method in the past 8-) (which I 
found googling ‘how to disable a mailman 2 list’ because I’d like to know how, 
too, since we do occasionally have need to do this.)
    > 
    > 
https://urldefense.com/v3/__https://mail.python.org/pipermail/mailman-users/2010-September/070283.html__;!!C5qS4YX3!AJcsaCQavpDgwaaIVqilPzNAu0rJ_NfoDw_GIKESav0V0oT2bK06YElcB7px4bxmW9JrUvOMkdrHNRxH$
 

    The method in that thread is simply moving the lists/<listname> aside. 
    That is one way to disable a list, but there are others depending on 
    what you actually want. For that, this withlist script will do it.
    ```
    import os
    from Mailman import Site
    BACKUP_DIR = 'path to a mailman writable directory'
    def no_owner(mlist)
         if len mlist.owner == 0:
             print('List %s has no owners, disabling.' % mlist.real_name)
             src = Site.get_listpath(mlist.internal_name())
             dst = os.path.join(BACKUP_DIR, mlist.internal_name())
             os.rename(src, dst)
    ```
    BACKUP_DIR is set to the full path of the directory in which to save the 
    list configurations. To avoid potential issues with os.rename, 
    BACKUP_DIR should be on the same file system as Mailman's lists/ directory.

    -- 
    Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
    San Francisco Bay Area, California    better use your sense - B. Dylan
    ------------------------------------------------------
    Mailman-Users mailing list -- mailman-users@python.org
    To unsubscribe send an email to mailman-users-le...@python.org
    
https://urldefense.com/v3/__https://mail.python.org/mailman3/lists/mailman-users.python.org/__;!!C5qS4YX3!AJcsaCQavpDgwaaIVqilPzNAu0rJ_NfoDw_GIKESav0V0oT2bK06YElcB7px4bxmW9JrUvOMkcv2vDVU$
 
    Mailman FAQ: 
https://urldefense.com/v3/__http://wiki.list.org/x/AgA3__;!!C5qS4YX3!AJcsaCQavpDgwaaIVqilPzNAu0rJ_NfoDw_GIKESav0V0oT2bK06YElcB7px4bxmW9JrUvOMkdThkNA2$
 
    Security Policy: 
https://urldefense.com/v3/__http://wiki.list.org/x/QIA9__;!!C5qS4YX3!AJcsaCQavpDgwaaIVqilPzNAu0rJ_NfoDw_GIKESav0V0oT2bK06YElcB7px4bxmW9JrUvOMkW3OTXfV$
 
    Searchable Archives: mailman-users@python.org 
<https://urldefense.com/v3/__https://www.mail-archive.com/<a 
href=>/__;!!C5qS4YX3!AJcsaCQavpDgwaaIVqilPzNAu0rJ_NfoDw_GIKESav0V0oT2bK06YElcB7px4bxmW9JrUvOMkRS9z4yU$">https://urldefense.com/v3/__https://www.mail-archive.com/mailman-users@python.org/__;!!C5qS4YX3!AJcsaCQavpDgwaaIVqilPzNAu0rJ_NfoDw_GIKESav0V0oT2bK06YElcB7px4bxmW9JrUvOMkRS9z4yU$
 
        mailman-users@python.org 
<https://urldefense.com/v3/__https://mail.python.org/archives/list/<a 
href=>/__;!!C5qS4YX3!AJcsaCQavpDgwaaIVqilPzNAu0rJ_NfoDw_GIKESav0V0oT2bK06YElcB7px4bxmW9JrUvOMke2Nwy1w$">https://urldefense.com/v3/__https://mail.python.org/archives/list/mailman-users@python.org/__;!!C5qS4YX3!AJcsaCQavpDgwaaIVqilPzNAu0rJ_NfoDw_GIKESav0V0oT2bK06YElcB7px4bxmW9JrUvOMke2Nwy1w$
 

------------------------------------------------------
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
    https://mail.python.org/archives/list/mailman-users@python.org/

Reply via email to