[mms] Fix wrong charset on filenames when stripping attachments (Bug #7220).
[mms] Use effects queue to prevent issues with users clicking on effects
elements too quickly.
-[mms] Trim leading/trailing whitespace from reply text.
+[mms] Trim leading/trailing whitespace from reply/forwarded text.
[mms] Add full IMAP message flagging capabilities to DIMP.
[mms] Decode IDN (RFC 3490) names in addresses (Request #5836).
[mms] Add ability to download attachments in MIMP (Request #2925).
$type = 'text/plain';
}
- if ($type == 'text/plain') {
- /* For replies, remove all leading/trailing whitespace. This
- * doesn't add anything to reply data. */
- if ($options['type'] == 'reply') {
- $msg = trim($msg);
- }
+ /* Always remove leading/trailing whitespace. The data in the
+ * message body is not intended to be the exact representation of the
+ * original message (use forward as message/rfc822 part for that). */
+ $msg = trim($msg);
+ if ($type == 'text/plain') {
if ($part->getContentTypeParameter('format') == 'flowed') {
$flowed = new Horde_Text_Flowed($msg);
if (Horde_String::lower($part->getContentTypeParameter('delsp')) == 'yes') {