Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Improve IMAP folder support in Mail.app' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Improve IMAP folder support in Mail.app
Authored by: allanmarcus on Dec 15, '06 02:16:57PM

Here's my AppleScript, saved as a script:

tell application "System Events"
if exists process "Mail" then
try
tell application "Mail"
set everyIMAPAccount to every imap account
repeat with eachAccount in everyIMAPAccount
if enabled of eachAccount then
set theAccountToSynchronize to eachAccount
synchronize with theAccountToSynchronize
end if
end repeat
end tell
end try
end if
end tell

I think have the following crontab job:

0,10,20,30,40,50 8,9,10,11,12,13,14,15,16,17 * * 1,2,3,4,5 /usr/bin/osascript /Users/allan/Documents/AppleScipts/SyncMail.scpt


Every ten minutes on weekdays between 8 and 5 check my mail.



[ Reply to This | # ]