Subject: | Email::MessageID used incorrectly -- sendmail chokes |
Mail::Builder uses the following line to add a Message-ID header:
# Set message ID
$obj->{'messageid'} = Email::MessageID->new();
This is wrong and violates RFC822. Email::MessageID says the following:
==
The Message-Id header must start and end with angle brackets. This is a
common mistake:
header => [
...
'Message-Id' => Email::MessageID->new->as_string,
],
Instead, use in_brackets to get the string inside angle brackets.
==
I believe that just saying Email::MessageID->new->in_brackets() should
fix the bug... Confirmed, yes it does.
Thanks for this package!