Changeset 3292 in subversion for trunk/roundcubemail/program/steps/mail/sendmail.inc
- Timestamp:
- Feb 25, 2010 3:29:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/steps/mail/sendmail.inc
r3291 r3292 416 416 } 417 417 418 // chose transfer encoding419 $charset_7bit = array('ASCII', 'ISO-2022-JP', 'ISO-8859-1', 'ISO-8859-2', 'ISO-8859-15');420 $transfer_encoding = in_array(strtoupper($message_charset), $charset_7bit) ? '7bit' : '8bit';421 422 418 // add stored attachments, if any 423 419 if (is_array($_SESSION['compose']['attachments'])) … … 447 443 $attachment['name'], 448 444 ($attachment['data'] ? false : true), 449 ($ctype == 'message/rfc822' ? $transfer_encoding : 'base64'), 445 // @TODO: quoted-printable for message/rfc822 is safe, 446 // but we should check that 7bit or 8bit is possible here 447 ($ctype == 'message/rfc822' ? 'quoted-printable' : 'base64'), 450 448 ($ctype == 'message/rfc822' ? 'inline' : 'attachment'), 451 449 $message_charset, '', '', … … 456 454 } 457 455 } 456 457 // choose transfer encoding for plain/text body 458 if (preg_match('/[^\x00-\x7F]/', $MAIL_MIME->getTXTBody())) 459 $transfer_encoding = '8bit'; 460 else 461 $transfer_encoding = '7bit'; 458 462 459 463 // encoding settings for mail composing
Note: See TracChangeset
for help on using the changeset viewer.
