On 7/7/04 11:51 am, "Paul Berkowitz" <[EMAIL PROTECTED]> wrote:
> Sorry that's wrong. There is a "Message-ID: " header which can be extracted
> by AppleScript but it's a little tricky since AS is case-sensitive here but
> the header isn't - it comes with various capitalizations. If you really need
> this, I can tell you how to get it, nut perhaps you don't need anything but
> Entourage's own ID (much easier to work with)? You still had better explain
> where you're going to get these from.
I'm guessing that you're referring to TIDs here Paul?
Yes, they are case sensitive, but since messages rarely have more than a
dozen header lines I generally do this:
repeat with aHeader in every paragraph of (get headers of msg)
if aHeader starts with "Message-id" then
set msgID to text 14 thru -2 of contents of aHeader
exit repeat
end if
end repeat
The loop is certainly slower than using tids, but by the time you have
checked 4 or five variants of 'message-id', the loop will almost certainly
be fast enough, unless you are checking thousands of messages in a single
script.
--
Barry Wainwright
Microsoft MVP (see http://mvp.support.microsoft.com for details)
Seen the All-New Entourage Help Pages? - Check them out:
<http://www.entourage.mvps.org/>
--
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/>