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

People
Owner: Nobody in particular
Requestors: daxim [...] cpan.org
Cc:
AdminCc:

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



Subject: recipient/sender not recognised unless fully qualified
I was just trying out a variation of the example in Email::Sender::Manual::QuickStart. I want to mimic this: Show quoted text
> mailx daxim
Subject: foo bar ^D EOT That gets delivered to the local system. However, the following program throws "no recipients"/"no sender". use Email::Simple qw(); use Email::Simple::Creator qw(); use Email::Sender::Simple qw(sendmail); use Email::Sender::Transport::Mbox qw(); my $email = Email::Simple->create( header => [ To => 'daxim', From => 'daxim', Subject => 'foo', ], body => 'bar', ); sendmail($email, {transport => Email::Sender::Transport::Mbox->new()}); The fault lies in Email::Address->parse.
On 2009-06-18 10:30:37, DAXIM wrote: Show quoted text
> The fault lies in Email::Address->parse.
Email::Address claims to parse RFC 2822 addresses, which must always have a domain part. I am not excited about trying to support the degenerate case of "bare local part." I will think about it. -- rjbs
There is a PR for this, which I do not promise to merge, but I'm closing this ticket to have one less open thing to track: https://github.com/rjbs/Email-Address/pull/9 -- rjbs