|
|
@ -563,9 +563,13 @@ function rcmail_create_draft_body($body, $bodyIsHtml)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
global $IMAP, $MESSAGE;
|
|
|
|
global $IMAP, $MESSAGE;
|
|
|
|
|
|
|
|
|
|
|
|
// add attachments
|
|
|
|
/**
|
|
|
|
if (!isset($_SESSION['compose']['forward_attachments']) &&
|
|
|
|
* add attachments
|
|
|
|
is_array($MESSAGE['parts']) && sizeof($MESSAGE['parts'])>1)
|
|
|
|
* sizeof($MESSAGE['parts'] can be 1 - e.g. attachment, but no text!
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
if (!isset($_SESSION['compose']['forward_attachments'])
|
|
|
|
|
|
|
|
&& is_array($MESSAGE['parts'])
|
|
|
|
|
|
|
|
&& count($MESSAGE['parts']) > 0)
|
|
|
|
rcmail_write_compose_attachments($MESSAGE);
|
|
|
|
rcmail_write_compose_attachments($MESSAGE);
|
|
|
|
|
|
|
|
|
|
|
|
return $body;
|
|
|
|
return $body;
|
|
|
|