[Svn] r1665 - trunk/roundcubemail/program/steps/mail

trac at roundcube.net trac at roundcube.net
Thu Aug 21 09:56:00 CEST 2008


Author: alec
Date: 2008-08-21 07:56:00 +0000 (Thu, 21 Aug 2008)
New Revision: 1665

Modified:
   trunk/roundcubemail/program/steps/mail/compose.inc
Log:
#1485288: read In-Reply-To and References when composing saved draft


Modified: trunk/roundcubemail/program/steps/mail/compose.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/compose.inc	2008-08-21 06:59:45 UTC (rev 1664)
+++ trunk/roundcubemail/program/steps/mail/compose.inc	2008-08-21 07:56:00 UTC (rev 1665)
@@ -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;

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list