Subject: | Broken Message-ID generation in Mail/Message/Head/Complete.pm |
Date: | Tue, 26 Jul 2011 01:17:02 +0200 |
To: | bug-Mail-Box [...] rt.cpan.org |
From: | Christoph 'Mehdorn' Weber <christoph.weber [...] das-mehdorn.de> |
Hi!
I believe the Message-ID generator in
Mail/Message/Head/Complete.pm is broken, because Sys::Hostname is
used and will usually give you only the short name of the box.
However, RFC 5322 recommends the usage of a domain name (in
section 3.6.4):
"it is RECOMMENDED that the right-hand side contain some domain
identifier (either of the host itself or otherwise)"
I therefore suggest using hostfqdn() from Net::Domain instead of
Sys::Hostname's hostname(). Or, at least, try to use Net::Domain
and fall back to Sys::Hostname if you can't get an FQDN out of
hostfqdn().
Sincerly,
Christoph