On 9/25/02 5:56 AM, "Russell Fabry" <[EMAIL PROTECTED]> wrote:
> Can someone tell me how to get a message to be download from an IMAP
> account BEFORE a script runs on it? I posted earlier about an old
> script I had for saving text of messages automatically not working
> with my IMAP account, and was told to try the E List for advice on
> how to get the message to download before the text exporting is done.
> Anyone know how I would do this? I can email the script to anyone
> who'd like to help.
Rules which run automatically run as soon as a message arrives in the Inbox.
In the case of IMAP messages, that means the IMAP INBOX, so it really means
"as soon as the headers are downloaded from the IMAP INBOX to your
computer". So yes, they will start running before the message body has fully
downloaded. You could choose not to run the rule automatically in Rules, but
instead manually (Message/Apply Rule) on messages you select. You could
perhaps run the script from a Schedule instead of from a rule: you would
have to add lines to it to get it to run on messages of a particular folder
(the 'IMAP Inbox folder of IMAP account "whatever"' if you have Entourage X,
or by name if in 2001) only if the the message's 'online status' is 'fully
downloaded' and if the message has not already been processed (tricky).
Do you have "download complete messages to inbox" checked in the account
options? That probably doesn't make any difference, but just in case you
don't have it checked, try it.
Well maybe you could try this, but i think it will be very clunky and tie up
Entourage for long periods when checking mail. In the section of the script
that processes the message, usually just after a line like this:
set theMsg to item1 of (get current messages)
you could try
set ready to false
repeat until ready
if online status of theMsg is not fully downloaded then
delay 1
else
set ready to true
end if
end repeat
>
> Thanks... I'm a little antsy, because after 9/30, I will be 100%
> IMAP. (.mac refugee)
>
>
>>
>>
>>
--
Paul Berkowitz
--
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/>