In Outlook 2003, and I suspect in 2007 (don't have a 2007 machine handy), there is a setting under Tools-Options-Mail Setup-Send/Receive called Schedule an automatic send/receive every __ minutes. I have mine set to 1 minute. Try this and see if it doesn't keep you logged in to your IMAP account.