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: jaysoffian on Dec 15, '06 11:41:01AM
I've been using this Applescript for ages to do the same thing:

on checkMail()
	tell application "Mail"
		if (background activity count is not 0) then return
		set everyIMAPAccount to every imap account
		repeat with eachIMAPAccount in everyIMAPAccount
			tell eachIMAPAccount
				-- cycle online status of each enabled and online account, causing mail to update the status for each folder
				if (enabled and include when getting new mail) then
					set include when getting new mail to false
					set include when getting new mail to true
				end if
			end tell
		end repeat
	end tell
end checkMail

on run
	tell application "System Events"
		if exists (application processes whose name is "Mail") then my checkMail()
	end tell
end run

on idle
	delay 120
	tell application "System Events"
		if not (exists (application processes whose name is "Finder")) then quit
		if exists (application processes whose name is "Mail") then my checkMail()
	end tell
	return 0
end idle
Save that as an Application Bundle in script editor and just set it as a login item. Tastes great, less filling (well, less mucking with Mail.app anyway...).

[ Reply to This | # ]
10.4: Improve IMAP folder support in Mail.app
Authored by: alex_kac on Dec 18, '06 03:22:45PM

I used to use this too, but I have having yet another process sit there and run like this. It just seems like a waste of CPU.



[ Reply to This | # ]