summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-08-21 07:56:00 +0000
committeralecpl <alec@alec.pl>2008-08-21 07:56:00 +0000
commit95fd38e2140c11ca9bb17a752fa15eaeac3431fd (patch)
tree26adb82ea5250eabe1908f0c2d701c1e9900098e /program
parent95987c3943bed445555c0dc84986a56792f7ac4c (diff)
#1485288: read In-Reply-To and References when composing saved draft
Diffstat (limited to 'program')
-rw-r--r--program/steps/mail/compose.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index 0b6cf17e6..cc370344d 100644
--- a/program/steps/mail/compose.inc
+++ b/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;