Changeset 556 in subversion


Ignore:
Timestamp:
May 13, 2007 2:25:52 PM (6 years ago)
Author:
thomasb
Message:

Wrap message body text (closes #1484148)

Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r555 r556  
    77- Fixed marking as read in preview pane (closes #1484364) 
    88- CSS hack to display attachments correctly in IE6 
     9- Wrap message body text (closes #1484148) 
    910 
    1011 
  • trunk/roundcubemail/program/steps/mail/sendmail.inc

    r543 r556  
    259259  // add a plain text version of the e-mail as an alternative part. 
    260260  $h2t = new html2text($message_body); 
    261   $plainTextPart = $h2t->get_text(); 
     261  $plainTextPart = wordwrap($h2t->get_text(), 998, "\r\n", true); 
    262262  $MAIL_MIME->setTXTBody($plainTextPart); 
    263263 
     
    267267else 
    268268  { 
     269  $message_body = wordwrap($message_body, 75, "\r\n"); 
     270  $message_body = wordwrap($message_body, 998, "\r\n", true); 
    269271  $MAIL_MIME->setTXTBody($message_body, FALSE, TRUE); 
    270272  } 
     
    287289 
    288290// encoding settings for mail composing 
    289 $message_param = array('text_encoding' => $transfer_encoding, 
    290                        'html_encoding' => 'quoted-printable', 
    291                        'head_encoding' => 'quoted-printable', 
    292                        'head_charset'  => $message_charset, 
    293                        'html_charset'  => $message_charset, 
    294                        'text_charset'  => $message_charset); 
     291$message_param = array( 
     292  'text_encoding' => $transfer_encoding, 
     293  'html_encoding' => 'quoted-printable', 
     294  'head_encoding' => 'quoted-printable', 
     295  'head_charset'  => $message_charset, 
     296  'html_charset'  => $message_charset, 
     297  'text_charset'  => $message_charset, 
     298); 
    295299 
    296300// compose message body and get headers 
Note: See TracChangeset for help on using the changeset viewer.