* Mail: Respect References AND In-Reply-To Headers, and set them on reply if available

This commit is contained in:
Klaus Leithoff 2014-09-11 09:21:07 +00:00
parent 819edf5dec
commit f1894d64fb
2 changed files with 6 additions and 1 deletions

View File

@ -2169,9 +2169,12 @@ class mail_compose
$_mailObject->Priority = $_formData['priority']; $_mailObject->Priority = $_formData['priority'];
$_mailObject->Encoding = 'quoted-printable'; $_mailObject->Encoding = 'quoted-printable';
$_mailObject->AddCustomHeader('X-Mailer: EGroupware-Mail'); $_mailObject->AddCustomHeader('X-Mailer: EGroupware-Mail');
if(isset($_formData['in-reply-to'])) { if(isset($_formData['in-reply-to']) && !empty($_formData['in-reply-to'])) {
$_mailObject->AddCustomHeader('In-Reply-To: '. $_formData['in-reply-to']); $_mailObject->AddCustomHeader('In-Reply-To: '. $_formData['in-reply-to']);
} }
if(isset($_formData['references']) && !empty($_formData['references'])) {
$_mailObject->AddCustomHeader('References: '. $_formData['references']);
}
if($_formData['disposition']) { if($_formData['disposition']) {
$_mailObject->AddCustomHeader('Disposition-Notification-To: '. $_identity['ident_email']); $_mailObject->AddCustomHeader('Disposition-Notification-To: '. $_identity['ident_email']);
} }

View File

@ -57,6 +57,8 @@
<textbox class="mail-index_quotaDisplayNone" readonly="true" id="processedmail_id"/> <textbox class="mail-index_quotaDisplayNone" readonly="true" id="processedmail_id"/>
<textbox class="mail-index_quotaDisplayNone" readonly="true" id="mode"/> <textbox class="mail-index_quotaDisplayNone" readonly="true" id="mode"/>
<textbox class="mail-index_quotaDisplayNone" readonly="true" id="lastdrafted"/> <textbox class="mail-index_quotaDisplayNone" readonly="true" id="lastdrafted"/>
<textbox class="mail-index_quotaDisplayNone" readonly="true" id="references"/>
<textbox class="mail-index_quotaDisplayNone" readonly="true" id="in-reply-to"/>
</hbox> </hbox>
<taglist-email id="replyto" empty_label="Reply to" width="100%" maxSelection="1" onclick="app.mail.address_click"/> <taglist-email id="replyto" empty_label="Reply to" width="100%" maxSelection="1" onclick="app.mail.address_click"/>
<hbox> <hbox>