summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-10-28 07:34:27 +0000
committeralecpl <alec@alec.pl>2010-10-28 07:34:27 +0000
commit77327e252a116030349a0d59643b73311566e996 (patch)
treeef17b3327479c554bc5b9db70447ce939f95d285 /program
parenta79417d4efda43e99fdc9210c8662890676bebd7 (diff)
- Add SORT=DISPLAY support (RFC 5957)
Diffstat (limited to 'program')
-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 2171e5d5d..7917d7889 100644
--- a/program/include/rcube_imap_generic.php
+++ b/program/include/rcube_imap_generic.php
@@ -1000,6 +1000,11 @@ class rcube_imap_generic
return false;
}
+ // RFC 5957: SORT=DISPLAY
+ if (($field == 'FROM' || $field == 'TO') && $this->getCapability('SORT=DISPLAY')) {
+ $field = 'DISPLAY' . $field;
+ }
+
// message IDs
if (is_array($add))
$add = $this->compressMessageSet(join(',', $add));