[imp] Error when searching other user's mailbox

Jens Grüntjes jens.gruentjes at ebira.de
Wed Feb 27 08:31:05 UTC 2013


Zitat von Michael M Slusarz <slusarz at horde.org>:

> Quoting Jens Grüntjes <jens.gruentjes at ebira.de>:
>
>> 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



More information about the imp mailing list