2018年5月14日月曜日

How to change settings of a existing mailing list on ma


I use mailman package on FreeBSD system for my mailing lists. When I've tried to change the setting of my mailing list, I've found that the settings of mailman mailing lists are stored on binary files. I should use some commands to change settings.

If you want to see the settings of a mailing list, I can do as following:

$ LANG=C sudo dumpdb -p /usr/local/mailman/lists/blogger/config.pck | grep web_page_url
    ‘web_page_url’: ‘http://blog.example.com/mailman/',
$
When you change the value of 'web_page_url', you can do as following:
$ LANG=C sudo withlist -l -i blogger
Loading list blogger (locked)
The variable `m’ is the blogger MailList instance
>>>m.web_page_url
‘http://blog.example.com/mailman/’
>>> m.web_page_url=‘http://mail.example.com/mailman/’
>>> m.web_page_url
‘http://mail.example.com/mailman/’
>>> m.Save()
>>>
Unlocking (but not saving) list: blogger
Finalizing
$