imap: select All Mail at the last possible moment

Otherwise it slows things down.