On 09 Dec 2003, at 17:09, Chuck Campbell wrote:
I've found (surprise, surprise) that dates in the Date: header are
truly
unreliable (I have a range from 1970 to 2068).
All I really care about is when I received the email, since I know my
mail
machine's date is correct.
I want to sort and file based on the Received: header date, but there
are
typically a lot of them in each message, depending on where the
message has
gone en route to me.
When we went through this last summer the consensus was to use the
FROM_ header for the date/time stamp. However, for my uses I wanted
the Received header from my server, since I was using fetchmail to
download. I wanted all my mail to have the date that it was delivered
to my mail server and not the date that it arrived on my home machine.
1)Is the last Received header ALWAYS the one for my machine? (e.g. the
only
one I care about)?
This depends on how you get your mail and if that changes any. In
general, yes, the last received header is when the mail arrived at the
last mailserver. However, things like fetchmail to a local IMAP store
will add another Received header, which you may or may not want to
respect.
4)Will I want to extract a date using a regexp, or is there an easier
way?
<http://www.xray.mpe.mpg.de/mailing-lists/procmail/2003-03/
msg00026.html>
--
"I don't care how much melanin you have in your skin nor who you sleep
with, you can't have my cheese."
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail