Author nobody
Recipients
Date 2000-08-01.21:01:39
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
From: Sjoerd Mullender <sjoerd@oratrix.nl>
Subject: Re: [Python-bugs-list] rfc822.Message getaddr method bug (PR#39)
Date: Mon, 02 Aug 1999 14:09:40 +0200

On Fri, Jul 30 1999 piers@cs.su.oz.au wrote:

> Full_Name: Piers Lauder
> Version: 1.5.2
> OS: Solaris
> Submission from: metra.ucc.usyd.edu.au (129.78.64.5)
> 
> 
> The following mail header, when parsed by rfc822, returns an incorrect
> address from the method getaddr:
> 
>         From nobody@bounces.amazon.com Thu Jul 29 18:09:07 1999
>         Date: Thu, 29 Jul 1999 00:05:26 -0700
>         MIME-Version: 1.0
>         Content-Type: multipart/alternative; boundary=z
>         Subject: A Message from Amazon.com Delivers
>         From: Amazon.com <delivers-news2@amazon.com>
> 
>         >>> import rfc822
>         >>> fd=open('mail/amazon.com')
>         >>> M=rfc822.Message(fd, 1)
>         >>> M.getaddr('From')
>         ('', 'Amazon.com')
> 
> Python version is:
> Python 1.5.2 (#10, May 11 1999, 15:32:03)  [GCC 2.8.1] on sunos5

It's an incorrect mail header.  The period in Amazon.com is not
allowed there but the name has to be quoted with double quotes.

But I guess rfc822.py could (and should) be lenient and let you get
away with this.

-- Sjoerd Mullender <sjoerd.mullender@oratrix.com>
History
Date User Action Args
2007-08-23 13:49:21adminlinkissue210678 messages
2007-08-23 13:49:21admincreate