Add basic logging.
Basic IMAP implementation.
Local logfile
Reset textpart on each attachment pass, to avoid wasted work
Strip out the logging code, for now
Whitespace
Merge branch 'feature/imap'