> On 6/2/2011 2:13 PM, UUN Hostmaster wrote:
>
> Mark Sapiro wrote:
>
>> I am migrating some Majordomo Mailing lists to a CPanel Mailman
>> installation.
>
>
> So what are you really trying to accomplish? If you create the lists
> with cPanel's list create process (as opposed to Mailman's bin/newlist)
> they should get the appropriate real_name.
Mark,
I can't use the cPanel Web Interface because I have too many mailing lists
to create. If I use the Mailman newlist command to create
list-name_domain-name.tld, I need to change the real_name from
list-name_domain-name.tld to list-name. Also, I have to create my own
entries in the /etc/valiases/domain-name.tld file.
I found a program that will extract the needed information from the
Majordomo files: majordomo2mailman.pl. I had to modify parts of the
program to add the real_name and host_name, so I could create the
list-name_domain-name.tld for the newlist command.
I modified your python program to fit my needs:
def rename_list(mlist):
if not mlist.Locked():
mlist.Lock()
mlist.real_name = mlist.internal_name().split("_" + mlist.host_name)[0]
mlist.Save()
mlist.Unlock()
It works.
Jim
------------------------------------------------------
Mailman-Users mailing list [email protected]
http://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:
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org