| | |
| | | $COMPOSE['param']['sent_mbox'] = $sent_folder; |
| | | } |
| | | } |
| | | else if ($compose_mode == RCUBE_COMPOSE_DRAFT) { |
| | | if ($draft_info = $MESSAGE->headers->get('x-draft-info')) { |
| | | else if ($compose_mode == RCUBE_COMPOSE_DRAFT || $compose_mode == RCUBE_COMPOSE_EDIT) { |
| | | if ($compose_mode == RCUBE_COMPOSE_DRAFT && ($draft_info = $MESSAGE->headers->get('x-draft-info'))) { |
| | | // get reply_uid/forward_uid to flag the original message when sending |
| | | $info = rcmail_draftinfo_decode($draft_info); |
| | | |
| | |
| | | if ($in_reply_to = $MESSAGE->headers->get('in-reply-to')) |
| | | $COMPOSE['reply_msgid'] = '<' . $in_reply_to . '>'; |
| | | |
| | | $COMPOSE['references'] = $MESSAGE->headers->references; |
| | | $COMPOSE['references'] = $MESSAGE->headers->references; |
| | | } |
| | | } |
| | | else { |
| | |
| | | $fvalue .= $v; |
| | | if ($v = $MESSAGE->headers->cc) |
| | | $fvalue .= (!empty($fvalue) ? $separator : '') . $v; |
| | | if ($v = $MESSAGE->headers->get('Sender', false)) |
| | | // Use Sender header (#1489011) |
| | | if (($v = $MESSAGE->headers->get('Sender', false)) && strpos($v, '-bounces@') === false) |
| | | $fvalue .= (!empty($fvalue) ? $separator : '') . $v; |
| | | |
| | | // When To: and Reply-To: are the same we add From: address to the list (#1489037) |
| | |
| | | if ($part->ctype_primary == 'message' && $compose_mode == RCUBE_COMPOSE_REPLY) { |
| | | continue; |
| | | } |
| | | // skip inline images when forwarding in plain text |
| | | if ($part->content_id && !$bodyIsHtml && $compose_mode == RCUBE_COMPOSE_FORWARD) { |
| | | // skip inline images when forwarding |
| | | if ($part->content_id && $part->disposition == 'inline' && $compose_mode == RCUBE_COMPOSE_FORWARD) { |
| | | continue; |
| | | } |
| | | |