Skip Menu |

This queue is for tickets about the MailTools CPAN distribution.

Report information
The Basics
Id: 95893
Status: resolved
Priority: 0/
Queue: MailTools

People
Owner: Nobody in particular
Requestors: tadas [...] dailyda.com
Cc:
AdminCc:

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



Subject: Mail::Address::parse semicolon handling
Date: Fri, 23 May 2014 16:05:19 +0300
To: bug-MailTools [...] rt.cpan.org
From: Tadas Dailyda <tadas [...] dailyda.com>
So I got this email with "From:" field like this: Display name; name2 <email@host.com> The problem is this strange display name with semicolon in it. When the string is passed to Mail::Address:parse it treats it as a list of 2 email addresses and subsequent code fails since the first part doesn't have any valid email address in it.
Subject: Re: [rt.cpan.org #95893] Mail::Address::parse semicolon handling
Date: Fri, 23 May 2014 22:19:33 +0200
To: Tadas Dailyda via RT <bug-MailTools [...] rt.cpan.org>
From: Mark Overmeer <mark [...] overmeer.net>
* Tadas Dailyda via RT (bug-MailTools@rt.cpan.org) [140523 13:06]: Show quoted text
> Fri May 23 09:05:45 2014: Request 95893 was acted upon. > Transaction: Ticket created by tadas@dailyda.com > Queue: MailTools > Subject: Mail::Address::parse semicolon handling > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=95893 > > > So I got this email with "From:" field like this: > Display name; name2 <email@host.com> > > The problem is this strange display name with semicolon in it. When the > string is passed to Mail::Address:parse it treats it as a list of 2 > email addresses and subsequent code fails since the first part doesn't > have any valid email address in it.
There are many ways to corrupt email addresses, other headers, and even the message body. You have to defend yourself against them. On the other hand, if you have a bright extension, you may submit a patch for this ancient code. -- Regards, MarkOv ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net
no patches provided