My OS X mail is giving me fits. It frequently hangs up and stops downloading emails. The only way I can get it working again is to restart Mail, or take all mail accounts offline and then back online. I suspect it is a problem with one or more of my IMAP mailboxes, but Mac Mail is the only client that freezes up. My iPhone mail works fine on all those accounts even when the Mac Mail won't
Anyway, not knowing how to fix the root of the problem, I want to create an automator script that takes my accounts offline and online again every 10 minutes whenever Mac Mail is running. Does anyone know how to do that?