On 8/28/02 10:07 AM, "Jeffrey Berman" <[EMAIL PROTECTED]> wrote:

> I have an AppleScript script that includes commands for having Entourage
> check the inbox of an IMAP mail account for which I have the "Live Sync"
> option set.  My first approach used the following:
> 
> connect to default mail account
> 
> However, even though the account is marked with the "Download complete
> messages in Inbox" option, this command resulted in the downloading of new
> headers and not complete messages.
> 
> I then changed to the following command:
> 
> refresh (get imap inbox folder of default mail account)
> 
> which resulted in the downloading of complete new messages.
> 
> Another way I was able to issue a command that downloaded complete messages
> to the inbox was with the command:
> 
> execute schedule "Check Mail"
> 
> where "Check Mail" was a schedule with the "Receive Mail" action.
> 
> Can an Entourage guru explain the potential advantages/disadvantages of the
> latter two approaches, whether there is a way to have the "connect to"
> command download complete messages, and if there is a better script command
> for retrieving messages from an IMAP server in this situation?
> 
> -Jeffrey Berman
> 

Since they both work, there's no 'better' - use either for yourself. If
you're distributing scripts to other users, naturally use the 'refresh'
method since it will always work, whereas for 'execute schedule' you have to
know the name of the schedule - which you won't know for another user's
machine.

It's actually a good thing that 'connect to' only downloads headers, since
that gives you as a scripter complete control no matter what the user's
regular preferences. You (or the user via a dialog choice) can choose to
download just headers via 'connect to' or complete messages via 'connect to'
(if not permanently connected to the internet)  followed by 'refresh'. Why
does it bother you that you have to do it this way rather than via 'connect
to'? What if you _wanted_ to download just the headers , and 'connect to'
always downloaded complete messages? You wouldn't be able to do it. So the
way you discovered is better - it allows for all possibilities.

-- 
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/>

Reply via email to