Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Email-Address CPAN distribution.

Report information
The Basics
Id: 52102
Status: open
Priority: 0/
Queue: Email-Address

Owner: Nobody in particular
Requestors: NWELLNHOF [...]

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

Subject: Several parsing and formatting bugs
Download (untitled) / with headers
text/plain 746b
See the attached test script. I get the following output: parsing: "Newsletter from <superm@rket>" <> phrase: Newsletter from address: superm@rket reformatted: "Newsletter from " <superm@rket> parsing: "Lawrence Peter \"Yogi\" Berra" <> phrase: Lawrence Peter \"Yogi\" Berra address: reformatted: "Lawrence Peter \\"Yogi\\" Berra" <> parsing: "Peter\\Sales Department" <> phrase: Peter\\Sales Department address: reformatted: "Peter\\Sales Department" <> parsing: "Peter\Sales Department" <> phrase: Peter\Sales Department address: reformatted: "Peter\Sales Department" <>
#!/usr/bin/perl use strict; use Email::Address; sub test { my $string = shift; print "parsing: $string\n"; my @addresses = Email::Address->parse($string); print "phrase: ", $addresses[0]->phrase, "\n"; print "address: ", $addresses[0]->address, "\n"; print "reformatted: ", $addresses[0]->format, "\n\n"; } test('"Newsletter from <superm@rket>" <>'); test('"Lawrence Peter \\"Yogi\\" Berra" <>'); test('"Peter\\\\Sales Department" <>'); test('"Peter\\Sales Department" <>');
These bugs are still present, and I will try to address them. -- rjbs

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to