Added ability to save messages before and after processing
When error occurs dump message into a separate file for a later analysis
Use local time instead of gmtime for log messages
Introduced functionality to prevent attaching image for internal mail messages
Reorganized code for black and white lists