On 24/3/02 10:16 pm, "Paul Berkowitz"  wrote:

> On 3/24/02 2:03 PM, "Barry Wainwright" <[EMAIL PROTECTED]> wrote:
> 
>> However, my script uses the 'message-ID' header to identify duplicates,
>> rather than the 'compare subject, sender, timestamp' method (and can find
>> duplicates with the folder sorted in any (or no) order).
> 
> Message-ID is generally better (I didn't know about it then). However, I've
> had a few weird messages without one, (although fewer than messages without
> sender) 

There _shouldn't_ be any (it's a required field according to the rfcs), but
it does need to be checked. Also, news messages don't have to have an ID!
(and usually don't)

> and there's more than one way for them to be specified: different
> capitalizations. Email client parsers are evidently not case-sensitive, but
> AppleScript's text item delimiters are (and no way around that - you can't
> put them in an 'ignoring case' block, doesn't work). So, it will take a bit
> of doing to accommodate "Message-ID", "Message-Id", "Message-id", all of
> which I've seen.

OK, I'd not come across that problem, but here's a work-round:

set AppleScript's text item delimiters to "Message-"
set temp to text item 2 of theHeaders
set AppleScript's text item delimiters to return
set theID to text 5 through -1 of text item 1 of temp

So far as I am aware, there is no other 'standard' field that begins with
"Message-". You could also just leave the 'id: ' on the start of the message
ID. It wouldn't make any difference when comparing message Ids because case
would be ignored from there on.

I just ran a count on some fairly hefty folders from lists that retain the
original message-ID (some lists remove the original and substitute their
own). Approx 3% of messages have '-id', and 1.25% have '-Id' all the others
had '-ID'. None had the id missing. About 5,000 messages were scanned.
-- 
Barry Wainwright
<http://www.barryw.net>


When you find yourself the victim of other people's bitterness, ignorance,
smallness or insecurities, remember, things could be worse - you could be
them."   --  Unknown



-- 
To unsubscribe:                     
<mailto:[EMAIL PROTECTED]>
archives:       
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:       
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>

Reply via email to