Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mail search broken since 1.4.0 #3304

Closed
alexanderdd opened this issue Jun 24, 2020 · 16 comments
Closed

Mail search broken since 1.4.0 #3304

alexanderdd opened this issue Jun 24, 2020 · 16 comments

Comments

@alexanderdd
Copy link

Expected behavior

type something in search
emails with search string are shown

Actual behavior

error "E-Mail-Postfach konnte nicht geöffnet werden" (could not open inbox)

server log error:

[mail] Warning: OCA\Mail\Exception\ServiceException: Could not get message IDs: Error when communicating with the mail server. at <<closure>>

 0. /data/www/nextcloud67/apps/mail/lib/Service/Search/MailSearch.php line 164
    OCA\Mail\IMAP\Search\Provider->findMatches(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox {id: 115}, OCA\Mail\Service\Search\SearchQuery {})
 1. /data/www/nextcloud67/apps/mail/lib/Service/Search/MailSearch.php line 146
    OCA\Mail\Service\Search\MailSearch->getUids(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox {id: 115}, OCA\Mail\Service\Search\SearchQuery {}, 20)
 2. /data/www/nextcloud67/apps/mail/lib/Controller/MessagesController.php line 159
    OCA\Mail\Service\Search\MailSearch->findMessages(OCA\Mail\Account {}, "INBOX", "mitsi is:important", null, 20)
 3. /data/www/nextcloud67/lib/private/AppFramework/Http/Dispatcher.php line 170
    OCA\Mail\Controller\MessagesController->index(18, "SU5CT1g=", null, "mitsi is:important", 20)
 4. /data/www/nextcloud67/lib/private/AppFramework/Http/Dispatcher.php line 99
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Mail\Controller\MessagesController {}, "index")
 5. /data/www/nextcloud67/lib/private/AppFramework/App.php line 125
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Mail\Controller\MessagesController {}, "index")
 6. /data/www/nextcloud67/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main("OCA\\Mail\\Cont ... r", "index", OC\AppFramework\ ... {}, {accountId: "18" ... "})
 7. <<closure>>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({accountId: "18" ... "})
 8. /data/www/nextcloud67/lib/private/Route/Router.php line 299
    call_user_func(OC\AppFramework\ ... {}, {accountId: "18" ... "})
 9. /data/www/nextcloud67/lib/base.php line 1008
    OC\Route\Router->match("/apps/mail/api/ ... s")
10. /data/www/nextcloud67/index.php line 38
    OC::handleRequest()

GET /apps/mail/api/accounts/18/folders/SU5CT1g%3D/messages?filter=mitsi+is:important&limit=20
from 78.55.188.233 by alexander.mueller at 2020-06-24T17:05:34+00:00

Mail app

Mail app version: 1.4.0

Mailserver or service: webhoster

Server configuration

Operating system: ?

Web server: ?

Database: ?

PHP version: ?

Nextcloud Version: 18.02

Client configuration

Browser: 77.0.1

Operating system: Linux Mint

@ChristophWurst
Copy link
Member

Does it possibly time out?

@jasond2020
Copy link

The same here.
Debian 10, PHP 7.3, mariadb, NC 18.0.6, Mail 1.4.0

But (sadly) I have to say, that the search never worked - it always left an empty inbox. Maybe there were error messages in the past, but now there is exactly the same error like alexanderdds.

@ChristophWurst
Copy link
Member

The Nextcloud mail app offers an extensive logging system to make it easier identifying and tracking down bugs. Please enable debug mode and set the log level to debug in your admin settings. Then, try to reproduce your issue and take another look at data/nextcloud.log and data/horde_imap.log.

@ataraxus
Copy link

ataraxus commented Jul 11, 2020

hey folks,
i have a similar issue. Nextcloud 19, Mail 1.4.1:

OCA\Mail\Exception\ServiceException: Could not get message IDs: IMAP error reported by server.
/var/www/html/custom_apps/mail/lib/Service/Search/MailSearch.php - line 162:

OCA\Mail\IMAP\Search\Provider->findMatches(OCA\Mail\Account {}, OCA\Mail\Db\Mailbox { id: 6}, OCA\Mail\Ser ... {})

Horde_Imap_Client_Exception_ServerResponse: IMAP error reported by server.
/var/www/html/custom_apps/mail/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Socket.php - line 4314:

Horde_Imap_Client_Socket->_getLine(Horde_Imap_C ... }})

horde_imap.log:

------------------------------
>> Sat, 11 Jul 2020 13:07:03 +0000
>> Connection to: imap://imap.1und1.de:993/
>> Server connection took 0.0493 seconds.
S: * OK [CAPABILITY IMAP4rev1 CHILDREN ENABLE ID IDLE LIST-EXTENDED LIST-STATUS LITERAL- MOVE NAMESPACE QUOTA SASL-IR SORT SPECIAL-USE THREAD=ORDEREDSUBJECT UIDPLUS UNSELECT WITHIN AUTH=LOGIN AUTH=PLAIN] IMAP server ready H mieue008 15.6 IMAP-1M4Ke1-1jty1J0VlZ-001L7Q
C: 1 AUTHENTICATE PLAIN [INITIAL CLIENT RESPONSE (username:redacted)]
S: 1 OK AUTHENTICATE completed
>> Command 1 took 0.0193 seconds.
C: 2 CAPABILITY
S: * CAPABILITY IMAP4rev1 CHILDREN ENABLE ID IDLE LIST-EXTENDED LIST-STATUS LITERAL- MOVE NAMESPACE QUOTA SASL-IR SORT SPECIAL-USE THREAD=ORDEREDSUBJECT UIDPLUS UNSELECT WITHIN APPENDLIMIT=140000000
S: 2 OK CAPABILITY completed
>> Command 2 took 0.012 seconds.
>> CACHE: Using the OCA\Mail\Cache\Cache storage driver.
C: 3 EXAMINE INBOX
S: * 7286 EXISTS
S: * 0 RECENT
S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft $Forwarded NonJunk)
S: * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen $Forwarded NonJunk \*)] Unlimited
S: * OK [UIDNEXT 15808] Predicted next UID
S: * OK [UIDVALIDITY 1555527509] UIDs valid
S: 3 OK [READ-ONLY] EXAMINE completed
>> Command 3 took 0.0425 seconds.
C: 4 UID SEARCH TEXT foobar
------------------------------

nextcloud.log:

{"reqId":"tMDRZ2pBAAanYp8nm14d","level":0,"time":"2020-07-11T13:03:26+00:00","remoteAddr":"","user":"redacted","app":"mail","method":"GET","url":"/nextcloud/index.php/api/accounts/1/folders/SU5CT1g%3D/messages?filter=foo&limit=20","message":"loading messages of folder <SU5CT1g=>","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.0.12"}
{"reqId":"tMDRZ2pBAAanYp8nm14d","level":3,"time":"2020-07-11T13:03:28+00:00","remoteAddr":".48","user":"redacted","app":"mail","method":"GET","url":"/nextcloud/index.php/api/accounts/1/folders/SU5CT1g%3D/messages?filter=foo&limit=20","message":{"Exception":"OCA\\Mail\\Exception\\ServiceException","Message":"Could not get message IDs: IMAP error reported by server.","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/mail/lib/Service/Search/MailSearch.php","line":162,"function":"findMatches","class":"OCA\\Mail\\IMAP\\Search\\Provider","type":"->","args":[{"__class__":"OCA\\Mail\\Account"},{"id":6,"__class__":"OCA\\Mail\\Db\\Mailbox"},{"__class__":"OCA\\Mail\\Service\\Search\\SearchQuery"}]},{"file":"/var/www/html/custom_apps/mail/lib/Service/Search/MailSearch.php","line":146,"function":"getUids","class":"OCA\\Mail\\Service\\Search\\MailSearch","type":"->","args":[{"__class__":"OCA\\Mail\\Account"},{"id":6,"__class__":"OCA\\Mail\\Db\\Mailbox"},{"__class__":"OCA\\Mail\\Service\\Search\\SearchQuery"},20]},{"file":"/var/www/html/custom_apps/mail/lib/Controller/MessagesController.php","line":155,"function":"findMessages","class":"OCA\\Mail\\Service\\Search\\MailSearch","type":"->","args":[{"__class__":"OCA\\Mail\\Account"},"INBOX","foo",null,20]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"index","class":"OCA\\Mail\\Controller\\MessagesController","type":"->","args":[1,"SU5CT1g=",null,"foo",20]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Mail\\Controller\\MessagesController"},"index"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Mail\\Controller\\MessagesController"},"index"]},{"file":"/var/www/html/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Mail\\Controller\\MessagesController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"accountId":"1","folderId":"SU5CT1g=","_route":"mail.messages.index"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"accountId":"1","folderId":"SU5CT1g=","_route":"mail.messages.index"}]},{"file":"/var/www/html/lib/private/Route/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"accountId":"1","folderId":"SU5CT1g=","_route":"mail.messages.index"}]},{"file":"/var/www/html/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/mail/api/accounts/1/folders/SU5CT1g%3D/messages"]},{"file":"/var/www/html/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/mail/lib/IMAP/Search/Provider.php","Line":67,"Previous":{"Exception":"Horde_Imap_Client_Exception_ServerResponse","Message":"IMAP error reported by server.","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/mail/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Socket.php","line":4314,"function":"_getLine","class":"Horde_Imap_Client_Socket","type":"->","args":[{"data":{"modseqs":[],"modseqs_nouid":[],"esearchresp":[],"searchresp":{"duplicates":false,"__class__":"Horde_Imap_Client_Ids"}},"fetch":{"__class__":"Horde_Imap_Client_Fetch_Results"},"__class__":"Horde_Imap_Client_Interaction_Pipeline"}]},{"file":"/var/www/html/custom_apps/mail/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Socket.php","line":4242,"function":"_sendCmdChunk","class":"Horde_Imap_Client_Socket","type":"->","args":[{"data":{"modseqs":[],"modseqs_nouid":[],"esearchresp":[],"searchresp":{"duplicates":false,"__class__":"Horde_Imap_Client_Ids"}},"fetch":{"__class__":"Horde_Imap_Client_Fetch_Results"},"__class__":"Horde_Imap_Client_Interaction_Pipeline"},[{"debug":[],"literalplus":true,"literal8":false,"on_error":null,"on_success":null,"pipeline":{"data":{"modseqs":[],"modseqs_nouid":[],"esearchresp":[],"searchresp":{"duplicates":false,"__class__":"Horde_Imap_Client_Ids"}},"fetch":{"__class__":"Horde_Imap_Client_Fetch_Results"},"__class__":"Horde_Imap_Client_Interaction_Pipeline"},"response":{"tag":"4","responseCode":null,"status":3,"token":{"__class__":"Horde_Imap_Client_Tokenize"},"__class__":"Horde_Imap_Client_Interaction_Server_Tagged"},"tag":"4","__class__":"Horde_Imap_Client_Interaction_Command"}]]},{"file":"/var/www/html/custom_apps/mail/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Socket.php","line":2476,"function":"_sendCmd","class":"Horde_Imap_Client_Socket","type":"->","args":[{"data":{"modseqs":[],"modseqs_nouid":[],"esearchresp":[],"searchresp":{"duplicates":false,"__class__":"Horde_Imap_Client_Ids"}},"fetch":{"__class__":"Horde_Imap_Client_Fetch_Results"},"__class__":"Horde_Imap_Client_Interaction_Pipeline"}]},{"file":"/var/www/html/custom_apps/mail/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Base.php","line":2267,"function":"_search","class":"Horde_Imap_Client_Socket","type":"->","args":[{"__class__":"Horde_Imap_Client_Search_Query"},{"results":[2,1],"_query":{"charset":"US-ASCII","exts":[],"query":{"__class__":"Horde_Imap_Client_Data_Format_List"}}}]},{"file":"/var/www/html/custom_apps/mail/lib/IMAP/Search/Provider.php","line":64,"function":"search","class":"Horde_Imap_Client_Base","type":"->","args":["INBOX",{"__class__":"Horde_Imap_Client_Search_Query"}]},{"file":"/var/www/html/custom_apps/mail/lib/Service/Search/MailSearch.php","line":162,"function":"findMatches","class":"OCA\\Mail\\IMAP\\Search\\Provider","type":"->","args":[{"__class__":"OCA\\Mail\\Account"},{"id":6,"__class__":"OCA\\Mail\\Db\\Mailbox"},{"__class__":"OCA\\Mail\\Service\\Search\\SearchQuery"}]},{"file":"/var/www/html/custom_apps/mail/lib/Service/Search/MailSearch.php","line":146,"function":"getUids","class":"OCA\\Mail\\Service\\Search\\MailSearch","type":"->","args":[{"__class__":"OCA\\Mail\\Account"},{"id":6,"__class__":"OCA\\Mail\\Db\\Mailbox"},{"__class__":"OCA\\Mail\\Service\\Search\\SearchQuery"},20]},{"file":"/var/www/html/custom_apps/mail/lib/Controller/MessagesController.php","line":155,"function":"findMessages","class":"OCA\\Mail\\Service\\Search\\MailSearch","type":"->","args":[{"__class__":"OCA\\Mail\\Account"},"INBOX","foo",null,20]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"index","class":"OCA\\Mail\\Controller\\MessagesController","type":"->","args":[1,"SU5CT1g=",null,"foo",20]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Mail\\Controller\\MessagesController"},"index"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Mail\\Controller\\MessagesController"},"index"]},{"file":"/var/www/html/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Mail\\Controller\\MessagesController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"accountId":"1","folderId":"SU5CT1g=","_route":"mail.messages.index"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"accountId":"1","folderId":"SU5CT1g=","_route":"mail.messages.index"}]},{"file":"/var/www/html/lib/private/Route/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"accountId":"1","folderId":"SU5CT1g=","_route":"mail.messages.index"}]},{"file":"/var/www/html/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/mail/api/accounts/1/folders/SU5CT1g%3D/messages"]},{"file":"/var/www/html/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/mail/vendor/pear-pear.horde.org/Horde_Imap_Client/Horde/Imap/Client/Socket.php","Line":4602},"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.0.12"}
{"reqId":"NtQWcoZ4HppR3vEalSWM","level":0,"time":"2020-07-11T13:03:30+00:00","remoteAddr":"","user":"redacted","app":"mail","method":"POST","url":"/nextcloud/index.php/api/accounts/1/folders/SU5CT1g%3D/sync","message":"partial sync 1:INBOX - get all known UIDs took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.0.12"}
{"reqId":"NtQWcoZ4HppR3vEalSWM","level":0,"time":"2020-07-11T13:03:31+00:00","remoteAddr":"","user":"redacted","app":"mail","method":"POST","url":"/nextcloud/index.php/api/accounts/1/folders/SU5CT1g%3D/sync","message":"partial sync 1:INBOX - get new messages via Horde took 1s","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.0.12"}
{"reqId":"NtQWcoZ4HppR3vEalSWM","level":0,"time":"2020-07-11T13:03:31+00:00","remoteAddr":"","user":"redacted","app":"mail","method":"POST","url":"/nextcloud/index.php/api/accounts/1/folders/SU5CT1g%3D/sync","message":"partial sync 1:INBOX - persist new messages took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.0.12"}
{"reqId":"NtQWcoZ4HppR3vEalSWM","level":0,"time":"2020-07-11T13:03:31+00:00","remoteAddr":"","user":"redacted","app":"mail","method":"POST","url":"/nextcloud/index.php/api/accounts/1/folders/SU5CT1g%3D/sync","message":"partial sync 1:INBOX - get changed messages via Horde took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.0.12"}
{"reqId":"NtQWcoZ4HppR3vEalSWM","level":0,"time":"2020-07-11T13:03:31+00:00","remoteAddr":"","user":"redacted","app":"mail","method":"POST","url":"/nextcloud/index.php/api/accounts/1/folders/SU5CT1g%3D/sync","message":"partial sync 1:INBOX - persist changed messages took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.0.12"}
{"reqId":"NtQWcoZ4HppR3vEalSWM","level":0,"time":"2020-07-11T13:03:31+00:00","remoteAddr":"","user":"redacted","app":"mail","method":"POST","url":"/nextcloud/index.php/api/accounts/1/folders/SU5CT1g%3D/sync","message":"partial sync 1:INBOX - get vanished messages via Horde took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.0.12"}
{"reqId":"NtQWcoZ4HppR3vEalSWM","level":0,"time":"2020-07-11T13:03:31+00:00","remoteAddr":"","user":"redacted","app":"mail","method":"POST","url":"/nextcloud/index.php/api/accounts/1/folders/SU5CT1g%3D/sync","message":"partial sync 1:INBOX - persist new messages took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.0.12"}
{"reqId":"NtQWcoZ4HppR3vEalSWM","level":0,"time":"2020-07-11T13:03:31+00:00","remoteAddr":"","user":"redacted","app":"mail","method":"POST","url":"/nextcloud/index.php/api/accounts/1/folders/SU5CT1g%3D/sync","message":"partial sync 1:INBOX took 1s","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.0.12"}
{"reqId":"ipwxuYFem0VEkC9W7Ymv","level":0,"time":"2020-07-11T13:03:36+00:00","remoteAddr":"","user":"redacted","app":"mail","method":"POST","url":"/nextcloud/index.php/api/accounts/1/folders/SU5CT1g%3D/sync","message":"partial sync 1:INBOX - get all known UIDs took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36","version":"19.0.0.12"}
{"reqId":"ipwxuYFem0VEkC9W7Ymv","level":0,"time":"2020-07-11T13:03:36+00:00","remoteAddr":"","user":"redacted","app":"mail","method":"POST","url":"/nextcloud/index.php/api/accounts/1/folders/SU5CT1g%3D/sync","message":"partial sync 1:INBOX - get new messages via Horde took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36","version":"19.0.0.12"}
{"reqId":"ipwxuYFem0VEkC9W7Ymv","level":0,"time":"2020-07-11T13:03:36+00:00","remoteAddr":"","user":"redacted","app":"mail","method":"POST","url":"/nextcloud/index.php/api/accounts/1/folders/SU5CT1g%3D/sync","message":"partial sync 1:INBOX - persist new messages took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36","version":"19.0.0.12"}
{"reqId":"ipwxuYFem0VEkC9W7Ymv","level":0,"time":"2020-07-11T13:03:36+00:00","remoteAddr":"","user":"redacted","app":"mail","method":"POST","url":"/nextcloud/index.php/api/accounts/1/folders/SU5CT1g%3D/sync","message":"partial sync 1:INBOX - get changed messages via Horde took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36(KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36","version":"19.0.0.12"}
{"reqId":"ipwxuYFem0VEkC9W7Ymv","level":0,"time":"2020-07-11T13:03:36+00:00","remoteAddr":"","user":"redacted","app":"mail","method":"POST","url":"/nextcloud/index.php/api/accounts/1/folders/SU5CT1g%3D/sync","message":"partial sync 1:INBOX - persist changed messages took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36","version":"19.0.0.12"}
{"reqId":"ipwxuYFem0VEkC9W7Ymv","level":0,"time":"2020-07-11T13:03:36+00:00","remoteAddr":"","user":"redacted","app":"mail","method":"POST","url":"/nextcloud/index.php/api/accounts/1/folders/SU5CT1g%3D/sync","message":"partial sync 1:INBOX - get vanished messages via Horde took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36","version":"19.0.0.12"}
{"reqId":"ipwxuYFem0VEkC9W7Ymv","level":0,"time":"2020-07-11T13:03:36+00:00","remoteAddr":"","user":"redacted","app":"mail","method":"POST","url":"/nextcloud/index.php/api/accounts/1/folders/SU5CT1g%3D/sync","message":"partial sync 1:INBOX - persist new messages took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36","version":"19.0.0.12"}
{"reqId":"ipwxuYFem0VEkC9W7Ymv","level":0,"time":"2020-07-11T13:03:36+00:00","remoteAddr":"","user":"redacted","app":"mail","method":"POST","url":"/nextcloud/index.php/api/accounts/1/folders/SU5CT1g%3D/sync","message":"partial sync 1:INBOX took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36","version":"19.0.0.12"} 

@ChristophWurst
Copy link
Member

C: 4 UID SEARCH TEXT foobar

No more logs after that line? I don't see the IMAP error in this excerpt, unfortunately.

@no-response
Copy link

no-response bot commented Jul 20, 2020

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@no-response no-response bot closed this as completed Jul 20, 2020
@ataraxus
Copy link

Sorry I went to vacation so couldnt answer you last question:

Command 3 took 0.0425 seconds.
C: 4 UID SEARCH TEXT foobar


Sat, 11 Jul 2020 13:07:04 +0000
Connection to: imap://imap.1und1.de:993/
Server connection took 0.0432 seconds.
S: * OK [CAPABILITY IMAP4rev1 CHILDREN ENABLE ID IDLE LIST-EXTENDED LIST-STATUS LITERAL- MOVE NAMESPACE QUOTA SASL-IR SORT SPECIAL-USE THREAD=ORDEREDSUBJECT UIDPLUS UNSELECT WITHIN AUTH=LOGIN AUTH=PLAIN] IMAP server ready H mieue109 15.6 IMAP-1N6017VJs
C: 1 AUTHENTICATE PLAIN [INITIAL CLIENT RESPONSE (username: )]
S: 1 OK AUTHENTICATE completed
Command 1 took 0.024 seconds.
C: 2 CAPABILITY
S: * CAPABILITY IMAP4rev1 CHILDREN ENABLE ID IDLE LIST-EXTENDED LIST-STATUS LITERAL- MOVE NAMESPACE QUOTA SASL-IR SORT SPECIAL-USE THREAD=ORDEREDSUBJECT UIDPLUS UNSELECT WITHIN APPENDLIMIT=140000000
S: 2 OK CAPABILITY completed
Command 2 took 0.013 seconds.
CACHE: Using the OCA\Mail\Cache\Cache storage driver.
C: 3 STATUS INBOX (MESSAGES UIDNEXT UIDVALIDITY)
S: * STATUS INBOX (MESSAGES 7286 UIDNEXT 15808 UIDVALIDITY 1555527509)
S: 3 OK STATUS completed
Command 3 took 0.0141 seconds.
C: 4 STATUS INBOX (MESSAGES UIDNEXT UIDVALIDITY)
S: * STATUS INBOX (MESSAGES 7286 UIDNEXT 15808 UIDVALIDITY 1555527509)
S: 4 OK STATUS completed
Command 4 took 0.0144 seconds.
C: 5 STATUS INBOX (MESSAGES UIDNEXT UIDVALIDITY)
S: * STATUS INBOX (MESSAGES 7286 UIDNEXT 15808 UIDVALIDITY 1555527509)
S: 5 OK STATUS completed
Command 5 took 0.0139 seconds.
C: 6 EXAMINE INBOX
S: * 7286 EXISTS
S: * 0 RECENT
S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft $Forwarded NonJunk)
S: * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen $Forwarded NonJunk *)] Unlimited
S: * OK [UIDNEXT 15808] Predicted next UID
S: * OK [UIDVALIDITY 1555527509] UIDs valid
S: 6 OK [READ-ONLY] EXAMINE completed
Command 6 took 0.0297 seconds.
CACHE: Retrieved messages (HICenv,HICdate,HICdg [INBOX; 15788:15807])
C: 7 UID FETCH 15788:15807 (FLAGS)
S: * 7267 FETCH (UID 15788 FLAGS (\Seen))
S: * 7268 FETCH (UID 15789 FLAGS (\Seen))
S: * 7269 FETCH (UID 15790 FLAGS (\Seen))
S: * 7270 FETCH (UID 15791 FLAGS (\Seen))
S: * 7271 FETCH (UID 15792 FLAGS (\Seen))
S: * 7272 FETCH (UID 15793 FLAGS (\Seen))
S: * 7273 FETCH (UID 15794 FLAGS (\Seen))
S: * 7274 FETCH (UID 15795 FLAGS (\Seen))

@alexanderdd
Copy link
Author

alexanderdd commented Aug 7, 2020

@ChristophWurst You suggested I enable debug mode. The docs say you should not enable debug mode in production, so sorry, I will not enable it. Let me know if there is anything I can do for you without enabling debug mode.

Btw search works for some mail accounts on our NC, and doesnt work on others (although all are hosted at the same provider). I tried deleting the mail account and reconnecting it, no luck.

@ataraxus thank youfor sharing

@no-response no-response bot removed the needs info label Aug 7, 2020
@no-response no-response bot reopened this Aug 7, 2020
@ataraxus
Copy link

ataraxus commented Aug 7, 2020

I also regreted enabling debug an posting this info here, i failed twice to fish private info out of the logs....

@StCyr
Copy link
Collaborator

StCyr commented Nov 27, 2020

Hello,
Is this issue still relevant? Do we still support version 1.4?
Search functionality has changed drasticaly in the last few weeks....

@ChristophWurst
Copy link
Member

Do we still support version 1.4?

Only if something really critical pops up but of course anyone who wants to maintain the old release can open their backport PRs.

@jasond2020
Copy link

jasond2020 commented Nov 27, 2020

The search is broken still (at least since version 1.4.0) in the recent versions. I think the following error messages are related - maybe this is some local problem, but i don't know:
"Horde_Imap_Client_Data_Format_Exception: String contains non-ASCII characters."
(i don't think that the search should have problems with ö, ä, ü etc.; in what files should the character-set be configured (if this is the problem)? besides the database)

"OCA\Mail\Exception\ServiceException: Could not deserialize persisted classifier 2: File /tmp/oc_tmp_... does not contain any data."
this is caused by the following (this is what it says in the log):
"Verursacht durchRuntimeException: File /tmp/oc_tmp_... does not contain any data."
(yes, if there is no data, then no search can be performed; but... why is there no data? which process has to write something so that another (search-)process can read it?)

[hm, maybe here is also some connection to: #3968 ]

@jasond2020
Copy link

If it were that easy :-( ... already did that long time ago.

@alexanderdd
Copy link
Author

Search now works on one of the inboxes where the search was previously broken, in NC20.0.4. Mail App 1.7.2 =)
So I close this.
Feel free to reopen if you still experience this issue.

@Gahia123
Copy link

Gahia123 commented Sep 22, 2021

I've the same problem, search doesn't filter more than 3 letters; more throw nothing. I'm using Nextcloud 21.0.4 running on a Gentoo server, mail app 1.10.4, fpm-php 7.4, firefox 78.13.0. Which log files should I attach?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants