Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

if we do own a Mail server supporting, how is it possible to add a sort extension to it?

Also how is it possible for a client using java mail to check if the server does indeed support the Sort extension?

For ref: question asked at

share|improve this question
up vote 1 down vote accepted

It depends on the mail server you're using. It will either be a simple matter of changing a config option, installing a plugin, patching the software, or bugging a commercial vendor to make the necessary changes.

As far as determining whether the server supports it, yes the client should be able to determine whether the server supports the extension by examining the list of capabilities printed when the client connects. For example, my IMAP server says:


Which indicates that my server already supports sorting.

share|improve this answer
this is what i got at mine (copied from debug output): A0 CAPABILITY * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA XLIST CHILDREN XYZZY A2 CAPABILITY * CAPABILITY IMAP4rev1 UNSELECT LITERAL+ IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 Making an educated guess: My server does not support sort ? – user19573 Sep 7 '09 at 10:12
Not as-is, by the look of it. Whether or not you can enable it depends on what sort of IMAP server you're running. – womble Sep 7 '09 at 11:06
Its Gmail btw :) – user19573 Sep 8 '09 at 5:06
So it's option the last, "bugging a commercial vendor to make the necessary changes". Good luck with that. – womble Sep 9 '09 at 2:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.