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


Click here to return to the 'Ignore selected IMAP folders using Mail.app' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Ignore selected IMAP folders using Mail.app
Authored by: jaysoffian on Apr 25, '03 03:11:26AM
Here's a work-around to the fact that Mail.app doesn't check all the folders. Save the following applescript as an application using the script editor:

on checkMail()
	tell application "Mail"
		set everyAccount to every imap account
		repeat with eachAccount in everyAccount
			tell eachAccount
				set include when getting new mail to false
				set include when getting new mail to true
			end tell
		end repeat
	end tell
end checkMail

on run
	checkMail()
end run

on idle
	checkMail()
	return 60
end idle

I run this whenever Mail.app is running. This causes every imap account to scan all the folders once a minute. I'm using it with three imap accounts succesfully.

One thing I've noticed though is that the INBOX's sometimes don't update when using just this script, so you may have to run this script in addition to telling Mail.app to check your mail on a regular basis.

---
j.


[ Reply to This | # ]

Ignore selected IMAP folders using Mail.app
Authored by: rotaiv on Apr 25, '03 02:26:36PM

I compiled this script as an Application and it works just great. I
had to select "Application" under "Format" and click the "Stay
open" checkbox for it to work correctly.

For those who want to use this script on a regular basis, you
could remove the Mail.App icon from your Dock and replace it
with this script. This script will automatically start the Mail.app
application, check all IMAP folders and continue to run in the
background.



[ Reply to This | # ]