[horde] ActiveSync Search on Android Gmail app

Michael J Rubinsky mrubinsk at horde.org
Thu Nov 10 18:18:49 UTC 2022


Quoting Volker Jordan <mx at e24.cx>:

> Hi,
>
>
>
> does anyone use the ActiveSync on an Android 12 phone in combination  
> of the Gmail app ?

I do.

>
> Everything works beside of the search.
>
> After I entered the search term, the phone seem to do something, and  
> after some seconds the message shows up:
>
> There was a problem while syncing this folder. Please try again later.

The search request looks correct. I noticed that it is searching ALL  
mailboxes. It might be taking a while for your IMAP server to actually  
perform the search - especially if you don't have any indexing enabled  
on the IMAP server. It's possible the connection is timing out before  
any response is received.

I would start by 1) Trying a search in a specific mailbox, perhaps a  
smaller one. And, 2) Look at your IMAP server logs to see if there is  
any performance issues you can solve there.



> The log only shows the search request:
>
>
>
> [17713][2022-11-10T16:32:21+01:00] INFO:  
> ----------Horde_Core_ActiveSync_Driver::authenticate() attempt for  
> xxx----------
>
> [17713][2022-11-10T16:32:21+01:00] INFO: ----------SEARCH request  
> received for user xxx
>
> [17713][2022-11-10T16:32:21+01:00] >>>: STATE: Device entry exists  
> for ANDROIDxxxxx, updating userAgent, version, and supported.
>
> [17713][2022-11-10T16:32:21+01:00] INFO: ----------Request being  
> handled for device: ANDROIDCxxxx, of type: Android, supporting  
> protocol version: 14.1, using Horde_ActiveSync v2.41.9
>
> [17713][2022-11-10T16:32:21+01:00] >>>: GET VARIABLES: Array
>
> (
>
>     [Cmd] => Search
>
>     [User] => xxx
>
>     [DeviceId] => androidxxx
>
>     [DeviceType] => Android
>
> )
>
>
>
> [17713][2022-11-10T16:32:21+01:00] >>>: ----------Device data:  
> a:8:{s:8:"rwstatus";i:0;s:10:"deviceType";s:7:"Android";s:9:"userAgent";s:41:"Android-Mail/2022.09.18.479203120.Release";s:2:"id";s:18:"ANDROIDxxxx";s:4:"user
>
> ";s:6:"xxx";s:9:"supported";b:0;s:9:"policykey";i:0;s:10:"properties";a:14:{s:16:"announcedVersion";s:23:"2.5,12.0,12.1,14.0,14.1";s:9:"userAgent";s:41:"Android-Mail/2022.09.18.479203120.Release";s:7:"version";s:4:"14.1";s:7:
>
> "blocked";N;s:9:"multiplex";i:0;s:14:"Settings:Model";s:4:"A063";s:13:"Settings:IMEI";s:0:"";s:21:"Settings:FriendlyName";s:4:"A063";s:11:"Settings:OS";s:10:"Android  
> 12";s:19:"Settings:OSLanguage";s:0:"";s:20:"Settings:PhoneNumb
>
> er";s:0:"";s:18:"Settings:UserAgent";s:41:"Android-Mail/2022.09.18.479203120.Release";s:23:"Settings:MobileOperator";s:0:"";s:26:"Settings:EnableOutboundSMS";s:0:"";}}
>
> [17713][2022-11-10T16:32:21+01:00] >>>: Handling SEARCH command.
>
> [17713][2022-11-10T16:32:21+01:00] >>>: Creating new  
> Horde_ActiveSync_SyncCache.
>
> [17713][2022-11-10T16:32:21+01:00] I: <Search:Search>
>
> [17713][2022-11-10T16:32:21+01:00] I:  <Search:Store>
>
> [17713][2022-11-10T16:32:21+01:00] I:   <Search:Name>
>
> [17713][2022-11-10T16:32:21+01:00] I:     Mailbox
>
> [17713][2022-11-10T16:32:21+01:00] I:   </Search:Name>
>
> [17713][2022-11-10T16:32:21+01:00] I:   <Search:Query>
>
> [17713][2022-11-10T16:32:21+01:00] I:    <Search:And>
>
> [17713][2022-11-10T16:32:21+01:00] I:     <FolderType>
>
> [17713][2022-11-10T16:32:21+01:00] I:       Email
>
> [17713][2022-11-10T16:32:21+01:00] I:     </FolderType>
>
> [17713][2022-11-10T16:32:21+01:00] I:     <Search:FreeText>
>
> [17713][2022-11-10T16:32:21+01:00] I:       compaq
>
> [17713][2022-11-10T16:32:21+01:00] I:     </Search:FreeText>
>
> [17713][2022-11-10T16:32:21+01:00] I:    </Search:And>
>
> [17713][2022-11-10T16:32:21+01:00] I:   </Search:Query>
>
> [17713][2022-11-10T16:32:21+01:00] I:   <Search:Options>
>
> [17713][2022-11-10T16:32:21+01:00] I:    <Search:RebuildResults />
>
> [17713][2022-11-10T16:32:21+01:00] I:    <Search:DeepTraversal />
>
> [17713][2022-11-10T16:32:21+01:00] I:    <Search:Range>
>
> [17713][2022-11-10T16:32:21+01:00] I:      0-9
>
> [17713][2022-11-10T16:32:21+01:00] I:    </Search:Range>
>
> [17713][2022-11-10T16:32:21+01:00] I:    <AirSyncBase:BodyPreference>
>
> [17713][2022-11-10T16:32:21+01:00] I:     <AirSyncBase:Type>
>
> [17713][2022-11-10T16:32:21+01:00] I:       2
>
> [17713][2022-11-10T16:32:21+01:00] I:     </AirSyncBase:Type>
>
> [17713][2022-11-10T16:32:21+01:00] I:     <AirSyncBase:TruncationSize>
>
> [17713][2022-11-10T16:32:21+01:00] I:       20000
>
> [17713][2022-11-10T16:32:21+01:00] I:     </AirSyncBase:TruncationSize>
>
> [17713][2022-11-10T16:32:21+01:00] I:    </AirSyncBase:BodyPreference>
>
> [17713][2022-11-10T16:32:21+01:00] I:   </Search:Options>
>
> [17713][2022-11-10T16:32:21+01:00] I:  </Search:Store>
>
> [17713][2022-11-10T16:32:21+01:00] I: </Search:Search>
>
>
>
> Regards
>
> Volker
>
>
>
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-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: 9386 bytes
Desc: PGP Public Key
URL: <https://lists.horde.org/archives/horde/attachments/20221110/8af85d57/attachment-0001.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/horde/attachments/20221110/8af85d57/attachment-0001.sig>


More information about the horde mailing list