summaryrefslogtreecommitdiff
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
parenta79417d4efda43e99fdc9210c8662890676bebd7 (diff)
- Add SORT=DISPLAY support (RFC 5957)
-rw-r--r--CHANGELOG1
-rw-r--r--program/include/rcube_imap_generic.php5
2 files changed, 6 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 2eb108514..99e34b81d 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -53,6 +53,7 @@ CHANGELOG Roundcube Webmail
- Don't list subscribed but non-existent folders (#1486225)
- Fix handling of URLs with tilde (~) or semicolon (;) character (#1487087, #1487088)
- Plugin API: added 'contact_form' hook
+- Add SORT=DISPLAY support (RFC 5957)
RELEASE 0.4.2
-------------
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));