Improving the current message list fetching to execute less transactions with imap.

Additionally I noticed that it is an overkilll to retrieve the message
structure of each email to check if there's an attachment, so I removed
the attachment column and any reference to that.