FAQ
Hi Mailman Users,

The organisation I'm working for is changing it's domain name. I need to
process all mailing lists on our MailMan system and alter the subscribed
addresses from our current domain to the new one, leaving external
subscriber addresses intact.

Has anyone done such a thing, or something similar? DB/python is not my
area, so any sample code to open a mailman database file and recurse
through subscribed addresses would be very useful.

--
Tony Howat
UNIX Network Administrator
The London Institute

Search Discussions

  • Tony Howat at Apr 22, 2004 at 12:13 pm

    Tony Howat wrote:
    Hi Mailman Users,

    The organisation I'm working for is changing it's domain name. I need to
    process all mailing lists on our MailMan system and alter the subscribed
    addresses from our current domain to the new one, leaving external
    subscriber addresses intact.

    Has anyone done such a thing, or something similar? DB/python is not my
    area, so any sample code to open a mailman database file and recurse
    through subscribed addresses would be very useful.
    Do ignore me. list_members provides such a template!

    --
    Tony Howat
    UNIX Network Administrator
    The London Institute
  • Richard Barrett at Apr 22, 2004 at 4:48 pm

    On 22 Apr 2004, at 13:09, Tony Howat wrote:
    Hi Mailman Users,

    The organisation I'm working for is changing it's domain name. I need
    to process all mailing lists on our MailMan system and alter the
    subscribed addresses from our current domain to the new one, leaving
    external subscriber addresses intact.

    Has anyone done such a thing, or something similar? DB/python is not
    my area, so any sample code to open a mailman database file and
    recurse through subscribed addresses would be very useful.
    using the available command line tools, then for each list:

    1. use $prefix/bin/list_members to extract the subscriber list to a
    text file

    2. edit the email addresses in the file using sed, a perl script or
    whatever text manipulation tool is your preference

    3. use $prefix/bin/sync_members to tell MM to update the subscriber list

    put a shell wrapper around it to iterate over all your lists.

    no knowledge of python or MM internals required
    --
    Tony Howat
    UNIX Network Administrator
    The London Institute

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedApr 22, '04 at 12:09p
activeApr 22, '04 at 4:48p
posts3
users2
websitelist.org

2 users in discussion

Tony Howat: 2 posts Richard Barrett: 1 post

People

Translate

site design / logo © 2022 Grokbase