[Dovecot] LSUB "" "" vs LIST "" "" (hacked Apple Mail problem)
The LSUB command does not act like LIST when provided with an empty
mask argument. LIST responds with the hierarchy delimiter:
* LIST (\Noselect) "." ""
OK List completed.
whereas LSUB doesn't return anything useful:
OK Lsub completed.
RFC 3501 doesn't specify what LSUB should do in this case, but
Courier IMAP has LSUB act like LIST. The attached patch modifies
imap/cmd-list.c to make Dovecot do the same.
Why do I care about LSUB? I'm using a hack for Apple Mail that
replaces its LIST command with LSUB (something like what's described
here: http://www.macosxhints.com/article.php?
story=20040407062603804), to prevent it from syncing public folders
from the Exchange server at the office.
The hack replaces _all_ LISTs with LSUBs, including the LIST "" ""
Mail.app sends to discover the hierarchy delimiter. Since dovecot
doesn't give it any information in response to LSUB "" "", Mail.app
defaults to using "/" as a delimiter, which means that trying to
access a subfolder only results in an "Invalid mailbox name" error.
While this isn't really a bug in Dovecot, it's not inconceivable that
other people than me could be affected by this problem
(macosxhints.com has a substantial readership). It's also tricky to
diagnose, especially since the "Invalid mailbox name" message doesn't
include the invalid mailbox name, so any bug reports you get are
likely to eventually be filed under "crazy [Mac] users".
In fact, while Googling to figure out why Dovecot wasn't working for
me, I came across at least one poster to this mailing list who had
discovered that Mail.app was using "/" as a delimiter. I can't be
sure, but I'm guessing that his problem was related to mine.
Since the patch is tiny and doesn't hurt performance or make Dovecot
do anything that contradicts the IMAP RFC, I hope you'll consider
adding it to the official distribution.
Eyvind Bernhardsen
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Eyvind Bernhardsen schrieb:
The LSUB command does not act like LIST when provided with an empty mask argument. LIST responds with the hierarchy delimiter:
* LIST (\Noselect) "." "" OK List completed.
whereas LSUB doesn't return anything useful:
OK Lsub completed.
RFC 3501 doesn't specify what LSUB should do in this case, but Courier IMAP has LSUB act like LIST. The attached patch modifies imap/cmd-list.c to make Dovecot do the same.
Why do I care about LSUB? I'm using a hack for Apple Mail that replaces its LIST command with LSUB (something like what's described here: http://www.macosxhints.com/article.php?story=20040407062603804), to prevent it from syncing public folders from the Exchange server at the office.
The hack replaces _all_ LISTs with LSUBs, including the LIST "" "" Mail.app sends to discover the hierarchy delimiter. Since dovecot doesn't give it any information in response to LSUB "" "", Mail.app defaults to using "/" as a delimiter, which means that trying to access a subfolder only results in an "Invalid mailbox name" error.
While this isn't really a bug in Dovecot, it's not inconceivable that other people than me could be affected by this problem (macosxhints.com has a substantial readership). It's also tricky to diagnose, especially since the "Invalid mailbox name" message doesn't include the invalid mailbox name, so any bug reports you get are likely to eventually be filed under "crazy [Mac] users".
In fact, while Googling to figure out why Dovecot wasn't working for me, I came across at least one poster to this mailing list who had discovered that Mail.app was using "/" as a delimiter. I can't be sure, but I'm guessing that his problem was related to mine.
Since the patch is tiny and doesn't hurt performance or make Dovecot do anything that contradicts the IMAP RFC, I hope you'll consider adding it to the official distribution.
Eyvind Bernhardsen
Hi, as i have one customer on courier only with apple mail i got known of so many bugs with imap that i must say this is a broken client in my eyes
Mit freundlichen Gruessen Best Regards
Robert Schetterer
https://www.schetterer.org Munich/Bavaria/Germany -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFGL5i6fGH2AvR16oERAk69AKCARWEsgCfLg31M/dfhbkA3d7HxKACghUAZ Iwf6pBuHOxxpzbHy0DGiv6M= =sGPi -----END PGP SIGNATURE-----
On 25. apr. 2007, at 20.06, Robert Schetterer wrote:
Hi, as i have one customer on courier only with apple mail i got known of so many bugs with imap that i must say this is a broken client in my eyes
I don't disagree, but it's the least broken imap client that I know
of for the Mac, and I've learned to live with most of its quirks by now.
Eyvind Bernhardsen
On April 26, 2007 8:59:43 AM +0200 Eyvind Bernhardsen <eyvind-dovecot@orakel.ntnu.no> wrote:
On 25. apr. 2007, at 20.06, Robert Schetterer wrote:
Hi, as i have one customer on courier only with apple mail i got known of so many bugs with imap that i must say this is a broken client in my eyes
I don't disagree, but it's the least broken imap client that I know of for the Mac, and I've learned to live with most of its quirks by now.
Mulberry rocks! Best email client I know of. Reminds me of how good Eudora was when it first came out.
-frank
On April 26, 2007 1:16:34 AM -0700 Frank Cusack <fcusack@fcusack.com> wrote:
On April 26, 2007 8:59:43 AM +0200 Eyvind Bernhardsen <eyvind-dovecot@orakel.ntnu.no> wrote:
On 25. apr. 2007, at 20.06, Robert Schetterer wrote:
Hi, as i have one customer on courier only with apple mail i got known of so many bugs with imap that i must say this is a broken client in my eyes
I don't disagree, but it's the least broken imap client that I know of for the Mac, and I've learned to live with most of its quirks by now.
Mulberry rocks! Best email client I know of. Reminds me of how good Eudora was when it first came out.
eh, sorry, gnus (on emacs) is probably the best. but it's too difficult for most users.
-frank
Mulberry rocks! Best email client I know of. Reminds me of how good Eudora was when it first came out.
eh, sorry, gnus (on emacs) is probably the best. but it's too difficult for most users.
You're arguing with yourself? ;)
I tried Mulberry after hearing about it here - and was very unimpressed. The interface was very clunky, and it just didn't click.
Long live Thunderbird!
;)
--
Best regards,
Charles
On 4/26/2007 Eyvind Bernhardsen (eyvind-dovecot@orakel.ntnu.no) wrote:
I don't disagree, but it's the least broken imap client that I know of for the Mac, and I've learned to live with most of its quirks by now.
Less broken than Thunderbird?
Thunderbirds IMAP support - at least on windows - seems to me to be very good...
--
Best regards,
Charles
On 25. apr. 2007, at 20.06, Robert Schetterer wrote:
Hi, as i have one customer on courier only with apple mail i got known of so many bugs with imap that i must say this is a broken client in my eyes
I don't disagree, but it's the least broken imap client that I know
of for the Mac, and I've learned to live with most of its quirks by now.Eyvind Bernhardsen
I agree Apple's mail client is full of crazy bugs, but it has been working just fine for me since I upgraded to Dovecot 1.0.0. I've tried a variety of other IMAP clients on my mac from time to time, but I keep coming back to Apple mail. The second place is probably Opera's mail client, but I don't like the fact it won't use an IMAP trash folder, other than that, it is really quite good.
Kenny Dail <kend@amigo.net>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I'm using Apple Mail to Dovecot and have no real issues with IMAP to
Dovecot. Certainly not as many as others. I'm also doing IMAP to
Exchange and to Communigate Pro, and Exchange sucks royally, but
Dovecot and CGP work fine.
At work, we do IMAP proxying for crypto, and let me tell you we know
lots about the idiocies in every client there is. Mail.app has had
some major revisions in some of the point releases of 10.4, so what
you thought six months ago isn't necessarily so now.
Every IMAP client we know of (and we've seen them all) does crazy
things. It's really an IMAP problem that there are several ways to do
anything. Thunderbird has its own idiosyncrasies, as does Mulberry
and anything else.
Jon
-----BEGIN PGP SIGNATURE----- Version: PGP Universal 2.6.1 Charset: US-ASCII
wj8DBQFGMSY3sTedWZOD3gYRAnoGAJwPqWpKIL6EoLv6NF2OWls2Vv9fkwCdEdMM RkvUSsi5kQ8fZ2yTrA5x+m8= =l8vP -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jon Callas schrieb:
I'm using Apple Mail to Dovecot and have no real issues with IMAP to
Dovecot. Certainly not as many as others. I'm also doing IMAP to
Exchange and to Communigate Pro, and Exchange sucks royally, but
Dovecot and CGP work fine.At work, we do IMAP proxying for crypto, and let me tell you we know
lots about the idiocies in every client there is. Mail.app has had
some major revisions in some of the point releases of 10.4, so what
you thought six months ago isn't necessarily so now.Every IMAP client we know of (and we've seen them all) does crazy
things. It's really an IMAP problem that there are several ways to do
anything. Thunderbird has its own idiosyncrasies, as does Mulberry
and anything else.Jon
Hi i didnt test apple mail to dovecot , but its broken to courier imap. It has a long history of bugs, i.e producing double mails and nower days it has problems with attachment names ( this may be produced by adope or apple updates ) I never had such problems with thunderbird to courier, cyrus, dovecot using many versions of the client and servers so i call Apple mail a broken client anyway, but that only my feels about it, no need to flame about that, i recommend my customer not to use it in a prof. use and go to thunderbird instead.
Mit freundlichen Gruessen Best Regards
Robert Schetterer
https://www.schetterer.org Munich/Bavaria/Germany -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFGMZnDfGH2AvR16oERAqP7AJ0dm3jd6WNYpVE83DQk9CgTqWkDsQCeNhrP Gr8Kq4vaFuE69E5SKb4Rj/k= =80gV -----END PGP SIGNATURE-----
participants (6)
-
Charles Marcus
-
Eyvind Bernhardsen
-
Frank Cusack
-
Jon Callas
-
Kenny Dail
-
Robert Schetterer