Subject: | Wrong sequence in determining @host for new lists |
When determining the suggested domain for a new list, Mail::Ezmlm reads "me" first, and then "defaulthost".
The correct way would be the exact opposite. Also, in a valid qmail installation, "me" is always present; therefore, defaulthost could only have been read in a broken qmail.
It would also be nice to read the "rewrite" file when mess822 is used (which renders defaulthost unnecessary) but even this solution is better.
--- Mail/Ezmlm_pm Sat Aug 24 07:14:20 2002
+++ Mail/Ezmlm.pm Wed May 29 09:38:14 2002
@@ -553,8 +553,8 @@
my($self) = @_;
my($hostname);
- open (GETHOST, "<$QMAIL_BASE/control/me")
- || open (GETHOST, "<$QMAIL_BASE/control/defaultdomain")
+ open (GETHOST, "<$QMAIL_BASE/control/defaulthost")
+ || open (GETHOST, "<$QMAIL_BASE/control/me")
|| (_seterror($?) && return undef);
chomp($hostname = <GETHOST>);
close GETHOST;