Flag original messages after sending a draft (#1486203)

release-0.6
thomascube 15 years ago
parent a96183883d
commit bbc8565e5a

@ -1,6 +1,7 @@
CHANGELOG RoundCube Webmail CHANGELOG RoundCube Webmail
=========================== ===========================
- Flag original messages when sending a draft (#1486203)
- Changed signature separator when top-posting (#1486330) - Changed signature separator when top-posting (#1486330)
- Let the admin define defaults for search modifiers (#1485897) - Let the admin define defaults for search modifiers (#1485897)
- Fix long e-mail addresses validation (#1486453) - Fix long e-mail addresses validation (#1486453)

@ -1450,7 +1450,8 @@ function iil_C_FetchHeaders(&$conn, $mailbox, $message_set, $uidfetch=false, $bo
$request .= "BODY.PEEK[HEADER.FIELDS "; $request .= "BODY.PEEK[HEADER.FIELDS ";
$request .= "(DATE FROM TO SUBJECT REPLY-TO IN-REPLY-TO CC BCC "; $request .= "(DATE FROM TO SUBJECT REPLY-TO IN-REPLY-TO CC BCC ";
$request .= "CONTENT-TRANSFER-ENCODING CONTENT-TYPE MESSAGE-ID "; $request .= "CONTENT-TRANSFER-ENCODING CONTENT-TYPE MESSAGE-ID ";
$request .= "REFERENCES DISPOSITION-NOTIFICATION-TO X-PRIORITY".$add.")])"; $request .= "REFERENCES DISPOSITION-NOTIFICATION-TO X-PRIORITY ";
$request .= "X-REPLY-UID X-FORWARD-UID".$add.")])";
if (!iil_PutLine($fp, $request)) { if (!iil_PutLine($fp, $request)) {
return false; return false;

@ -158,9 +158,9 @@ if (!empty($msg_uid))
{ {
if($MESSAGE->headers->in_reply_to) if($MESSAGE->headers->in_reply_to)
{ {
// TODO: how to get reply_uid/forward_uid value, maybe we must set X-Reply-UID/X-Forward-UID // get reply_uid/forward_uid to flag the original message when sending
// $_SESSION['compose']['reply_uid'] = ? $_SESSION['compose']['reply_uid'] = $MESSAGE->headers->others['x-reply-uid'];
// $_SESSION['compose']['forward_uid'] = ? $_SESSION['compose']['forward_uid'] = $MESSAGE->headers->others['x-forward-uid'];
$_SESSION['compose']['reply_msgid'] = '<'.$MESSAGE->headers->in_reply_to.'>'; $_SESSION['compose']['reply_msgid'] = '<'.$MESSAGE->headers->in_reply_to.'>';
} }
$_SESSION['compose']['references'] = $MESSAGE->headers->references; $_SESSION['compose']['references'] = $MESSAGE->headers->references;

@ -314,6 +314,12 @@ else if (!empty($identity_arr['reply-to']))
if (!empty($_SESSION['compose']['reply_msgid'])) if (!empty($_SESSION['compose']['reply_msgid']))
$headers['In-Reply-To'] = $_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'])) if (!empty($_SESSION['compose']['references']))
$headers['References'] = $_SESSION['compose']['references']; $headers['References'] = $_SESSION['compose']['references'];

Loading…
Cancel
Save