6.0.0-beta1
7/13/25

[#12212] ActiveSync: Email searches return empty emails
Summary ActiveSync: Email searches return empty emails
Queue Synchronization
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester simon (at) simonandkate (dot) net
Created 04/23/2013 (4464 days ago)
Due
Updated 06/24/2013 (4402 days ago)
Assigned 06/07/2013 (4419 days ago)
Resolved 06/12/2013 (4414 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
06/24/2013 12:55:29 PM simon (at) simonandkate (dot) net Comment #11 Reply to this comment
Can confirm that this is resolved for me on iOS. Thanks :)
06/12/2013 06:34:45 PM Michael Rubinsky Comment #10
State ⇒ Resolved
Reply to this comment
Horde_ActiveSync 2.5.0
06/12/2013 06:30:50 PM Git Commit Comment #9 Reply to this comment
Changes have been made in Git (master):

commit 7483483eb07bf192a1bf10f0ab0fa879d5eda431
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Wed Jun 12 14:30:11 2013 -0400

     proper fix for Bug: 12212

  .../Horde/ActiveSync/Request/ItemOperations.php    |    4 +---
  1 files changed, 1 insertions(+), 3 deletions(-)

http://git.horde.org/horde-git/-/commit/7483483eb07bf192a1bf10f0ab0fa879d5eda431
06/12/2013 06:26:11 PM Git Commit Comment #8 Reply to this comment
Changes have been made in Git (master):

commit 9cbdb9336621fb1151ae0a68e1aa2c21533bdbd5
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Wed Jun 12 14:24:06 2013 -0400

     SEARCHLONGID is already in the backend server format. Dont' convert it.

     Bug: 12212

  .../Horde/ActiveSync/Request/ItemOperations.php    |    3 ---
  1 files changed, 0 insertions(+), 3 deletions(-)

http://git.horde.org/horde-git/-/commit/9cbdb9336621fb1151ae0a68e1aa2c21533bdbd5
06/12/2013 05:17:59 PM Michael Rubinsky Queue ⇒ Synchronization
Version ⇒ Git master
 
06/07/2013 02:01:56 PM Michael Rubinsky Comment #7
State ⇒ Assigned
Reply to this comment
Cannot reproduce, is:

INBOX.Saved Emails.Computer Stuff.Mailing Lists.Horde

the mailbox you were having trouble with in the other ticket? Your 
error is caused by it not being able to find the mailbox the email in 
the search result is located in.

Either way, we should catch the error and not let it take down the 
entire search request.
06/07/2013 04:50:59 AM simon (at) simonandkate (dot) net Comment #6
New Attachment: androidsearch.txt Download
Reply to this comment
Incidentally, this appears to work fine on my Android 4.2.2 S4. It's 
just on the iOS devices that it falls over.

I have attached the same search done on the Android - much more returned...
06/07/2013 04:44:35 AM simon (at) simonandkate (dot) net Comment #5 Reply to this comment
Still does it for me with 5.1.

I deleted the AS device log, did an old search, tapped on the email 
(could see two lines in the summary as usual), and the email shows 
"This message has not been downloaded from the server."

AS device log for this period shows:

2013-06-07T04:39:36+00:00 INFO: [4782] 
Horde_Core_ActiveSync_Driver::authenticate() attempt for simon
2013-06-07T04:39:36+00:00 DEBUG: [4782] SEARCH request received for user simon
2013-06-07T04:39:36+00:00 INFO: [4782] Device entry exists for 
APPLDLXFT5X3DFJ2, updating userAgent and version.
2013-06-07T04:39:37+00:00 INFO: [4782] Request being handled for 
device: APPLDLXFT5X3DFJ2 Supporting protocol version: 14.1
2013-06-07T04:39:37+00:00 INFO: [APPLDLXFT5X3DFJ2] Handling SEARCH command.
2013-06-07T04:39:37+00:00 DEBUG: [4782] I  <Search:Search>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I   <Search:Store>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I    <Search:Name>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I      Mailbox
2013-06-07T04:39:37+00:00 DEBUG: [4782] I    </Search:Name>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I    <Search:Query>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I     <Search:And>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I      <FolderType>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I        Email
2013-06-07T04:39:37+00:00 DEBUG: [4782] I      </FolderType>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I      <FolderId>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I        9796032d
2013-06-07T04:39:37+00:00 DEBUG: [4782] I      </FolderId>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I      <Search:FreeText>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I        Maintenance tasks
2013-06-07T04:39:37+00:00 DEBUG: [4782] I      </Search:FreeText>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I     </Search:And>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I    </Search:Query>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I    <Search:Options>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I     <Search:Range>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I       0-99
2013-06-07T04:39:37+00:00 DEBUG: [4782] I     </Search:Range>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I     <AirSyncBase:BodyPreference>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I      <AirSyncBase:Type>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I        1
2013-06-07T04:39:37+00:00 DEBUG: [4782] I      </AirSyncBase:Type>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I      <AirSyncBase:TruncationSize>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I        500
2013-06-07T04:39:37+00:00 DEBUG: [4782] I      </AirSyncBase:TruncationSize>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I      <AirSyncBase:AllOrNone>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I        0
2013-06-07T04:39:37+00:00 DEBUG: [4782] I      </AirSyncBase:AllOrNone>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I     </AirSyncBase:BodyPreference>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I     <MIMESupport>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I       0
2013-06-07T04:39:37+00:00 DEBUG: [4782] I     </MIMESupport>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I     <Search:DeepTraversal />
2013-06-07T04:39:37+00:00 DEBUG: [4782] I     <Search:RebuildResults />
2013-06-07T04:39:37+00:00 DEBUG: [4782] I    </Search:Options>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I   </Search:Store>
2013-06-07T04:39:37+00:00 DEBUG: [4782] I  </Search:Search>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O  <Search:Search>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O   <Search:Status>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O    1
2013-06-07T04:39:37+00:00 DEBUG: [4782] O   </Search:Status>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O   <Search:Response>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O    <Search:Store>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O     <Search:Status>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      1
2013-06-07T04:39:37+00:00 DEBUG: [4782] O     </Search:Status>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O     <Search:Result>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      <FolderType>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       Email
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      </FolderType>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      <Search:LongId>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       INBOX.Saved 
Emails.Computer Stuff.Mailing Lists.Horde:12705
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      </Search:LongId>
2013-06-07T04:39:37+00:00 INFO: [4782] Found serverid for INBOX.Saved 
Emails.Computer Stuff.Mailing Lists.Horde: 9796032d
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      <FolderId>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       9796032d
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      </FolderId>
2013-06-07T04:39:37+00:00 INFO: [4782] 
Horde_Core_ActiveSync_Driver::getMessage(INBOX.Saved Emails.Computer 
Stuff.Mailing Lists.Horde, 12705)
2013-06-07T04:39:37+00:00 INFO: Sending PLAINTEXT Message.
2013-06-07T04:39:37+00:00 INFO: Validating UTF-8 data coming from utf-8
2013-06-07T04:39:37+00:00 INFO: FETCHING VERB
2013-06-07T04:39:37+00:00 INFO: RETURNING VERB
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      <Search:Properties>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:To>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O         
imp@lists.horde.org,hmoreno@gmv.com,slusarz@horde.org
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:To>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:From>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        Héctor Moreno Blanco 
<hmoreno@gmv.com>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:From>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:Subject>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        Re: [imp] disable 
maintenance tasks
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:Subject>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:ThreadTopic>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        Re: [imp] disable 
maintenance tasks
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:ThreadTopic>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:DateReceived>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        2012-12-12T09:18:53.000Z
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:DateReceived>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:DisplayTo>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        Héctor Moreno 
Blanco;Michael M
  Slusarz;imp@lists.horde.org
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:DisplayTo>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:Importance>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        1
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:Importance>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:Read>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        1
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:Read>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:MessageClass>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        IPM.Note
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:MessageClass>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:Reply-To>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        Héctor Moreno Blanco 
<hmoreno@gmv.com>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:Reply-To>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:InternetCPID>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        65001
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:InternetCPID>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <AirSyncBase:NativeBodyType>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        1
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </AirSyncBase:NativeBodyType>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <AirSyncBase:Body>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        <AirSyncBase:Type>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O         1
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        </AirSyncBase:Type>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O         
<AirSyncBase:EstimatedDataSize>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O         4774
2013-06-07T04:39:37+00:00 DEBUG: [4782] O         
</AirSyncBase:EstimatedDataSize>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        <AirSyncBase:Truncated>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O         1
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        </AirSyncBase:Truncated>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        <AirSyncBase:Data>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O         Hello Michael,

Any help about disabling login tasks would be very appreciated. My 
efforts to make that login tasks page disappear have been 
unsuccessful...

I know that I have to disable them and in the DB delete these tasks 
for the users. Right?

Users complain quite a lot about this.


Thank you very much in advanced.

Kind regards.



Héctor Moreno Blanco
División de Seguridad e Infraestructuras /
Security and Infrastructures Division
GMV
Isaac Newton, 11
P.T.M. Tres Cant
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        </AirSyncBase:Data>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </AirSyncBase:Body>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:Flag/>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:ContentClass>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        urn:content-classes:message
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:ContentClass>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      </Search:Properties>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O     </Search:Result>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O     <Search:Range>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      0
2013-06-07T04:39:37+00:00 DEBUG: [4782] O     </Search:Range>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O     <Search:Total>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      3
2013-06-07T04:39:37+00:00 DEBUG: [4782] O     </Search:Total>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O     <Search:Result>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      <FolderType>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       Email
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      </FolderType>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      <Search:LongId>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       INBOX.Saved 
Emails.Computer Stuff.Mailing Lists.Horde:13445
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      </Search:LongId>
2013-06-07T04:39:37+00:00 INFO: [4782] Found serverid for INBOX.Saved 
Emails.Computer Stuff.Mailing Lists.Horde: 9796032d
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      <FolderId>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       9796032d
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      </FolderId>
2013-06-07T04:39:37+00:00 INFO: [4782] 
Horde_Core_ActiveSync_Driver::getMessage(INBOX.Saved Emails.Computer 
Stuff.Mailing Lists.Horde, 13445)
2013-06-07T04:39:37+00:00 INFO: Sending PLAINTEXT Message.
2013-06-07T04:39:37+00:00 INFO: Validating UTF-8 data coming from utf-8
2013-06-07T04:39:37+00:00 INFO: FETCHING VERB
2013-06-07T04:39:37+00:00 INFO: RETURNING VERB
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      <Search:Properties>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:To>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O         
imp@lists.horde.org,slusarz@horde.org
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:To>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:From>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        Héctor Moreno Blanco 
<hmoreno@gmv.com>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:From>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:Subject>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        Re: [imp] disable 
maintenance tasks
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:Subject>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:ThreadTopic>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        Re: [imp] disable 
maintenance tasks
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:ThreadTopic>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:DateReceived>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        2013-02-04T10:22:13.000Z
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:DateReceived>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:DisplayTo>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        Michael M 
Slusarz;imp@lists.horde.org
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:DisplayTo>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:Importance>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        1
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:Importance>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:Read>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        1
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:Read>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:MessageClass>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        IPM.Note
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:MessageClass>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:Reply-To>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        Héctor Moreno Blanco 
<hmoreno@gmv.com>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:Reply-To>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:InternetCPID>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        65001
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:InternetCPID>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <AirSyncBase:NativeBodyType>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        1
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </AirSyncBase:NativeBodyType>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <AirSyncBase:Body>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        <AirSyncBase:Type>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O         1
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        </AirSyncBase:Type>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O         
<AirSyncBase:EstimatedDataSize>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O         5283
2013-06-07T04:39:37+00:00 DEBUG: [4782] O         
</AirSyncBase:EstimatedDataSize>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        <AirSyncBase:Truncated>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O         1
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        </AirSyncBase:Truncated>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        <AirSyncBase:Data>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O         Hello everyone,

Any help about disabling the maintenance tasks? I haven't found out 
how to disable these tasks in the prefs.php files.

Thank you very much in advanced.

Kind regards.

Héctor Moreno Blanco.

-----Mensaje original-----
De: Héctor Moreno Blanco
Enviado el: miércoles, 12 de diciembre de 2012 10:19
Para: Héctor Moreno Blanco; Michael M Slusarz; imp@lists.horde.org
Asunto: RE: [imp] disable maintenance tasks

Hello Michael,

Any help about disabling login tasks wou
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        </AirSyncBase:Data>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </AirSyncBase:Body>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:Flag/>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:ContentClass>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        urn:content-classes:message
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:ContentClass>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      </Search:Properties>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O     </Search:Result>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O     <Search:Range>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      0
2013-06-07T04:39:37+00:00 DEBUG: [4782] O     </Search:Range>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O     <Search:Total>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      3
2013-06-07T04:39:37+00:00 DEBUG: [4782] O     </Search:Total>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O     <Search:Result>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      <FolderType>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       Email
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      </FolderType>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      <Search:LongId>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       INBOX.Saved 
Emails.Computer Stuff.Mailing Lists.Horde:13449
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      </Search:LongId>
2013-06-07T04:39:37+00:00 INFO: [4782] Found serverid for INBOX.Saved 
Emails.Computer Stuff.Mailing Lists.Horde: 9796032d
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      <FolderId>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       9796032d
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      </FolderId>
2013-06-07T04:39:37+00:00 INFO: [4782] 
Horde_Core_ActiveSync_Driver::getMessage(INBOX.Saved Emails.Computer 
Stuff.Mailing Lists.Horde, 13449)
2013-06-07T04:39:37+00:00 INFO: Sending PLAINTEXT Message.
2013-06-07T04:39:37+00:00 INFO: Validating UTF-8 data coming from utf-8
2013-06-07T04:39:37+00:00 INFO: FETCHING VERB
2013-06-07T04:39:37+00:00 INFO: RETURNING VERB
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      <Search:Properties>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:To>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        imp@lists.horde.org
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:To>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:From>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        Oscar del Rio 
<delrio@mie.utoronto.ca>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:From>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:Subject>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        Re: [imp] disable 
maintenance tasks
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:Subject>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:ThreadTopic>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        Re: [imp] disable 
maintenance tasks
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:ThreadTopic>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:DateReceived>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        2013-02-04T15:56:34.000Z
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:DateReceived>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:DisplayTo>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        imp@lists.horde.org
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:DisplayTo>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:Importance>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        1
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:Importance>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:Read>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        1
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:Read>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:MessageClass>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        IPM.Note
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:MessageClass>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:Reply-To>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        Oscar del Rio 
<delrio@mie.utoronto.ca>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:Reply-To>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:InternetCPID>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        65001
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:InternetCPID>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <AirSyncBase:NativeBodyType>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        1
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </AirSyncBase:NativeBodyType>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <AirSyncBase:Body>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        <AirSyncBase:Type>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O         1
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        </AirSyncBase:Type>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O         
<AirSyncBase:EstimatedDataSize>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O         694
2013-06-07T04:39:37+00:00 DEBUG: [4782] O         
</AirSyncBase:EstimatedDataSize>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        <AirSyncBase:Truncated>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O         1
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        </AirSyncBase:Truncated>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        <AirSyncBase:Data>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O         On 02/ 4/13 05:22 
AM, Héctor Moreno Blanco wrote:
Any help about disabling the maintenance tasks? I haven't found out 
how to disable these tasks in the prefs.php files.
Disable the features that trigger the maintenance tasks. For example,
for the monthly sent-mail archiving:

/imp/config/prefs.local.php:

<?php
$_prefs['rename_sentmail_monthly']['value'] = 0;
$_prefs['delete_sentmail_monthly_keep']['value'] = 0;
$_prefs['purge_sentmail_interval']['value'] = 0;

Users can enable/disable them
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        </AirSyncBase:Data>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </AirSyncBase:Body>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:Flag/>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       <POOMMAIL:ContentClass>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O        urn:content-classes:message
2013-06-07T04:39:37+00:00 DEBUG: [4782] O       </POOMMAIL:ContentClass>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      </Search:Properties>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O     </Search:Result>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O     <Search:Range>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      0
2013-06-07T04:39:37+00:00 DEBUG: [4782] O     </Search:Range>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O     <Search:Total>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O      3
2013-06-07T04:39:37+00:00 DEBUG: [4782] O     </Search:Total>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O    </Search:Store>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O   </Search:Response>
2013-06-07T04:39:37+00:00 DEBUG: [4782] O  </Search:Search>
2013-06-07T04:39:37+00:00 INFO: [4782] User simon logged off
2013-06-07T04:39:42+00:00 INFO: [4683] 
Horde_Core_ActiveSync_Driver::authenticate() attempt for simon
2013-06-07T04:39:42+00:00 DEBUG: [4683] ITEMOPERATIONS request 
received for user simon
2013-06-07T04:39:42+00:00 INFO: [4683] Device entry exists for 
APPLDLXFT5X3DFJ2, updating userAgent and version.
2013-06-07T04:39:42+00:00 INFO: [4683] Request being handled for 
device: APPLDLXFT5X3DFJ2 Supporting protocol version: 14.1
2013-06-07T04:39:42+00:00 INFO: [APPLDLXFT5X3DFJ2] Handling 
ITEMOPERATIONS command.
2013-06-07T04:39:42+00:00 DEBUG: [4683] I  <ItemOperations:ItemOperations>
2013-06-07T04:39:42+00:00 DEBUG: [4683] I   <ItemOperations:Fetch>
2013-06-07T04:39:42+00:00 DEBUG: [4683] I    <ItemOperations:Store>
2013-06-07T04:39:42+00:00 DEBUG: [4683] I      Mailbox
2013-06-07T04:39:42+00:00 DEBUG: [4683] I    </ItemOperations:Store>
2013-06-07T04:39:42+00:00 DEBUG: [4683] I    <Search:LongId>
2013-06-07T04:39:42+00:00 DEBUG: [4683] I      INBOX.Saved 
Emails.Computer Stuff.Mailing Lists.Horde:13445
2013-06-07T04:39:42+00:00 DEBUG: [4683] I    </Search:LongId>
2013-06-07T04:39:42+00:00 DEBUG: [4683] I    <ItemOperations:Options>
2013-06-07T04:39:42+00:00 DEBUG: [4683] I     <MIMESupport>
2013-06-07T04:39:42+00:00 DEBUG: [4683] I       2
2013-06-07T04:39:42+00:00 DEBUG: [4683] I     </MIMESupport>
2013-06-07T04:39:42+00:00 DEBUG: [4683] I     <AirSyncBase:BodyPreference>
2013-06-07T04:39:42+00:00 DEBUG: [4683] I      <AirSyncBase:Type>
2013-06-07T04:39:42+00:00 DEBUG: [4683] I        4
2013-06-07T04:39:42+00:00 DEBUG: [4683] I      </AirSyncBase:Type>
2013-06-07T04:39:42+00:00 DEBUG: [4683] I     </AirSyncBase:BodyPreference>
2013-06-07T04:39:42+00:00 DEBUG: [4683] I    </ItemOperations:Options>
2013-06-07T04:39:42+00:00 DEBUG: [4683] I   </ItemOperations:Fetch>
2013-06-07T04:39:42+00:00 DEBUG: [4683] I  </ItemOperations:ItemOperations>
2013-06-07T04:39:42+00:00 DEBUG: [4683] O  <ItemOperations:ItemOperations>
2013-06-07T04:39:42+00:00 DEBUG: [4683] O   <ItemOperations:Status>
2013-06-07T04:39:42+00:00 DEBUG: [4683] O    1
2013-06-07T04:39:42+00:00 DEBUG: [4683] O   </ItemOperations:Status>
2013-06-07T04:39:42+00:00 DEBUG: [4683] O   <ItemOperations:Response>
2013-06-07T04:39:42+00:00 DEBUG: [4683] O    <ItemOperations:Fetch>
2013-06-07T04:39:42+00:00 DEBUG: [4683] O     <ItemOperations:Status>
2013-06-07T04:39:42+00:00 DEBUG: [4683] O      1
2013-06-07T04:39:42+00:00 DEBUG: [4683] O     </ItemOperations:Status>
2013-06-07T04:39:42+00:00 DEBUG: [4683] O     <Search:LongId>
2013-06-07T04:39:42+00:00 DEBUG: [4683] O      INBOX.Saved 
Emails.Computer Stuff.Mailing Lists.Horde:13445
2013-06-07T04:39:42+00:00 DEBUG: [4683] O     </Search:LongId>
2013-06-07T04:39:42+00:00 DEBUG: [4683] O     <FolderType>
2013-06-07T04:39:42+00:00 DEBUG: [4683] O      Email
2013-06-07T04:39:42+00:00 DEBUG: [4683] O     </FolderType>
2013-06-07T04:39:42+00:00 INFO: [4683] 
Horde_Core_ActiveSync_Driver::getMessage(, 13445)
2013-06-07T04:39:42+00:00 ERR: Unable to fetch message: Could not open 
mailbox "".
2013-06-07T04:39:42+00:00 ERR: Could not open mailbox "".
2013-06-07T04:39:42+00:00 ERR: Could not open mailbox "".
2013-06-07T04:39:43+00:00 INFO: [1590] 
Horde_Core_ActiveSync_Driver::authenticate() attempt for simon
2013-06-07T04:39:43+00:00 DEBUG: [1590] ITEMOPERATIONS request 
received for user simon
2013-06-07T04:39:43+00:00 INFO: [1590] Device entry exists for 
APPLDLXFT5X3DFJ2, updating userAgent and version.
2013-06-07T04:39:43+00:00 INFO: [1590] Request being handled for 
device: APPLDLXFT5X3DFJ2 Supporting protocol version: 14.1
2013-06-07T04:39:43+00:00 INFO: [APPLDLXFT5X3DFJ2] Handling 
ITEMOPERATIONS command.
2013-06-07T04:39:43+00:00 DEBUG: [1590] I  <ItemOperations:ItemOperations>
2013-06-07T04:39:43+00:00 DEBUG: [1590] I   <ItemOperations:Fetch>
2013-06-07T04:39:43+00:00 DEBUG: [1590] I    <ItemOperations:Store>
2013-06-07T04:39:43+00:00 DEBUG: [1590] I      Mailbox
2013-06-07T04:39:43+00:00 DEBUG: [1590] I    </ItemOperations:Store>
2013-06-07T04:39:43+00:00 DEBUG: [1590] I    <Search:LongId>
2013-06-07T04:39:43+00:00 DEBUG: [1590] I      INBOX.Saved 
Emails.Computer Stuff.Mailing Lists.Horde:13445
2013-06-07T04:39:43+00:00 DEBUG: [1590] I    </Search:LongId>
2013-06-07T04:39:43+00:00 DEBUG: [1590] I    <ItemOperations:Options>
2013-06-07T04:39:43+00:00 DEBUG: [1590] I     <MIMESupport>
2013-06-07T04:39:43+00:00 DEBUG: [1590] I       2
2013-06-07T04:39:43+00:00 DEBUG: [1590] I     </MIMESupport>
2013-06-07T04:39:43+00:00 DEBUG: [1590] I     <AirSyncBase:BodyPreference>
2013-06-07T04:39:43+00:00 DEBUG: [1590] I      <AirSyncBase:Type>
2013-06-07T04:39:43+00:00 DEBUG: [1590] I        4
2013-06-07T04:39:43+00:00 DEBUG: [1590] I      </AirSyncBase:Type>
2013-06-07T04:39:43+00:00 DEBUG: [1590] I     </AirSyncBase:BodyPreference>
2013-06-07T04:39:43+00:00 DEBUG: [1590] I    </ItemOperations:Options>
2013-06-07T04:39:43+00:00 DEBUG: [1590] I   </ItemOperations:Fetch>
2013-06-07T04:39:43+00:00 DEBUG: [1590] I  </ItemOperations:ItemOperations>
2013-06-07T04:39:43+00:00 DEBUG: [1590] O  <ItemOperations:ItemOperations>
2013-06-07T04:39:43+00:00 DEBUG: [1590] O   <ItemOperations:Status>
2013-06-07T04:39:43+00:00 DEBUG: [1590] O    1
2013-06-07T04:39:43+00:00 DEBUG: [1590] O   </ItemOperations:Status>
2013-06-07T04:39:43+00:00 DEBUG: [1590] O   <ItemOperations:Response>
2013-06-07T04:39:43+00:00 DEBUG: [1590] O    <ItemOperations:Fetch>
2013-06-07T04:39:43+00:00 DEBUG: [1590] O     <ItemOperations:Status>
2013-06-07T04:39:43+00:00 DEBUG: [1590] O      1
2013-06-07T04:39:43+00:00 DEBUG: [1590] O     </ItemOperations:Status>
2013-06-07T04:39:43+00:00 DEBUG: [1590] O     <Search:LongId>
2013-06-07T04:39:43+00:00 DEBUG: [1590] O      INBOX.Saved 
Emails.Computer Stuff.Mailing Lists.Horde:13445
2013-06-07T04:39:43+00:00 DEBUG: [1590] O     </Search:LongId>
2013-06-07T04:39:43+00:00 DEBUG: [1590] O     <FolderType>
2013-06-07T04:39:43+00:00 DEBUG: [1590] O      Email
2013-06-07T04:39:43+00:00 DEBUG: [1590] O     </FolderType>
2013-06-07T04:39:43+00:00 INFO: [1590] 
Horde_Core_ActiveSync_Driver::getMessage(, 13445)
2013-06-07T04:39:43+00:00 ERR: Unable to fetch message: Could not open 
mailbox "".
2013-06-07T04:39:43+00:00 ERR: Could not open mailbox "".
2013-06-07T04:39:43+00:00 ERR: Could not open mailbox "".
05/01/2013 08:35:26 PM Michael Rubinsky Comment #4
Assigned to Michael Rubinsky
State ⇒ Resolved
Version ⇒ Git master
Reply to this comment
Fixed for Horde 5.1/ActiveSync 2.4.0.

Wasn't able to reproduce it on 5.0.
05/01/2013 08:31:08 PM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (master):

commit ebebf6bd5cc03e2adf9abc1e40045e12207041b3
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Wed May 1 16:29:43 2013 -0400

     Fix parsing bodyprefs/bodypartprefs/mimesupport elements from 
search requests.

     Bug: 12212

  .../lib/Horde/ActiveSync/Request/Search.php        |   19 ++-
  .../lib/Horde/ActiveSync/Request/Sync.php          |   17 ++-
  .../lib/Horde/ActiveSync/Request/SyncBase.php      |  186 
++++++++++----------
  3 files changed, 115 insertions(+), 107 deletions(-)

http://git.horde.org/horde-git/-/commit/ebebf6bd5cc03e2adf9abc1e40045e12207041b3
05/01/2013 08:31:03 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit c1261a630ca1a0962eff4a298d52e6b0b856e7e2
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Wed May 1 16:28:28 2013 -0400

     Fix constant name

     Related to Bug: 12212

  .../Horde/ActiveSync/Request/ItemOperations.php    |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/c1261a630ca1a0962eff4a298d52e6b0b856e7e2
04/23/2013 11:38:50 PM simon (at) simonandkate (dot) net Comment #1
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Base
Summary ⇒ ActiveSync: Email searches return empty emails
Type ⇒ Bug
Reply to this comment
On all of my iOS devices, email sync now appears to be working nicely, 
but for one thing:

If I search for an email in a folder, the device does a quick local 
scan (which works fine, emails found locally do not display this 
issue), then says "Searching on Server...".

From that point on, any emails it comes back with (including those 
that are also still in the device's store) return "This message has 
not been downloaded from the server" in the body. The two line body 
preview that sits under the email Subject in the list displays, but 
the main body is empty.

Message download failure does occasionally happen in iOS, and is 
usually able to be worked around by initiating a reply or forward and 
answering "Yes" to "Download the rest of the messge first?" but even 
that fails.

I will generate a new activesync log and catch this over the next 
couple of days and post it here.

Saved Queries