Ticket #1484506: bug-1484506-fix.patch
| File bug-1484506-fix.patch, 1.0 kB (added by tvk, 12 months ago) |
|---|
-
roundcubemail/program/steps/mail/sendmail.inc
253 253 // add a plain text version of the e-mail as an alternative part. 254 254 $h2t = new html2text($message_body); 255 255 $plainTextPart = wordwrap($h2t->get_text(), 998, "\r\n", true); 256 if (!strlen($plainTextPart)) 257 { 258 // empty message body breaks attachment handling in drafts 259 $plainTextPart = "\r\n"; 260 } 261 256 262 $MAIL_MIME->setTXTBody($plainTextPart); 257 263 258 264 // look for "emoticon" images from TinyMCE and copy into message as attachments … … 262 268 { 263 269 $message_body = wordwrap($message_body, 75, "\r\n"); 264 270 $message_body = wordwrap($message_body, 998, "\r\n", true); 271 272 if (!strlen($message_body)) 273 { 274 // empty message body breaks attachment handling in drafts 275 $message_body = "\r\n"; 276 } 277 265 278 $MAIL_MIME->setTXTBody($message_body, FALSE, TRUE); 266 279 } 267 280
