From 95fd38e2140c11ca9bb17a752fa15eaeac3431fd Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 21 Aug 2008 03:56:00 -0400
Subject: [PATCH] #1485288: read In-Reply-To and References when composing saved draft
---
program/steps/mail/compose.inc | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index 0b6cf17..cc37034 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -101,6 +101,16 @@
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;
--
Gitblit v1.9.1