Re: text additions or library for parsing email headers
Re: text additions or library for parsing email headers
- Subject: Re: text additions or library for parsing email headers
- From: Beatrix Willius <email@hidden>
- Date: Sat, 12 Apr 2008 07:54:40 +0200
At 19:22 +0200 4/11/08, MB wrote: The objective is to be able to compare 2 or more email messages in applicatin PowerMail and determine they are duplicates, even though one of them may have been taking a different route and have had some new attribute lines added.
SNIP by DPM
You may not need all of that. (But get thee to perl if you really do.)
Can you give a link for this?
This header is from your posting. It is quite reliable about duplicate messages and I haven't seen a message without the header in years. It's created by the sending mail client and is unique enough that simply comparing that header with another copy of the message is adequate. Eudora uses that technique to handle its "delete duplicates" option and I have never been upset with it.
Wouldn't the message ID be different if the two mails came by a different route?
You don't need to compare the complete headers to get a reliable indication for duplicate mails. I use a checksum on the concatenation of Originator, Receiver, Date and Mail Body. If AppleScript can calculate checksums would be the next question.
HTH
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden