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: 64780
Status: rejected
Priority: 0/
Queue: Email-Address

People
Owner: Nobody in particular
Requestors: rfulbrig [...] hotmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.892
Fixed in: 1.892



Subject: Tab in email address deletes preceding text
If an email address contains a tab (x'09') character, all text preceding the tab is deleted when the email address is processed by the parse method of Email::Address (version 1.892). See attached test program and results file for example. I get the same result running Activestate Perl 5.8.9 on Windows Vista and Perl 5.8.8 on linux.
Subject: test_email_address_module.pl
#!/usr/bin/perl ##################################################################### # Name: test_email_address_module.pl # Desc: Text preceding TAB character is deleted. ##################################################################### use strict; use warnings; use Email::Address; my $email = 'address _tab@foo.com'; my @address = Email::Address->parse($email); print "\n"; printf("%8s: %s\n", $_, $email) for ( qw( original ) ); for my $address (@address) { printf("%8s: %s\n", $_, ($address->$_ or '')) for (qw( address user host name phrase comment format )); } print "\n";
Subject: test_email_address_module.txt
original: address _tab@foo.com address: _tab@foo.com user: _tab host: foo.com name: _tab phrase: comment: format: _tab@foo.com
On Fri Jan 14 13:35:13 2011, rfulbrig@hotmail.com wrote: Show quoted text
> If an email address contains a tab (x'09') character, all text > preceding the tab is deleted when the email address is processed by the > parse method of Email::Address (version 1.892). See attached test > program and results file for example. I get the same result running > Activestate Perl 5.8.9 on Windows Vista and Perl 5.8.8 on linux.
It's not a bug. You have "xxx\t_yyy\@example.com" string. Whole string is not a valid mailbox. "xxx" can not be part of the addr-spec as spaces are not allowed there. "xxx" can not be display-name (phrase) in name-addr as addr-spec should be surrounded by <> pair. Email::Address doesn't match complete string, but extracts any number of mailboxes within the string. -- Best regards, Ruslan.
On Tue Nov 06 05:22:27 2012, RUZ wrote: Show quoted text
> On Fri Jan 14 13:35:13 2011, rfulbrig@hotmail.com wrote:
> > If an email address contains a tab (x'09') character, all text > > preceding the tab is deleted when the email address is processed by
> the
> > parse method of Email::Address (version 1.892). See attached test > > program and results file for example. I get the same result running > > Activestate Perl 5.8.9 on Windows Vista and Perl 5.8.8 on linux.
> > It's not a bug. You have "xxx\t_yyy\@example.com" string. Whole string > is not > a valid mailbox. "xxx" can not be part of the addr-spec as spaces are > not allowed > there. "xxx" can not be display-name (phrase) in name-addr as addr- > spec should be surrounded > by <> pair. > > Email::Address doesn't match complete string, but extracts any number > of mailboxes within the > string.
I had doubts and decided to check once again. obs-local-part from RFC5322 which is more liberal than local-part does allow spaces (CFWS) around each word, but words must be separated with dots. So above statement is still valid and this ticket should be rejected. -- Best regards, Ruslan.
Thanks, Ruslan, trusting you on this one. :) -- rjbs