From: W. Trevor King Date: Tue, 20 Oct 2009 13:38:17 +0000 (-0400) Subject: Merged my cleanup of Gianluca's HTML branch. X-Git-Tag: 1.0.0~59^2~86 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c80312557917015fcda9f7baa9e1acdce8ad9de7;p=be.git Merged my cleanup of Gianluca's HTML branch. This fixes a bug in binary comments (non-"text/" content-types), where the content-type wasn't being set until _after_ the save was attempted. This led to errors for non-ascii bodies (e.g. images with null characters). Note that text/html comments are included as is, so make sure they are formatted appropriately to fit into your tempate without creating invalid code. This issue could be a real pain in the neck, especially when including text/html email bodies, which might contain tags, etc.. Stupid email clients that don't send a text/plain alternative... --- c80312557917015fcda9f7baa9e1acdce8ad9de7