Fix mime content-id handling
REST endpoint for HTML message
Remove print statement
Decode mail parts
Fix cid reference replacements