From c6bd2024ebcb3982bb07c3fed1bb13d7ded332bd Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Sat, 8 Jul 2006 18:02:57 +0000 Subject: Fix some buglets with virtual domain support and repair unit tests broken by this change. More unit tests should be added. misc/sitelist.cfg is removed -- this is an ex-site list. MailList.GetNoReplyEmail() -> MailList.no_reply_address (property) UserNotification._enqueue(), OwnerNotification._enqueue(): when queing the message to the virgin queue, be sure to use the fully qualified (i.e. posting) address for the list. In the MTA modules, be sure to set up the target of the mail commands as the fqdn listname because otherwise we can't find the correct list. This needs some tweaking/testing for Postfix's virtual domain support. MailList.Load() has to grow an optional argument specifying the fqdn listname. The problem is that in some situations, we can't calculate that because we don't know _internal_name, so it has to be passed in. This is mostly the case in the MailList ctor where a Load hasn't happened yet. For backward compatibility though, if it's not passed in, just use mlist.fqdn_listname. --- Mailman/Cgi/rmlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Mailman/Cgi/rmlist.py') diff --git a/Mailman/Cgi/rmlist.py b/Mailman/Cgi/rmlist.py index e10e77b6e..78bc5d4f7 100644 --- a/Mailman/Cgi/rmlist.py +++ b/Mailman/Cgi/rmlist.py @@ -168,7 +168,7 @@ def process_request(doc, cgidata, mlist): table.AddRow([_('''You have successfully deleted the mailing list %(listname)s.''')]) else: - sitelist = mlist.GetNoReplyEmail() + sitelist = mlist.no_reply_address table.AddRow([_('''There were some problems deleting the mailing list %(listname)s. Contact your site administrator at %(sitelist)s for details.''')]) -- cgit v1.2.3-70-g09d2