Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Mail-DeliveryStatus-BounceParser CPAN distribution.

Report information
The Basics
Id: 72995
Status: new
Priority: 0/
Queue: Mail-DeliveryStatus-BounceParser

People
Owner: Nobody in particular
Requestors: brian [...] interlinx.bc.ca
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Mail::DeliveryStatus::BounceParser only returns single objects
Date: Sun, 02 Oct 2011 01:20:22 -0400
To: Ricardo Signes <rjbs [...] cpan.org>
From: "Brian J. Murrell" <brian [...] interlinx.bc.ca>
Hi Ricardo, Using version 1.525 (yes, not _the_ most recent, but I don't see anything in the changelog that indicates that 1.527 fixes anything in this regard) I seem to be unable to get all of the addresses/reports in a standard bounce message. For a bounce e-mail with the message/delivery-status: Content-Description: Delivery report Content-Type: message/delivery-status Reporting-MTA: dns; linux.interlinx.bc.ca X-Postfix-Queue-ID: E7E6C5C72B X-Postfix-Sender: rfc822; spam-report@interlinx.bc.ca Arrival-Date: Sat, 1 Oct 2011 23:57:28 -0400 (EDT) Final-Recipient: rfc822; postmaster@webhosting-manager.nl Original-Recipient: rfc822;postmaster@webhosting-manager.nl Action: failed Status: 5.1.1 Remote-MTA: dns; mail.webhosting-manager.nl Diagnostic-Code: smtp; 550 5.1.1 <postmaster@webhosting-manager.nl> User unknown; rejecting Final-Recipient: rfc822; postmaster@mail.webhosting-manager.nl Original-Recipient: rfc822;postmaster@mail.webhosting-manager.nl Action: failed Status: 5.7.1 Remote-MTA: dns; mail.webhosting-manager.nl Diagnostic-Code: smtp; 550 5.7.1 <postmaster@mail.webhosting-manager.nl>... we do not relay <spam-report@interlinx.bc.ca> for example and with the following code: my @b = <STDIN>; my $bounce = eval { Mail::DeliveryStatus::BounceParser->new(join('', @b)); }; my @addresses = $bounce->addresses(); # email address strings my @reports = $bounce->reports(); # Mail::Header objects my $orig_message_id = $bounce->orig_message_id(); # <ABCD.1234@mx.example.com> my $orig_message = $bounce->orig_message(); # Mail::Internet object foreach my $address (@addresses) { print "address:\n" } foreach my $report (@reports) { print "report:\n"; } I only get one each of the "address:" and "report:" lines: address: report: I would think I should get two, one for the postmaster@webhosting-manager.nl Final-Recipient and one for the postmaster@mail.webhosting-manager.nl Final-Recipeint, yes? Any ideas why this is not working? Cheers, b.
Download signature.asc
application/pgp-signature 262b

Message body not shown because it is not plain text.