Skip Menu |

This queue is for tickets about the MIME-Lite CPAN distribution.

Report information
The Basics
Id: 54270
Status: resolved
Priority: 0/
Queue: MIME-Lite

People
Owner: Nobody in particular
Requestors: marko.45.24.75.43 [...] gmail.com
Cc:
AdminCc:

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



Subject: Mime::Lite bug, 'reply-to'
Date: Wed, 3 Feb 2010 15:56:02 -0500
To: bug-MIME-Lite [...] rt.cpan.org
From: marko <marko.45.24.75.43 [...] gmail.com>
M-Windows XP, ActiveState Perl 5.10.0. Using Mime::Lite as follows: #create msg struct my $msg = MIME::Lite->new( From => $sender, 'Reply-To' => $replyto, 'Errors-To' => $errorto , To => $recip, Cc => $ccrecip, Subject => $SubjLINE, Type =>'TEXT', Data => $TXT ); $msg->attr('content-type.charset' => 'ISO-8859-1'); # 'UTF-8', 'ISO-8859-1' options for character encoding The code had no problem before I added 'Reply-To'. Now the message is sent, but I see this error: Use of uninitialized value $value in concatenation (.) or string at C:/Perl/site /lib/MIME/Lite.pm line 1207. LITE.PM code: sub add { my $self = shift; my $tag = lc(shift); my $value = shift; ### If a dangerous option, warn them: Carp::carp "Explicitly setting a MIME header field ($tag) is dangerous:\n" . "use the attr() method instead.\n" if ( is_mime_field($tag) && !$QUIET ); ### Get array of clean values: my @vals = ( ( ref($value) and ( ref($value) eq 'ARRAY' ) ) ? @{$value} #<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 1207 : ( $value . '' ) ); map { s/\n/\n /g } @vals; ### Add them: foreach (@vals) { push @{ $self->{Header} }, [ $tag, $_ ]; } }
Subject: Re: [rt.cpan.org #54270] Mime::Lite bug, 'reply-to'
Date: Wed, 3 Feb 2010 16:04:38 -0500
To: marko via RT <bug-MIME-Lite [...] rt.cpan.org>
From: Ricardo Signes <rjbs [...] cpan.org>
* marko via RT <bug-MIME-Lite@rt.cpan.org> [2010-02-03T15:57:13] Show quoted text
> #create msg struct > my $msg = MIME::Lite->new( From => $sender, 'Reply-To' => $replyto, > 'Errors-To' => $errorto , To => $recip, Cc => $ccrecip, > Subject => $SubjLINE, Type =>'TEXT', Data => $TXT ); > $msg->attr('content-type.charset' => 'ISO-8859-1'); # 'UTF-8', > 'ISO-8859-1' options for character encoding > > The code had no problem before I added 'Reply-To'. Now the message is > sent, but I see this error: > > Use of uninitialized value $value in concatenation (.) or string at C:/Perl/site > /lib/MIME/Lite.pm line 1207.
Are you absolutely positive that $replyto has a defined value? -- rjbs
Subject: Re: [rt.cpan.org #54270] Mime::Lite bug, 'reply-to'
Date: Wed, 3 Feb 2010 16:25:04 -0500
To: bug-MIME-Lite [...] rt.cpan.org
From: marko <marko.45.24.75.43 [...] gmail.com>
Hello, if you want me to be "absolutely positive", I will check again and get back to you with some output. Thanks for your time -- MIME::Lite is excellent. On 3 February 2010 16:06, Ricardo SIGNES via RT <bug-MIME-Lite@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=54270 > > > * marko via RT <bug-MIME-Lite@rt.cpan.org> [2010-02-03T15:57:13]
>>       #create msg struct >>       my $msg = MIME::Lite->new( From =>  $sender, 'Reply-To' => $replyto, >> 'Errors-To' => $errorto , To =>  $recip, Cc => $ccrecip, >>               Subject =>  $SubjLINE, Type =>'TEXT', Data =>  $TXT ); >>       $msg->attr('content-type.charset' => 'ISO-8859-1'); # 'UTF-8', >> 'ISO-8859-1' options for character encoding >> >> The code had no problem before I added 'Reply-To'. Now the message is >> sent, but I see this error: >> >> Use of uninitialized value $value in concatenation (.) or string at C:/Perl/site >> /lib/MIME/Lite.pm line 1207.
> > Are you absolutely positive that $replyto has a defined value? > > -- > rjbs > >
Subject: Re: [rt.cpan.org #54270] Mime::Lite bug, 'reply-to'
Date: Thu, 4 Feb 2010 11:04:43 -0500
To: bug-MIME-Lite [...] rt.cpan.org
From: marko <marko.45.24.75.43 [...] gmail.com>
It appears that I... am a bonehead. I read the ReplyTo value into a hash from an external configuration file. The hash key value was wrong. I owe you a beer! On 3 February 2010 16:25, marko <marko.45.24.75.43@gmail.com> wrote: Show quoted text
> Hello, if you want me to be "absolutely positive", I will check again > and get back to you with some output. Thanks for your time -- > MIME::Lite is excellent.
>> >> Are you absolutely positive that $replyto has a defined value? >>
no problem ;) (but I'll still take the beer) -- rjbs
Subject: Re: [rt.cpan.org #54270] Mime::Lite bug, 'reply-to'
Date: Thu, 4 Feb 2010 11:20:21 -0500
To: bug-MIME-Lite [...] rt.cpan.org
From: marko <marko.45.24.75.43 [...] gmail.com>
Where are you in the world? Somewhere with good beer? On 4 February 2010 11:16, Ricardo SIGNES via RT <bug-MIME-Lite@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=54270 > > > no problem ;) > > (but I'll still take the beer) > > -- > rjbs >
I'm in beautiful Bethlehem, Pennsylvania, which is situation about 120 km west of New York City and 120 km north of Philadelphia. Pennsylvania and neighboring states have a number of truly excellent breweries and produce some of my favorite beers in the world. I have cataloged many (mostly local) beers in annotated photographs, here: http://www.flickr.com/photos/rjbs/sets/72157622233447346/ It is sad to imagine that there exist places in the world with no good beer! Presumably such places exist, though. -- rjbs
Subject: Re: [rt.cpan.org #54270] Mime::Lite bug, 'reply-to'
Date: Thu, 4 Feb 2010 11:57:04 -0500
To: bug-MIME-Lite [...] rt.cpan.org
From: marko <marko.45.24.75.43 [...] gmail.com>
One such place is NOT Belgium! Here's my favourite: http://en.wikipedia.org/wiki/Grimbergen_%28beer%29 I am however in Ottawa Canada, much closer to Pennsylvania than to Brussels. And it's cold up here. (o; On 4 February 2010 11:49, Ricardo SIGNES via RT <bug-MIME-Lite@rt.cpan.org> wrote: Show quoted text
> I'm in beautiful Bethlehem, Pennsylvania, which is situation about 120 km west of New York City > and 120 km north of Philadelphia.  Pennsylvania and neighboring states have a number of truly > excellent breweries and produce some of my favorite beers in the world. > > I have cataloged many (mostly local) beers in annotated photographs, here: > >  http://www.flickr.com/photos/rjbs/sets/72157622233447346/ > > It is sad to imagine that there exist places in the world with no good beer!  Presumably such > places exist, though.
(please do not reply; it will re-open the bug) -- rjbs