[Svn] r4152 - in trunk/roundcubemail: . program/include

trac at roundcube.net trac at roundcube.net
Thu Oct 28 09:34:27 CEST 2010


Author: alec
Date: 2010-10-28 02:34:27 -0500 (Thu, 28 Oct 2010)
New Revision: 4152

Modified:
   trunk/roundcubemail/CHANGELOG
   trunk/roundcubemail/program/include/rcube_imap_generic.php
Log:
- Add SORT=DISPLAY support (RFC 5957)


Modified: trunk/roundcubemail/CHANGELOG
===================================================================
--- trunk/roundcubemail/CHANGELOG	2010-10-28 07:10:11 UTC (rev 4151)
+++ trunk/roundcubemail/CHANGELOG	2010-10-28 07:34:27 UTC (rev 4152)
@@ -53,6 +53,7 @@
 - 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
 -------------

Modified: trunk/roundcubemail/program/include/rcube_imap_generic.php
===================================================================
--- trunk/roundcubemail/program/include/rcube_imap_generic.php	2010-10-28 07:10:11 UTC (rev 4151)
+++ trunk/roundcubemail/program/include/rcube_imap_generic.php	2010-10-28 07:34:27 UTC (rev 4152)
@@ -1000,6 +1000,11 @@
 	        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));

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list