Hi Riccardo, strange that there is no "UID SEARCH" in you log. You could try following commads and compare working with non-working env.
telnet localhost 143 Trying ::1... Connected to localhost. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready. 1 login <user> <pwd> 1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE QUOTA ACL RIGHTS=texk] Logged in 1 select inbox * FLAGS (\Answered \Flagged \Deleted \Seen \Draft $Forwarded) * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft $Forwarded \*)] Flags permitted. * 23 EXISTS * 0 RECENT * OK [UIDVALIDITY 1509265452] UIDs valid * OK [UIDNEXT 2147] Predicted next UID * OK [HIGHESTMODSEQ 5864] Highest 1 OK [READ-WRITE] Select completed (0.000 secs). 1 UID SORT (REVERSE ARRIVAL) UTF-8 (NOT DELETED OR (SUBJECT "<search string>") (FROM "<search string>")) * SORT 2146 2145 2140 2126 2124 2115 2097 <<<< UIDs of mails containing the search string 1 OK Sort completed (0.000 secs). 1 capability * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE QUOTA ACL RIGHTS=texk 1 OK Capability completed. Regards, Thomas Am Samstag, November 17, 2018 00:52 CET, "Riccardo Bicelli" ([email protected]) <[email protected]> schrieb: Hi,searching in Web UI is fine, below a transcript of IMAP session of web ui search: S[0x55c6babe5078]: 2 OK Capability completed.S[0x55c6babe5078]: * ID ("name" "Dovecot")S[0x55c6babe5078]: 3 OK ID completed.S[0x55c6babe5078]: * NAMESPACE (("" "/")) (("shared/DOMAIN/" "/")) (("Public/" "/"))S[0x55c6babe5078]: 4 OK Namespace completed.S[0x55c6babe5078]: * LIST (\Noselect) "/" ""S[0x55c6babe5078]: 5 OK List completed.[And session goes on...] Searching with Activesync (sogo 4.0.4.20181114-1.centos6 on CentOS 6.9): S[0x55c6baefedb8]: 2 OK Capability completed.S[0x55c6baefedb8]: * ID ("name" "Dovecot")S[0x55c6baefedb8]: 3 OK ID completed.S[0x55c6baefedb8]: * NAMESPACE (("" "/")) (("shared/DOMAIN/" "/")) (("Public/" "/"))S[0x55c6baefedb8]: 4 OK Namespace completed.S[0x55c6baefedb8]: * LIST (\Noselect) "/" ""S[0x55c6baefedb8]: 5 OK List completed.S[0x55c6baefedb8]: 6 NO Mailbox doesn't exist: (null)S[0x55c6baefedb8]: * BYE Logging out[And Session Stops] And this is a session with a working Activesync installation (sogo 4.0.1.20180806-1.el7.centos on CentOS 7.5) S[0x55c14c282830]: 2 OK Capability completed.S[0x55c14c282830]: * ID ("name" "Dovecot")S[0x55c14c282830]: 3 OK ID completed.S[0x55c14c282830]: * LIST (\Noselect) "/" ""S[0x55c14c282830]: 4 OK List completed.S[0x55c14c282830]: * LIST (\HasNoChildren \Trash) "/" TrashS[0x55c14c282830]: * LIST (\HasNoChildren \Sent) "/" SentS[0x55c14c282830]: * LIST (\HasNoChildren \Drafts) "/" DraftsS[0x55c14c282830]: * LIST (\HasNoChildren \Archive) "/" ArchiveS[0x55c14c282830]: * LIST (\Noselect \HasNoChildren) "/" PublicS[0x55c14c282830]: * LIST (\HasNoChildren) "/" INBOXS[0x55c14c282830]: 5 OK List completed.S[0x55c14c282830]: * NAMESPACE (("" "/")) (("shared/DOMAIN/" "/")) (("Public/" "/"))S[0x55c14c282830]: 6 OK Namespace completed.S[0x55c14c282830]: 7 OK List completed.[And Search goes on] Since my sogo server are dedicated vm, could I solve my problem upgrading my installation to CentOS 7.5? Cheers! Il giorno ven 16 nov 2018 alle ore 12:06 Thomas Führer <[email protected]> ha scritto:Hi Riccardo, Can you search mails via the WebUI? If there is no obvious difference between the environments you could set ImapDebugEnabled = YES to see the IMAP commands sent and their results. Cheers, Thomas Am Donnerstag, November 15, 2018 14:44 CET, "Riccardo Bicelli" ([email protected]) <[email protected]> schrieb: With sogo-tool everything seems ok. On another system,same version, search is working fine. Are there settings related to dovecot that I can play with? Cheers Il giorno mar 13 nov 2018 alle ore 08:16 "Thomas Fuehrer" <[email protected]> ha scritto: Hi Riccardo, attached is a patch for the inline image problem. I don’t think that "Mailbox doesn't exist: (null)" is causing a problem, but you can investigate with sogo-tool: sogo-tool -v manage-eas listdevices janedoe sogo-tool -v manage-eas listfolders janedoe androidc316986417 Cheers, Thomas Von: [email protected] <[email protected]> Im Auftrag von Riccardo Bicelli Gesendet: Montag, 12. November 2018 10:19 An: [email protected] Betreff: Re: [SOGo] ActiveSync: Search no longer shows more messages than "Sync Period" and inline images are not displayed Hi Thomas Yes, I can test patches and I will be glad to try it. With SOGoEASDebugEnabled = YES In the logs I have: <!DOCTYPE ActiveSync PUBLIC "-//MICROSOFT//DTD ActiveSync//EN" "http://www.microsoft.com/"> <Search xmlns="Search:"> <Store> <Name>Mailbox</Name> <Query> <And> <Class xmlns="AirSync:">Email</Class> <CollectionId xmlns="AirSync:">0</CollectionId> <FreeText>pierfau</FreeText> </And> </Query> <Options> <BodyPreference xmlns="AirSyncBase:"> <Type>2</Type> <TruncationSize>1048576</TruncationSize> </BodyPreference> <RightsManagementSupport xmlns="RightsManagement:">1</RightsManagementSupport> <RebuildResults/> <DeepTraversal/> <Range>0-49</Range> </Options> </Store> </Search> Nov 12 10:06:30 sogod [25771]: [ERROR] <0x0x55ec61d7b458[NGImap4Connection]> could not select URL: imaps://[REMOVED FOR PRIVACY PURPOSE]/%28null%29/: {RawResponse = "{ResponseResult = {description = \"Mailbox doesn't exist: (null)\"; result = no; tagId = 6; }; }"; reason = "Mailbox doesn't exist: (null)"; result = 0; } Nov 12 10:06:30 sogod [25771]: <0x0x55ec620240a8[SOGoActiveSyncDispatcher]> EAS - response for device 9EFD993C7C1E8054: <?xml version="1.0"?> <!DOCTYPE ActiveSync PUBLIC "-//MICROSOFT//DTD ActiveSync//EN" "http://www.microsoft.com/"> <Search xmlns="Search:"> <Status>1</Status> <Response> <Store> <Status>1</Status> <Range>0-0</Range> <Total>0</Total> </Store> </Response> </Search> I tested search in another another system and it works. Could it be the Mailbox doesn't exist: (null) part in the log? Il giorno ven 9 nov 2018, 15:41 Thomas Führer <[email protected]> ha scritto: Hi Riccardo, you could test the search with SOGoEASDebugEnabled = YES . This should give you more details in sogo.log when you search for mail messages on your phone. Search for "<Search xmlns="Search:"> ..." in sogo.log. Regarding the problem with inline images ... Are you in the possition to test a patch? Do you compile from source? I could send you a patch which should improve the handling of inline images. It would be great if you could help to test the patch. Cheers, Thomas Am Mittwoch, November 07, 2018 08:44 CET, "Riccardo Bicelli" ([email protected]) <[email protected]> schrieb: Hello, I'm aware that Activesync on mobile devices synchronizes 1 month max of messages. But I remember that some time ago, when a I did a search, it returned older messages also. Am I remembering wrong? Is annoying for mobile users not haveing the ability to access old messages. I'm also facing a problem with Outlook for Android/iOS, gmail app and apple mail: when a message has inline images, instead of image a placeholder is displayed. If the image is attached it is ok to download and display it. Cheers, Riccardo -- [email protected] https://inverse.ca/sogo/lists -- [email protected] https://inverse.ca/sogo/lists -- [email protected] https://inverse.ca/sogo/lists-- [email protected] https://inverse.ca/sogo/lists-- [email protected] https://inverse.ca/sogo/lists -- [email protected] https://inverse.ca/sogo/lists-- [email protected] https://inverse.ca/sogo/lists -- [email protected] https://inverse.ca/sogo/lists
