summaryrefslogtreecommitdiff
path: root/program/steps/mail/sendmail.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2010-03-04 08:17:04 +0000
committerthomascube <thomas@roundcube.net>2010-03-04 08:17:04 +0000
commitbbc8565e5afa7e5352bc3aaf7cf067066ec6d4b1 (patch)
tree15e5df0355ddffc1367c0b2dd7b48b39b55e2661 /program/steps/mail/sendmail.inc
parenta96183883d95dc83a7d0951f5b834e44b062f9cf (diff)
Flag original messages after sending a draft (#1486203)
Diffstat (limited to 'program/steps/mail/sendmail.inc')
-rw-r--r--program/steps/mail/sendmail.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc
index 134664b85..abd4209c3 100644
--- a/program/steps/mail/sendmail.inc
+++ b/program/steps/mail/sendmail.inc
@@ -314,6 +314,12 @@ else if (!empty($identity_arr['reply-to']))
if (!empty($_SESSION['compose']['reply_msgid']))
$headers['In-Reply-To'] = $_SESSION['compose']['reply_msgid'];
+// remember reply/forward UIDs in special headers
+if (!empty($_SESSION['compose']['reply_uid']) && $savedraft)
+ $headers['X-Reply-UID'] = $_SESSION['compose']['reply_uid'];
+else if (!empty($_SESSION['compose']['forward_uid']) && $savedraft)
+ $headers['X-Forward-UID'] = $_SESSION['compose']['forward_uid'];
+
if (!empty($_SESSION['compose']['references']))
$headers['References'] = $_SESSION['compose']['references'];