Subject: | weird behaviour from status parsing |
This issue is best described in my github branch at
http://github.com/mstevens/mail-deliverystatus-bounceparser
There's a TODO test in malformed-dns.t which I think should pass -
something seems to go wrong and add extra whitespace when extracting the
status code for this email.
Test:
TODO: {
local $TODO = "status should be extracted correctly";
is($report->get("status"), "5.4.4", "check status code is
extracted ok");
};
Email content:
Final-Recipient: rfc822; f.b@a.b.c
Action: failed
Status: 5.4.4
Diagnostic-Code: X-Postfix; Name service error for name=a.b.c
type=MX: Malformed or unexpected name server reply
I'm not sure if I want to call this a bug, but it's certainly not
behaving as I'd expect.