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)



MIME-Version: 1.0
X-Spam-Status: No, score=-1.9 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9] autolearn=ham
X-Spam-Flag: NO
content-type: text/plain; charset="utf-8"; format="flowed"
Message-ID: <537F478F.6000903 [...] dailyda.com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Virus-Scanned: amavisd-new at mail.aksprendimai.lt
X-Spam-Score: -1.9
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 5E8E4240878 for <cpan-bug+MailTools [...] hipster.bestpractical.com>; Fri, 23 May 2014 09:05:44 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wBnm5uLqj+V9 for <cpan-bug+MailTools [...] hipster.bestpractical.com>; Fri, 23 May 2014 09:05:41 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id BF60D240876 for <bug-MailTools [...] rt.cpan.org>; Fri, 23 May 2014 09:05:36 -0400 (EDT)
Received: (qmail 10298 invoked by alias); 23 May 2014 13:05:35 -0000
Received: from vpn.aksprendimai.lt (HELO vpn.aksprendimai.lt) (213.197.164.114) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 23 May 2014 06:05:29 -0700
Received: from localhost (mail.aksprendimai.lt [127.0.0.1]) by vpn.aksprendimai.lt (Postfix) with ESMTP id E5D3710A9E0B for <bug-MailTools [...] rt.cpan.org>; Fri, 23 May 2014 09:05:23 -0400 (EDT)
Received: from vpn.aksprendimai.lt ([127.0.0.1]) by localhost (mail.aksprendimai.lt [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UhRSnCVhGOU6 for <bug-MailTools [...] rt.cpan.org>; Fri, 23 May 2014 09:05:18 -0400 (EDT)
Received: from [10.0.0.105] (ugnis.lan [10.0.0.1]) by vpn.aksprendimai.lt (Postfix) with ESMTPSA id 9CAA510A9E36 for <bug-MailTools [...] rt.cpan.org>; Fri, 23 May 2014 09:05:17 -0400 (EDT)
Delivered-To: cpan-bug+MailTools [...] hipster.bestpractical.com
Subject: Mail::Address::parse semicolon handling
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
Return-Path: <tadas [...] dailyda.com>
X-RT-Mail-Extension: mailtools
X-Original-To: cpan-bug+MailTools [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Date: Fri, 23 May 2014 16:05:19 +0300
X-Spam-Level:
To: bug-MailTools [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Tadas Dailyda <tadas [...] dailyda.com>
X-RT-Original-Encoding: utf-8
X-RT-Interface: Email
Content-Length: 339
Download (untitled) / with headers
text/plain 339b
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.
MIME-Version: 1.0
X-Spam-Status: No, score=-3.229 tagged_above=-99.9 required=10 tests=[AWL=0.671, BAYES_00=-1.9, FROM_OUR_RT=-2, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham
In-Reply-To: <rt-4.0.18-31729-1400850346-153.95893-4-0 [...] rt.cpan.org>
Content-Disposition: inline
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-95893 [...] rt.cpan.org> <537F478F.6000903 [...] dailyda.com> <rt-4.0.18-31729-1400850346-153.95893-4-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <20140523201932.GA11192 [...] moon.overmeer.net>
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -3.229
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id F1DBD61E011 for <cpan-bug+mailtools [...] hipster.bestpractical.com>; Fri, 23 May 2014 16:19:47 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o6abx8XfzDJX for <cpan-bug+mailtools [...] hipster.bestpractical.com>; Fri, 23 May 2014 16:19:46 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 85A0E61E00E for <bug-mailtools [...] rt.cpan.org>; Fri, 23 May 2014 16:19:45 -0400 (EDT)
Received: (qmail 5401 invoked by alias); 23 May 2014 20:19:44 -0000
Received: from fep19.mx.upcmail.net (HELO fep19.mx.upcmail.net) (62.179.121.39) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 23 May 2014 13:19:40 -0700
Received: from edge01.upcmail.net ([192.168.13.236]) by viefep19-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20140523201935.WVPT10108.viefep19-int.chello.at [...] edge01.upcmail.net> for <bug-mailtools [...] rt.cpan.org>; Fri, 23 May 2014 22:19:35 +0200
Received: from moon.overmeer.net ([178.84.121.203]) by edge01.upcmail.net with edge id 5YKZ1o00D4PQHKm01YKZeZ; Fri, 23 May 2014 22:19:35 +0200
Received: by moon.overmeer.net (Postfix, from userid 1000) id 12BF5160A2B; Fri, 23 May 2014 22:19:33 +0200 (CEST)
Delivered-To: cpan-bug+mailtools [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #95893] Mail::Address::parse semicolon handling
User-Agent: Mutt/1.5.21 (2010-09-15)
Return-Path: <markov [...] overmeer.net>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+mailtools [...] hipster.bestpractical.com
X-RT-Mail-Extension: mailtools
Date: Fri, 23 May 2014 22:19:33 +0200
X-Sourceip: 178.84.121.203
X-Spam-Level:
To: Tadas Dailyda via RT <bug-MailTools [...] rt.cpan.org>
From: Mark Overmeer <mark [...] overmeer.net>
RT-Message-ID: <rt-4.0.18-3584-1400876388-562.95893-0-0 [...] rt.cpan.org>
Content-Length: 1241
Download (untitled) / with headers
text/plain 1.2k
* 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
MIME-Version: 1.0
In-Reply-To: <537F478F.6000903 [...] dailyda.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <537F478F.6000903 [...] dailyda.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-16639-1412965320-1679.95893-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 19
no patches provided


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.