[review] smtp v13

Work in progress branch for the SMTP logging, file extraction and mime decoding.

PR to use github review interface.

cc: @decanio @regit @glongo
ifdef in DEBUG