From 8db2c42a1d1648fdf1d9683caf49004a1b6d163b Mon Sep 17 00:00:00 2001 From: alec Date: Thu, 21 Aug 2008 07:56:00 +0000 Subject: #1485288: read In-Reply-To and References when composing saved draft git-svn-id: https://svn.roundcube.net/trunk@1665 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/mail/compose.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc index 0b6cf17e6..cc370344d 100644 --- a/roundcubemail/program/steps/mail/compose.inc +++ b/roundcubemail/program/steps/mail/compose.inc @@ -101,6 +101,16 @@ if (!empty($msg_uid)) if (!empty($_SESSION['compose']['param']['_all'])) $MESSAGE->reply_all = 1; } + else if ($compose_mode == RCUBE_COMPOSE_DRAFT) + { + if($MESSAGE->headers->in_reply_to) + { + // TODO: chow to get reply_uid/forward_uid value, maybe we must set X-Reply-UID/X-Forward-UID + // $_SESSION['compose']['reply_uid'] = ? + $_SESSION['compose']['reply_msgid'] = '<'.$MESSAGE->headers->in_reply_to.'>'; + } + $_SESSION['compose']['references'] = $MESSAGE->headers->references; + } else if ($compose_mode == RCUBE_COMPOSE_FORWARD) { $_SESSION['compose']['forward_uid'] = $msg_uid; -- cgit v1.2.3