Update! After reading the theory on this page you should go to this page to find a simpler, better solution.
Ok this hack might not be for everyone, but if you have Gmail set up to check your pop accounts they don’t let you set the polling frequency anywhere. This can be bad because it makes you go to the settings page to be able to hit the refresh button on each one of your accounts! After a little digging it turns out it uses a weird formula to determine the polling frequency. Let’s say it checks your account and finds an email. The next time it checks it will wait for _slightly less time_ before it checks again. If it finds email a second time it will continue to shorten the interval until it is checking every 5 minutes or so (maybe even less!) The purpose of this is so that google doesn’t waste resources checking an account that only gets one email a month.
The downside of this approach is that if you are eagerly waiting for that one email you might be waiting for a long time (i have seen wait times up to 58 minutes!)
The answer is very simple once you know how it works – get more email! I didn’t want to test to see if the spam filter counts spam received as real mail. I doubt that it does. So I did the next best thing – I automated sending myself email!
I have thought of two different ways of doing this both are mac only, but there must be a billion ways to skin this cat!
The better way I created is to use an automator action to run an applescript from macosxhints to fill out and send an email from mail.app. (mail.app must be configured to send email on your computer already) You must obviously replace the fields in the sample script to ones that apply for you. Give it a distinctive subject so you can filter it out easily later on. Copy your edited script and open up automator. In Automator go to Library>utlities>run applescript. Paste your script in the window that pops up to the right. Then repeat the steps to add a second applescript. Paste in this code.
tell application "System Events"
set visible of process "Mail" to false
That code hides mail.app after it is done sending the mail. Finally, save your workflow out with a snazzy name.
The next piece is that I used the “Automator Loop Utility” from automator.us to put this automator workflow in a loop. Download the app, and drag your workflow onto it. It will ask you how quickly you want the loop to loop in seconds. Set it to something reasonable (I used 500 seconds, it probably could be even more realistically) Then the app will save out an application that is your automator workflow, all looped up!
The last piece is to go into Gmail and set up a mail filter to auto-delete these emails when they come in. You don’t want them cluttering up your inbox, now do you?! The easiest way to do it is to double click the app you made in the last step. It should send an email. Wait for it to get into your gmail account and open it up. click on “more actions” and then on “filter messages like these” Be sure to add your custom subject into the filter, and finish setting up the filter.
That ought to be it!
I was able to get Gmail so that it checked my mail every 5 minutes. I might have been able to get it even lower, but I don’t really want to abuse the system here. This technique does have its problems though. For one you have to have your computer running and connected all_the_time for this to work. That’s kind of a drag. Secondly it sucks having mail.app flick to the front and then away every x00 seconds. If anyone finds a better solution (command line hackers-anyone??) I would love to hear about it!
Hopefully this helps.
Oh yeah, if you are wondering how to quit the looping app that you made, just click and hold on it in the dock, and then select quit from the pop up menu!