I'm trying to get and then export messages with a specific recipient from a
folder. I was hoping to use a "whose" clause to select the messages, but
can't seem to get the right syntax to look at the recipient address. Once I
have a message I can get use a repeat loop and:

get address of recipients of i

To get the address. I'd like one line to assign all affected messages to a
variable. Something like:

set msgs to messages of folder named sentItems whose recipients contains
"string"

I've tried:

whose recipients
whose to recipients
whose (address of to recipients)
whose (address of address of recipients whose recipient type is to
recipient)

(that last one seems ridiculous). In reality, I just want to export all
messages addressed to a display name containing "Fred".

Any pointers.

-Remo Del Bello 

-- 
No sense being pessimistic. It wouldn't work anyway.

Reply via email to