Zitat von Michael M Slusarz <[email protected]>:

Quoting Jens Grüntjes <[email protected]>:

Okay, but on the other hand the user does not know which folder causes the search to fail leaving him to pick out the folders to search one by one. Would it be possible to raise an error that is a little more helpful than "Error when communicating with the server."? Something like "your search could not be performed due to access restrictions to your search folders"?

Sort of. The IMAP server would have to return the "NOPERM" response code when trying to open the mailbox. But most don't (the NOPERM response code is fairly new). Without it, there is no way of knowing *why* the mailbox could not be opened.

It looks like your IMAP server doesn't return this information or else you should have seen the error message "You do not have adequate permissions to carry out this operation." instead.
Okay, I understand. And you are most probably right that the NOPERM-code is not implemented in my fairly old cyrus-imapd-2.2 from Debian Squeeze.

Thanks for the clarification
Jens

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]

Reply via email to