Thanks!
Meanwhile I'm trying to compile with patch you sent but is not an easy task
in CentOS..

Cheers

Il giorno ven 23 nov 2018, 23:40 "Thomas Fuehrer" <[email protected]> ha
scritto:

> I’ve sent a few fixes to Ludovic for review….
>
>
>
> Regards,
>
> Thomas
>
>
>
> *Von:* [email protected] <[email protected]> *Im Auftrag von *Riccardo
> Bicelli
> *Gesendet:* Freitag, 23. November 2018 18:24
> *An:* [email protected]
> *Betreff:* Re: [SOGo] ActiveSync: Search no longer shows more messages
> than "Sync Period" and inline images are not displayed
>
>
>
> Filed a bug.
>
> Meanwhile I found other messages that cause parsing errors.
>
>
>
> Cheers
>
>
>
> Il giorno ven 23 nov 2018, 17:03 Thomas Führer <[email protected]> ha scritto:
>
> Received your mail with an "empty" attached. Can you please resend it, or
> file a bug and attach it ... what ever you prefere ...
>
> Thanks,
> Thomas
>
> Am Freitag, November 23, 2018 08:18 CET, "Riccardo Bicelli" (
> [email protected]) <[email protected]> schrieb:
>
>
> Hi Thomas!
>
> Attached the message.
>
>
>
> For other problems regarding search, is it ok to file some bugs?
>
>
>
> Cheers!
>
>
>
> Il giorno gio 22 nov 2018 alle ore 21:01 Thomas Führer <[email protected]> ha
> scritto:
>
> Riccardo, provide me the eml file. I can try to fix the xml parse error.
>
> Regards, Thomas
>
>
>
> ---- Riccardo Bicelli schrieb ----
>
>
> Hi Thomas!
>
> Sure I can identify the message. If you need it can provide the .eml file
> from thunderbird.
>
>
>
> Doing my tests I found that, regardless of what I set in sogo.conf or in
> httpd config, if the search takes more than 30 seconds it throws error on
> Gmail App but search continues on sogo process.
>
> Isn't there a paged search option or a way to speedup search in dovecot
> with large mailboxes?
>
> Same behavior on IOS App.
>
> On outlook Side no way to test it due to the CollectionID=0 problem.
>
>
>
> Cheers!
>
> Riccardo
>
>
>
>
>
>
>
>
>
>
>
> Il giorno gio 22 nov 2018 alle ore 18:26 Thomas Führer <[email protected]> ha
> scritto:
>
> Hi Riccardo,
> without access to to /tmp/rp_[masked]_dc4_21a6e764_0.data it's hard to
> find the problem.
>
> What you can try is to identify the original email with the content of
> /tmp/rp_[masked]_dc4_21a6e764_0.data.
> If you are able to tack down the problem to a specific mail you can then
> try  rephrase the search pattern so that you get only that mail in the
> result.
> When you know the culprit mail  you can try to identify the cause: a
> special formating, character, ....
>
> Regards,
> Thomas
>
> Am Donnerstag, November 22, 2018 14:41 CET, "Riccardo Bicelli" (
> [email protected]) <[email protected]> schrieb:
>
>
> Hello, I went a little further.
>
> I moved to gmail app where I don't have the "CollectionID Problem".
>
>
>
> Using gmail app the IMAP Search rolls fine but at the time for response in
> the log appears
>
>
>
> [0x5574ec51ac58]: 995 OK Sort completed (0.000 secs).
>
> C[0x5574ec709a88]: 996 select "Archives/2015"
>
> S[0x5574ec51ac58]: * OK [CLOSED] Previous Nov 22 14:32:19 sogod [3524]:
> [ERROR] <0x0x5574ec557918[NGImap4Connection]> could not select URL:
> imaps://[MASKED]/Public/: {RawResponse = "{ResponseResult = {description =
> \"Mailbox doesn't exist: Public\"; result = no; tagId = 1000; }; ok =
> {CLOSED = \"Previous mailbox closed.\"; }; }"; reason = "Mailbox doesn't
> exist: Public"; result = 0; }
>
> Nov 22 14:32:20 sogod [3524]: [ERROR] <0x0x5574f13b17c8[NSDataMalloc]>
> xml2wbxmlFromContent: failed: Parsing of XML Document Failed
>
>
>
> Checking document with xmllint:
>
>
>
> xmllint --format /tmp/rp_[masked]_dc4_21a6e764_0.data
>
> /tmp/rp_[masked]_dc4_21a6e764_0.data:450: parser error : PCDATA invalid
> Char value 4
>
> ef=&quot;
> https://twitter.com/share?mid=41847&amp;eid=CVMWR000009023319&amp;text=
>
>
>      ^
>
> /tmp/rp_[masked]_dc4_21a6e764_0.data:8960: parser error : PCDATA invalid
> Char value 4
>
> quot; data-imagelibrary=&quot;%7B%22width%3A0 ꊧ
>  4.642275e-310ight%3A0
>
>
>      ^
>
> /tmp/rp_[masked]_dc4_21a6e764_0.data:9680: parser error : PCDATA invalid
> Char value 4
>
> quot; data-imagelibrary=&quot;%7B%22width%3A0 Ý
>  4.642275e-310ight%3A0
>
>
>
> Any help appreciated
>
>
>
> Cheers
>
> Riccardo
>
>
>
> Il giorno mar 20 nov 2018 alle ore 14:52 Thomas Führer <[email protected]> ha
> scritto:
>
> Hi,
> can you try to find out under what circumstands the CollectionId=0 is
> included by the Outlook mobile app.
> If there is no CollectionId in the search request the server will search
> all folders. This could take longer than the client is willing to wait ...
> which then could result in the error you have mentioned.
> Does the problem always occure, regadless how large the mailbox is and how
> main imap-folder exists in the mailbox?
>
> I think that processSearchMailbox  needs to be changed to avoid looping
> over all folders and to return after the requested number of mails have
> been found.
>
> Regards,
> Thomas
>
> Am Montag, November 19, 2018 19:29 CET, "Riccardo Bicelli" (
> [email protected]) <[email protected]> schrieb:
>
>
> Hi!
>
> When searching in Gmail App the search through imap begins but after some
> seconds it throws an error in app itself.
>
>
>
>
>
> Through gmail app search is (from another folder in same level of INBOX):
>
>
>
> <!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>
>
>     <FreeText>aruba</FreeText>
>
>    </And>
>
>   </Query>
>
>   <Options>
>
>    <RebuildResults/>
>
>    <DeepTraversal/>
>
>    <Range>0-9</Range>
>
>    <BodyPreference xmlns="AirSyncBase:">
>
>     <Type>2</Type>
>
>     <TruncationSize>20000</TruncationSize>
>
>    </BodyPreference>
>
>   </Options>
>
>  </Store>
>
> </Search>
>
>
>
> [ENDLESS IMAP SEARCH THROUGH ALL FOLDERS]
>
>
>
> C[0x7f77d23268c8]: 1681 UID SORT (REVERSE ARRIVAL) UTF-8 (NOT DELETED OR
> Nov 19 19:08:54 sogod [13130]: [ERROR]
> <0x0x7f77d2363cf8[NGImap4Connection]> could not select URL:
> imaps://[MASKED]/Public/: {RawResponse = "{ResponseResult = {description =
> \"Mailbox doesn't exist: Public\"; result = no; tagId = 1684; }; ok =
> {CLOSED = \"Previous mailbox closed.\"; }; }"; reason = "Mailbox doesn't
> exist: Public"; result = 0; }
>
> Nov 19 19:08:54 sogod [13130]: [ERROR] <0x0x7f77d8d05928[NSDataMalloc]>
> xml2wbxmlFromContent: failed: Parsing of XML Document Failed
>
>
>
> Nov 19 19:08:54 sogod [13130]: [ERROR] <0x0x7f77d8d05928[NSDataMalloc]>
> Original data written to: /tmp/sogo_[MASKED]_334a_21a333b6_0.data
>
> Nov 19 19:08:54 sogod [13130]: |SOGo| request took 73.461711 seconds to
> execute
>
> Nov 19 19:08:54 sogod [13130]:[MASKED] "POST
> /SOGo/Microsoft-Server-ActiveSync?Cmd=Search&User=[MASKED]s&DeviceId=androidc1284692624&DeviceType=Android
> HTTP/1.1" 200 0/77 73.466 - - 111M
>
> Nov 19 19:09:32 sogod [13130]: |SOGo| starting method 'POST' on uri
> '/SOGo/Microsoft-Server-ActiveSync?Cmd=FolderSync&User=[MASKED]&DeviceId=androidc1284692624&DeviceType=Android'
>
> Nov 19 19:09:32 sogod [13130]:
> <0x0x7f77d23bf5b8[SOGoActiveSyncDispatcher]> EAS - request for device
> androidc1284692624: <?xml version="1.0"?>
>
> <!DOCTYPE ActiveSync PUBLIC "-//MICROSOFT//DTD ActiveSync//EN" "
> http://www.microsoft.com/";>
>
> <FolderSync xmlns="FolderHierarchy:">
>
>  <SyncKey>sogoext_[MASKED]_1ab6_21a32de0_0</SyncKey>
>
> </FolderSync>
>
>
>
>
>
> Searching in same folder from Outlook App:<!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>
>
>     <FreeText>aruba</FreeText>
>
>    </And>
>
>   </Query>
>
>   <Options>
>
>    <RebuildResults/>
>
>    <DeepTraversal/>
>
>    <Range>0-9</Range>
>
>    <BodyPreference xmlns="AirSyncBase:">
>
>     <Type>2</Type>
>
>     <TruncationSize>20000</TruncationSize>
>
>    </BodyPreference>
>
>   </Options>
>
>  </Store>
>
> </Search>
>
>
>
> [ENDLESS IMAP SESSION]
>
>
>
> Nov 19 19:22:08 sogod [13058]: [WARN] <0x0x7f77d1ef6a58[WOWatchDogChild]>
> safety belt -- sending KILL signal to pid 13482
>
> Nov 19 19:22:08 sogod [13058]: <0x0x7f77d1ef6a58[WOWatchDogChild]> child
> 13482 exited
>
> Nov 19 19:22:08 sogod [13058]: <0x0x7f77d1ef6a58[WOWatchDogChild]>
> (terminated due to signal 9)
>
> Nov 19 19:22:08 sogod [13058]: <0x0x7f77d1d42d08[WOWatchDog]> child
> spawned with pid 13788
>
> Nov 19 19:22:33 sogod [13058]: [WARN] <0x0x7f77d1f3aec8[WOWatchDogChild]>
> pid 13651 has been hanging in the same request for 2 minutes
>
>
>
> I'm not very sure if this safety belt is tied to my Activesync session.
>
>
>
> In Both cases I don't have CollectionID attribute in the request.
>
>
>
>
>
>
>
> Il giorno lun 19 nov 2018 alle ore 18:12 Thomas Führer <[email protected]> ha
> scritto:
>
> Hi!
> Regarding " <CollectionId xmlns="AirSync:">0</CollectionId>") I think this
> is a fault/bug of the Outlook mobile app.
> -> 0 is not a valid CollecitonId for sogo and results in the "Mailbox
> doesn't exists: (null).
> As a "fix/workaround" we could search all folders when CollectionId=0,
> similar when there is no CollectionId specified.
>
> Regarding no-result search with gmail app) I think you can do no other
> things then debugging further on the system
> .> e.g what do you get from:  UID SORT (REVERSE ARRIVAL) UTF-8 (NOT
> DELETED OR (SUBJECT "citri") (FROM "citri"))
>
> Regards,
> Thomas
>
> Am Montag, November 19, 2018 12:38 CET, "Riccardo Bicelli" (
> [email protected]) <[email protected]> schrieb:
>
>
> Hello!
>
> CollectionID is unmasked, doing another search with outlook mobile app:
>
>
>
> <Search xmlns="Search:">
>
>  <Store>
>
>   <Name>Mailbox</Name>
>
>   <Query>
>
>    <And>
>
>     <Class xmlns="AirSync:">Email</Class>
>
>     <CollectionId xmlns="AirSync:">0</CollectionId>
>
>     <FreeText>citri</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>
>
>
>
> Same search, same no results but with gmail App:
>
>
>
> <Search xmlns="Search:">
>
>  <Store>
>
>   <Name>Mailbox</Name>
>
>   <Query>
>
>    <And>
>
>     <Class xmlns="AirSync:">Email</Class>
>
>     <FreeText>citri</FreeText>
>
>    </And>
>
>   </Query>
>
>   <Options>
>
>    <RebuildResults/>
>
>    <DeepTraversal/>
>
>    <Range>0-9</Range>
>
>    <BodyPreference xmlns="AirSyncBase:">
>
>     <Type>2</Type>
>
>     <TruncationSize>20000</TruncationSize>
>
>    </BodyPreference>
>
>   </Options>
>
>  </Store>
>
> </Search>
>
>
>
>
>
>
>
> Doing a Search on another working system in gmail app:
>
>
>
> <Search xmlns="Search:">
>
>  <Store>
>
>   <Name>Mailbox</Name>
>
>   <Query>
>
>    <And>
>
>     <Class xmlns="AirSync:">Email</Class>
>
>     <FreeText>arub</FreeText>
>
>    </And>
>
>   </Query>
>
>   <Options>
>
>    <RebuildResults/>
>
>    <DeepTraversal/>
>
>    <Range>0-9</Range>
>
>    <BodyPreference xmlns="AirSyncBase:">
>
>     <Type>2</Type>
>
>     <TruncationSize>20000</TruncationSize>
>
>    </BodyPreference>
>
>   </Options>
>
>  </Store>
>
> </Search>
>
>
>
>
>
>
>
> Il giorno lun 19 nov 2018 alle ore 12:06 Thomas Führer <[email protected]> ha
> scritto:
>
> Hi Riccardo,
> scroll down the mail ...
>
>
>
> <Search xmlns="Search:">
>
>  <Store>
>
>   <Name>Mailbox</Name>
>
>   <Query>
>
>    <And>
>
>     <Class xmlns="AirSync:">Email</Class>
>
>     <CollectionId xmlns="AirSync:">0</CollectionId>
>
>     <FreeText>pierfau</FreeText>
> ...
> ...
>
>
> Is the 0 a value you changed (masked)?. As far I understand the search
> request can have NO CollectionId then all folders need to be searched. If
> ColectionId IS included then just this folder will be searched. If 0 is the
> real value we need to understand where it come from ...
>
> Thomas
>
> Am Sonntag, November 18, 2018 16:56 CET, "Riccardo Bicelli" (
> [email protected]) <[email protected]> schrieb:
>
>
> Hello, where is located ColectionID value? Cannot see it neither in logs
> nor with sogo-tool command.
>
> Thanks.
>
>
>
> Riccardo
>
>
>
> Il giorno dom 18 nov 2018 alle ore 14:08 Thomas Führer <[email protected]> ha
> scritto:
>
> Do you find the value of CollectionID (if included) in the search request
> in the listfolders output?
> Thanks
>
>
>
> ---- Riccardo Bicelli schrieb ----
>
>
> Hello,
>
> on working installation:
>
>
>
> Folder Key: androidc1284692624+folder4fb4160c46a9685bcb450000ad0ad2a2
>
>    Folder Name: Drafts
>
>
>
> Folder Key: androidc1284692624+folder7198e31072a9685b9a460000ad0ad2a2
>
>    Folder Name: Sent
>
>
>
> Folder Key: androidc1284692624+folder9ded6f04b6a4685b8e3d0000ad0ad2a2
>
>    Folder Name: INBOX
>
>
>
> Folder Key: androidc1284692624+foldera606eb242da9685b8e450000ad0ad2a2
>
>    Folder Name: Archive
>
>
>
> Folder Key: androidc1284692624+folderf22ef812daaa685bcd490000ad0ad2a2
>
>    Folder Name: Trash
>
>
>
> Folder Key: androidc1284692624+folderJunk
>
>    Folder Name: Junk
>
>
>
> Folder Key: androidc1284692624+folderPublic
>
>    Folder Name: Public
>
>
>
> Folder Key: androidc1284692624+vcard/personal
>
>    Folder Name: Rubrica personale
>
>
>
> Folder Key: androidc1284692624+vevent/personal
>
>    Folder Name: Calendario personale
>
>
>
> Folder Key: androidc1284692624+vtodo/personal
>
>    Folder Name: Calendario personale
>
>
>
> On non-working installation:
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder03967a0b4307ec5b27050000c343691f
>
>    Folder Name: Archives/2015/Ricevuti
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder055717082707ec5b6b040000c343691f
>
>    Folder Name: Archives/2010
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder0a15331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/[MASKED]
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder0b15331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/[MASKED]
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder1015331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/[MASKED]
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder10b711022c07ec5b96040000c343691f
>
>    Folder Name: Archives/2011/Inviati
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder1715331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/[MASKED]
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder192c48263207ec5bbd040000c343691f
>
>    Folder Name: Archives/2012/Ricevuti
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder1fb409193a07ec5bed040000c343691f
>
>    Folder Name: Archives/2013/Inviati
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder2515331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/Licensing
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder29e08d2e4fa9da5ba96d00004ca6fcd2
>
>    Folder Name: Bozze
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder2ece0e0b64a8a75adf0200004ca6fcd2
>
>    Folder Name: Sysadmin
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder3d15331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/Registrazioni
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder3f15331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/Registrazioni/Domini
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder434d331db18c6859b34800004ca6fcd2
>
>    Folder Name: Trash
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder4415331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/Registrazioni/PEC
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder4467230b2707ec5b6d040000c343691f
>
>    Folder Name: Archives/2010/Ricevuti
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder46d76f16b43a675a350200004ca6fcd2
>
>    Folder Name: Templates
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder4e8b4f384707ec5b2d050000c343691f
>
>    Folder Name: Archives/2015/Inviati
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder50d0fc0c948b6859894700004ca6fcd2
>
>    Folder Name: INBOX
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder51d0fc0c948b6859894700004ca6fcd2
>
>    Folder Name: Archives
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder5215331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/[MASKED]
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder5315331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/[MASKED]/[MASKED]
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder5915331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/[MASKED]/[MASKED]/[MASKED]
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder5a15331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/[MASKED]/[MASKED]/[MASKED]
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder5d15331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/[MASKED]/[MASKED]/2009-06 - Gestore Promozioni
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder60cccd2cb3a0605a3d6b00004ca6fcd2
>
>    Folder Name: Archives/2018
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder6115331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/[MASKED]/[MASKED]/2009-07 - Varie
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder6315331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/[MASKED]/[MASKED]/2009-08 - Varie
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder6615331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/[MASKED]/[MASKED]/Analisi
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder6715331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/[MASKED]/[MASKED]/Confermato
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder6a15331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/[MASKED]/[MASKED]/Fatture
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder6b7c622c3207ec5bc0040000c343691f
>
>    Folder Name: Archives/2012/Inviati
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder6d15331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/[MASKED]/[MASKED]/Offerte Parcheggiate
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder6f15331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/[MASKED]/[MASKED]/Ordini
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder7215331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/[MASKED]/[MASKED]/Segnalazioni
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder72d0fc0c948b6859894700004ca6fcd2
>
>    Folder Name: Drafts
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder79d698372b07ec5b93040000c343691f
>
>    Folder Name: Archives/2011/Ricevuti
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder7cf7412ff8d5ea5b285a0000c343691f
>
>    Folder Name: Archives/2014
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder7d15331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/[MASKED]/[MASKED]
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder8315331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/[MASKED]/[MASKED]
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder8715331db18c6859b34800004ca6fcd2
>
>    Folder Name: Junk
>
>
>
> Folder Key: 9EFD993C7C1E8054+folder9415331db18c6859b34800004ca6fcd2
>
>    Folder Name: Sent
>
>
>
> Folder Key: 9EFD993C7C1E8054+folderab63cd123a07ec5bea040000c343691f
>
>    Folder Name: Archives/2013/Ricevuti
>
>
>
> Folder Key: 9EFD993C7C1E8054+folderaf4c811fef16db5bef0f0000c343691f
>
>    Folder Name: Posta eliminata
>
>
>
> Folder Key: 9EFD993C7C1E8054+folderb0022c1afa94065b890500004ca6fcd2
>
>    Folder Name: Archives/2012
>
>
>
> Folder Key: 9EFD993C7C1E8054+folderb82317112707ec5b71040000c343691f
>
>    Folder Name: Archives/2010/Inviati
>
>
>
> Folder Key: 9EFD993C7C1E8054+folderbc041912f205ec5bf57f0000c343691f
>
>    Folder Name: Archives/2009/Inviati
>
>
>
> Folder Key: 9EFD993C7C1E8054+folderbc69942b9f93ea5b323f0000c343691f
>
>    Folder Name: Archives/2011
>
>
>
> Folder Key: 9EFD993C7C1E8054+folderbd8f861d3ea579596b2800004ca6fcd2
>
>    Folder Name: INBOX/[MASKED]
>
>
>
> Folder Key: 9EFD993C7C1E8054+folderce55a42a6dd0ea5b404f0000c343691f
>
>    Folder Name: Archives/2009
>
>
>
> Folder Key: 9EFD993C7C1E8054+foldercf55a42a6dd0ea5b404f0000c343691f
>
>    Folder Name: Archives/2013
>
>
>
> Folder Key: 9EFD993C7C1E8054+folderd0bb6b0b2775b45bca5e00004ca6fcd2
>
>    Folder Name: Spam Train
>
>
>
> Folder Key: 9EFD993C7C1E8054+foldere512ae268d97f1593c4d00004ca6fcd2
>
>    Folder Name: Archives/2017
>
>
>
> Folder Key: 9EFD993C7C1E8054+foldere8c4b33483ab435a9c2100004ca6fcd2
>
>    Folder Name: Archives/2016
>
>
>
> Folder Key: 9EFD993C7C1E8054+foldere914331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/Accounts
>
>
>
> Folder Key: 9EFD993C7C1E8054+foldere93027013f07ec5b0d050000c343691f
>
>    Folder Name: Archives/2014/Inviati
>
>
>
> Folder Key: 9EFD993C7C1E8054+folderf0eea7363e07ec5b0a050000c343691f
>
>    Folder Name: Archives/2014/Ricevuti
>
>
>
> Folder Key: 9EFD993C7C1E8054+folderf17671372a00ec5b05730000c343691f
>
>    Folder Name: Trash/In Arrivo
>
>
>
> Folder Key: 9EFD993C7C1E8054+folderf414331db18c6859b34800004ca6fcd2
>
>    Folder Name: INBOX/Dell
>
>
>
> Folder Key: 9EFD993C7C1E8054+folderf55341084307ec5b25050000c343691f
>
>    Folder Name: Archives/2015
>
>
>
> Folder Key: 9EFD993C7C1E8054+folderf62f2c35f105ec5bf27f0000c343691f
>
>    Folder Name: Archives/2009/Ricevuti
>
>
>
> Folder Key: 9EFD993C7C1E8054+folderPublic
>
>    Folder Name: Public
>
>
>
> Folder Key: 9EFD993C7C1E8054+vcard/personal
>
>    Folder Name: Rubrica personale
>
>
>
> Folder Key: 9EFD993C7C1E8054+vevent/personal
>
>    Folder Name: Calendario personale
>
>
>
> Folder Key: 9EFD993C7C1E8054+vtodo/personal
>
>    Folder Name: Calendario personale
>
>
>
> Thanks
>
>
>
> Il giorno sab 17 nov 2018 alle ore 21:56 Thomas Führer <[email protected]> ha
> scritto:
>
> Hi,
> please show the output of  sogo-tool.. listfolders.
> The value of the attribute CollectionID in the search request is
> translated to the imap folder with what is shown by listfolders.
>
> Regards, Thomas
>
>
>
> ---- Riccardo Bicelli schrieb ----
>
>
> I tried and everything seems ok:
>
>
>
> 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.
>
> a login user pass
>
> a 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 Forwarded
> receipt-handled $label1 $label2 $label4 rispondere $MDNSent $label5 $label3
> NonJunk JUNK $has_cal)
>
> * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft $Forwarded
> Forwarded receipt-handled $label1 $label2 $label4 rispondere $MDNSent
> $label5 $label3 NonJunk JUNK $has_cal \*)] Flags permitted.
>
> * 8113 EXISTS
>
> * 0 RECENT
>
> * OK [UNSEEN 8099] First unseen.
>
> * OK [UIDVALIDITY 1500023700] UIDs valid
>
> * OK [UIDNEXT 19035] Predicted next UID
>
> * OK [HIGHESTMODSEQ 21050] Highest
>
> 1 OK [READ-WRITE] Select completed (0.001 secs).
>
> 1 UID SORT (REVERSE ARRIVAL) UTF-8 (NOT DELETED OR (SUBJECT "server")
> (FROM "pierf"))
>
> * SORT 18995 18341 18283 18280 18252 18176 18165 18164 18159 18127 18091
> 18076 18075 18074 18055 18054 18037 18035 18010 18008 17984 17949 17937
> 17936 17904 17873 17872 17870 17868 17860 17832 17828 17827 17778 17759
> 17746 17680 17678 17677 17676 17583 17519 17497 17288 17287 17248 17247
> 17227 17070 17001 16974 16842 16841 16682 16614 16596 16590 16586 16558
> 16499 16444 16442 16440 16434 16397 16331 16330 16329 16307 16303 16302
> 16301 16300 16299 16292 16289 16288 16287 16252 16226 16215 16212 16197
> 16193 16184 16121 16018 15977 15978 15684 15682 15678 15675 15662 15661
> 15646 15630 15616 15615 15612 15610 15598 15586 15570 15567 15565 15564
> 15563 15562 15561 15482 15481 15469 15468 15436 15435 15416 15413 15412
> 15410 15365 15364 15361 15321 15315 15314 15309 15304 15276 15275 15274
> 15273 15265 15256 15254 15252 15247 15246 15245 15237 15236 15235 15233
> 15232 15230 15229 15228 15225 15218 15217 15182 15153 15120 15119 15118
> 15117 15068 15028 15027 14975 14970 14964 14961 14954 14953 14949 14939
> 14935 14934 14921 14920 14919 14918 14915 14913 14912 14909 14893 14892
> 14826 14825 14824 14823 14774 14752 14707 14698 14682 14671 14657 14651
> 14650 14642 14641 14640 14639 14633 14632 14629 14628 14623 14617 14615
> 14608 14590 14589 14588 14550 14549 14548 14542 14522 14488 14472 14467
> 14466 14465 14463 14458 14447 14430 14429 14412 14411 14410 14409 14405
> 14404 14401 14397 14395 14394 14386 14382 14380 14378 14374 14342 14341
> 14340 14323 14320 14319 14318 14315 14314 14313 14312 14311 14297 14296
> 14286 14284 14282 14279 14242 14200 14164 14165 14153 14150 14149 14141
> 14135 14072 14056 13988 13972 13948 13897 13856 13827 13656 13654 13649
> 13648 13633 13625 13608 13601 13582 13535 13511 13415 13386 13375 13365
> 13345 13342 13321 13319 13317 13310 13287 13238 13173 13132 13095 13050
> 13022 13016 12954 12925 12903 12875 12802 12794 12780 12771 12770 12759
> 12752 12749 12745 12730 12723 12700 12699 12677 12675 12629 12625 12586
> 12582 12581 12427 12401 12391 12339 12338 12287 12243 12227 12179 12178
> 12112 12111 12110 12069 12063 12044 12000 11938 11935 11931 11925 11924
> 11899 11882 11778 11763 11702 11696 11585 11581 11579 11551 11487 11475
> 11438 11398 11397 11378 11298 11274 11247 11141 11111 11107 11067 11020
> 11019 10874 10796 10670 10669 10583 10581 10574 10440 10392 10381 10358
> 10308 10242 10235 10180 10068 10067 9935 9933 9923 9908 9907 9905 9883 9713
> 9712 9465 9446 9440 9390 9355 9328 9277 9270 9239 9143 9142 9104 9083 9082
> 8955 8886 8883 8875 8863 8850 8805 8804 8803 8802 8801 8799 8798 8797 8796
> 8795 8756 8755 8719 8715 8688 8663 8661 8659 8658 8606 8605 8585 8543 8539
> 8525 8523 8522 8520 8519 8467 8464 8443 8438 8435 8434 8421 8407 8398 8389
> 8385 8381 8303 8253 8250 8195 8192 8073 8061 8047 7974 7932 7931 7882 7800
> 7757 7722 7716 7692 7672
>
> 1 OK Sort completed (0.103 secs).
>
>
>
> I tried also moving sogo to a CentOS 7.5 machine and the problem persists.
>
>
>
> Thanks
>
>
>
> Il giorno sab 17 nov 2018 alle ore 09:57 Thomas Führer <[email protected]> ha
> scritto:
>
> 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) "/" Trash
>
> S[0x55c14c282830]: * LIST (\HasNoChildren \Sent) "/" Sent
>
> S[0x55c14c282830]: * LIST (\HasNoChildren \Drafts) "/" Drafts
>
> S[0x55c14c282830]: * LIST (\HasNoChildren \Archive) "/" Archive
>
> S[0x55c14c282830]: * LIST (\Noselect \HasNoChildren) "/" Public
>
> S[0x55c14c282830]: * LIST (\HasNoChildren) "/" INBOX
>
> S[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
>
> --
> [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
>
> --
> [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
>
> --
> [email protected]
> https://inverse.ca/sogo/lists
> --
> [email protected]
> https://inverse.ca/sogo/lists
>
-- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to