summaryrefslogtreecommitdiff
path: root/lib/kolab_sync_data_email.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-09-04 10:55:22 (GMT)
committerAleksander Machniak <alec@alec.pl>2012-09-04 10:55:22 (GMT)
commit9c1bfe24c4de02ded9141a222414e91d4b1049aa (patch)
treef6205de29306396defe6470fd02cd6fae2e6076c /lib/kolab_sync_data_email.php
parent43cd411c0028193c704ca08c75c4bd873f055797 (diff)
downloadkolab-syncroton-9c1bfe24c4de02ded9141a222414e91d4b1049aa.tar.gz
Add References header setting on mail reply
Diffstat (limited to 'lib/kolab_sync_data_email.php')
-rw-r--r--lib/kolab_sync_data_email.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/kolab_sync_data_email.php b/lib/kolab_sync_data_email.php
index 22207a0..cebfdfb 100644
--- a/lib/kolab_sync_data_email.php
+++ b/lib/kolab_sync_data_email.php
@@ -694,6 +694,11 @@ class kolab_sync_data_email extends kolab_sync_data implements Syncroton_Data_ID
$body = rtrim($body) . "\n" . ltrim($message_body);
}
+ // Add References header
+ if (empty($headers['References'])) {
+ $headers['References'] = trim($message->headers->references . ' ' . $message->headers->messageID);
+ }
+
// Create complete message source
$body = $this->backend->build_mime($headers, $body);