- Fix attachment names encoding broken in r4232

release-0.6
alecpl 14 years ago
parent 11a61a8ab3
commit 57388f9cce

@ -508,12 +508,12 @@ if (is_array($_SESSION['compose']['attachments']))
// .eml attachments send inline // .eml attachments send inline
$MAIL_MIME->addAttachment($file, $MAIL_MIME->addAttachment($file,
$ctype, $ctype,
$attachment['name'], $attachment['name'],
($attachment['data'] ? false : true), ($attachment['data'] ? false : true),
($ctype == 'message/rfc822' ? '8bit' : 'base64'), ($ctype == 'message/rfc822' ? '8bit' : 'base64'),
($ctype == 'message/rfc822' ? 'inline' : 'attachment'), ($ctype == 'message/rfc822' ? 'inline' : 'attachment'),
'', '', '', $message_charset, '', '',
$CONFIG['mime_param_folding'] ? 'quoted-printable' : NULL, $CONFIG['mime_param_folding'] ? 'quoted-printable' : NULL,
$CONFIG['mime_param_folding'] == 2 ? 'quoted-printable' : NULL $CONFIG['mime_param_folding'] == 2 ? 'quoted-printable' : NULL
); );

Loading…
Cancel
Save