Re: getting headers from Mail
Re: getting headers from Mail
- Subject: Re: getting headers from Mail
- From: cricket <email@hidden>
- Date: Mon, 18 Nov 2002 16:14:37 -0800
The 'properties' property on a message would be the way to do this --
if it weren't broken (not just in Mail, sadly).
Your only option at this point would be to use the 'headers' property
and do some text parsing on the result.
- cricket
On Monday, November 18, 2002, at 11:43 AM, Brian Redman wrote:
I'm using a pretty lame script to get headers and flags for messages in
a given mailbox from Mail. It's called periodically and takes about
1/4 second per message best case. The script iterates though the
messages:
...
sender of eachMessage
cc recipients of eachMessage
to recipients of eachMessage
date sent of eachMessage
subject of eachMessage
is junk mail of each eachMessage
is read of eachMessage
is deleted of eachMessage
...
Is there a more efficient way to use Applescript to send a slew of
commands to a program. For instance to get mail to spit out all the
headers and/or flags at once. For all the messages? I'd like to get at
some headers that aren't in the dictionary too. I'm guessing I'll need
to read the entire message?
I had code (not applescript) that read ~/Library/Mail/Mailboxes/... but
wanted to do it the "right" way if possible.
----->
Software Entomologist Mail for Mac OS X
http://www.apple.com/macosx/jaguar/mail.html
---------->
Mail: From the makers of Find the Bunny?
Software Entomologist Mail for Mac OS X
http://www.apple.com/macosx/jaguar/mail.html
---------->
It's a great thing when you realize you still have the ability to
surprise yourself.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.