Header Display
Status: Abandoned
Brought to you by:
henning
When I view an e-mail I have received, I am missing a
quote in the "FROM" field and the day is wrong in
the "DATE" field (although the date itself is correct)
i.e:
Mailer: Microsoft Outlook Express 5.50.4133.2400
Date: Mon, 29. Dec 2001 14:31
From: "FirstName LastName <someuser@somedomain.com>
[Add to address book]
To: localuser@somelocaldomain.com
Subject: CHECK NAME
See the missing " after LastName?
Also, 29 Dec. is a Saturday.
When I pull this message into Outlook, it looks OK,
and the quotes and date are ok if I look at the file
directly in /var/spool/mail...
any ideas?
Logged In: NO
I just noticed, the day always shows as 'Mon'..
Logged In: YES
user_id=2193
A look at the docs for rfc822 reveals the reason for this:
http://python.org/doc/current/lib/message-objects.html
getdate(name)
Retrieve a header using getheader() and parse it into a
9-tuple compatible with time.mktime(); note that fields 6,
7, and 8 are not usable. If there is no header matching
name, or it is unparsable, return None.
I didn't check every version, but this is the case for
current and 1.5.2.
Whoopsie.
Logged In: YES
user_id=2193
The missing " is easily fixed. See my patch in the patch
system for this bug. I'm thinking about the date problem.
Logged In: YES
user_id=2193
I have another patch to fix the date part of this bug.
Check the patch system.