summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-01-27 18:15:26 +0000
committeralecpl <alec@alec.pl>2012-01-27 18:15:26 +0000
commit3c71c67118ab81208d0b47519c31d58b6d5ffff0 (patch)
treea9da7e1ef0b891012cb98fb6815f120390556005 /program/include
parentf6a7491fa1332d43ac7167d50472aa514fd0caf2 (diff)
- Revert SORT=DISPLAY support, removed by mistake in r4160 (#1488327)
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_imap_generic.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/program/include/rcube_imap_generic.php b/program/include/rcube_imap_generic.php
index 1832215b0..ba71a6744 100644
--- a/program/include/rcube_imap_generic.php
+++ b/program/include/rcube_imap_generic.php
@@ -1559,6 +1559,11 @@ class rcube_imap_generic
return new rcube_result_index($mailbox);
}
+ // RFC 5957: SORT=DISPLAY
+ if (($field == 'FROM' || $field == 'TO') && $this->getCapability('SORT=DISPLAY')) {
+ $field = 'DISPLAY' . $field;
+ }
+
// message IDs
if (!empty($add))
$add = $this->compressMessageSet($add);