Yes, sort is broken. A known problem slated to be fixed in the 2.1.x series. The current sort functionality is strictly aimed at the command profile used by squirrelmail. Other clients are *not* supported for sort. Sorry about that. That patch should never have made it into cvs-head. My fault entirely.

SORT is now removed from the CAPABILITIES string.


Geo Carncross wrote:
IMAP sort is treated completely wrong.

The arguments are NOT
        ["charset" charset-atom] search...

but actually:
        program-list charset-atom search...

Thusly, I should be able to say:
        . SORT (DATE REVERSE SUBJECT) US-ASCII ALL NOT DELETED

but this doesn't work. See

http://www.ietf.org/internet-drafts/draft-ietf-imapext-sort-17.txt

for the current version of the specification for the IMAP SORT
extension.

Worse still, if I actually go ahead and:
. SORT CHARSET US-ASCII ALL NOT DELETED

I get garbage:

* SORT 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

This is completely wrong. If "SORT" isn't supported, it MUST not be
announced when one says ". CAPABILITY"

Please remove it from CAPABILITY until this is fixed.



------------------------------------------------------------------------

Index: imap4.h
===================================================================
RCS file: /cvsroot-dbmail/dbmail/imap4.h,v
retrieving revision 1.47
diff -u -r1.47 imap4.h
--- imap4.h     2005/01/07 12:46:39     1.47
+++ imap4.h     2005/03/01 00:39:35
@@ -34,7 +34,7 @@
#define IMAP_SERVER_VERSION VERSION
 //#define IMAP_CAPABILITY_STRING "IMAP4 IMAP4rev1 AUTH=LOGIN QUOTA"
-#define IMAP_CAPABILITY_STRING "IMAP4 IMAP4rev1 AUTH=LOGIN ACL NAMESPACE SORT"
+#define IMAP_CAPABILITY_STRING "IMAP4 IMAP4rev1 AUTH=LOGIN ACL NAMESPACE"
 #define IMAP_TIMEOUT_MSG "* BYE dbmail IMAP4 server signing off due to 
timeout\r\n"
/* max number of BAD/NO responses */


------------------------------------------------------------------------

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

--
  ________________________________________________________________
  Paul Stevens                                         [EMAIL PROTECTED]
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands_______________________________________www.nfg.nl

Reply via email to