[imp] IMAP error reported by server. / UID SEARCH UID - BAD Invalid Search criteria

Michael J Rubinsky mrubinsk at horde.org
Fri Sep 18 22:51:49 UTC 2020


Quoting Martin Schuhmann <martin.schuhmann at uni-wuerzburg.de>:

> Hi,
>
> in the last few months our users have increasingly reported "IMAP  
> errors" in Horde Webmail".
>
> We are running Horde Webmail on Ubuntu 18.04 with PHP 7.2 against  
> Cyrus IMAP Murder v2.4.19 on SLES15.
>
> Debugging is not easy, because only certain users complain and the  
> server is very busy.
>
> In the Horde-Log I see multiple Errors like this:
> HORDE: [imp] [openMailbox] IMAP error reported by server. [pid 27945  
> on line 730 of "/[...]/horde/imp/lib/Imap.php"]
>
> Is there a possibiltiy to edit horde/imp/lib/Imap.php to see more  
> Information in the Horde-Log with this Exception,
> e.g. the logged in user?
>
> In the debug-log for imp it is hard - not possible to find the  
> corresponding IMAP-Actions.
> An assumption for the faulty request could possibly be:
> "7 UID SEARCH UID
> 5817,5852,5882,5974,5960,16:21,29:32,39,41:45,47:50,54,56:59,61:63,66:75,77:82,84:92,100:102,115:118,121:126,5990,51,142:149,160:164,174:176,205,97,252:253,258:262,247,324:329,365:369,388:391,406:407,409:416,
>  [followed by some thousand more uids]"
>
> which the server acknowledges with:
> "7 BAD Invalid Search criteria"
>
> Which action in the horde triggers such a query  "UID SEARCH UID" -  
> it usually follows an "UID FETCH" request.

This is most likely from a search operation on a large mailbox while  
sorting the results client-side.  The actual cause of the IMAP error  
is probably because the command is exceeding the maximum command  
length of the mail server.

>
> Thanks for your help!
> Martin Schuhmann
>
> Horde versions:
> # grep "\$version" */lib/Application.php
> content/lib/Application.php:    public $version = '2.0.6';
> gollem/lib/Application.php:    public $version = 'H5 (3.0.12)';
> imp/lib/Application.php:    public $version = 'H5 (6.2.24)';
> ingo/lib/Application.php:    public $version = 'H5 (3.2.16)';
> kronolith/lib/Application.php:    public $version = 'H5 (4.2.27)';
> mnemo/lib/Application.php:    public $version = 'H5 (4.2.14)';
> nag/lib/Application.php:    public $version = 'H5 (4.2.19)';
> timeobjects/lib/Application.php:    public $version = '2.1.4';
> trean/lib/Application.php:    public $version = 'H5 (1.1.9)';
> turba/lib/Application.php:    public $version = 'H5 (4.2.25)';
>
> --
> Martin Schuhmann
> Universität Würzburg * Rechenzentrum
> E-Mail: martin.schuhmann at uni-wuerzburg.de
> https://go.uniwue.de/schuhmann
>
>
>
> --
> imp mailing list
> Frequently Asked Questions: http://wiki.horde.org/FAQ
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org



-- 
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 9272 bytes
Desc: PGP Public Key
URL: <https://lists.horde.org/archives/imp/attachments/20200918/53b2691a/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: PGP Digital Signature
URL: <https://lists.horde.org/archives/imp/attachments/20200918/53b2691a/attachment.sig>


More information about the imp mailing list