Changed imap fetch to grab all messages in one command request.
Processed all the RFC822 emails at once (with fancy ifilter at the
beginning.