6.0.0-beta1
7/3/25

[#13878] Search for old mail, reply results in errors
Summary Search for old mail, reply results in errors
Queue Synchronization
Queue Version FRAMEWORK_5_2
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester simon (at) simonandkate (dot) net
Created 02/22/2015 (3784 days ago)
Due
Updated 03/04/2015 (3774 days ago)
Assigned
Resolved 02/23/2015 (3783 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/04/2015 09:24:41 PM simon (at) simonandkate (dot) net Comment #7 Reply to this comment
Yes I did... Have now just pushed to 2.19.2 released yesterday as well.

My wife's phone isn't here though at the moment, I'll retry later.
03/04/2015 01:54:04 PM Michael Rubinsky Comment #6 Reply to this comment
Sorry. My comment earlier about it being fixed in Horde_ActiveSync was 
incorrect. The fix was actually in Horde_Core 2.19.1. I can verify 
locally that it works with the fix and is broken again after reverting 
it.

Do you have Core 2.19.1 installed?
03/04/2015 10:33:09 AM simon (at) simonandkate (dot) net Comment #5 Reply to this comment
Whole device log entry:

2015-03-04T20:22:58+10:00 INFO: [1517] SMARTREPLY request received for 
user katie
2015-03-04T20:22:58+10:00 INFO: [1517] Device entry exists for 
APPLC8QLF107FL01, updating userAgent and version.
2015-03-04T20:22:58+10:00 INFO: [1517] Request being handled for 
device: APPLC8QLF107FL01, Supporting protocol version: 14.1, Using 
Horde_ActiveSync v2.26.0
2015-03-04T20:22:58+10:00 INFO: [1517] GET VARIABLES: Array
2015-03-04T20:22:58+10:00 INFO: [1517] Handling SENDMAIL command with Wbxml.
2015-03-04T20:22:58+10:00 DEBUG: [1517] I  <ComposeMail:SmartReply>
2015-03-04T20:22:58+10:00 DEBUG: [1517] I   <ComposeMail:ClientId>
2015-03-04T20:22:58+10:00 DEBUG: [1517] I     
3DFB2622-65D2-4545-B45A-F434A66DF759
2015-03-04T20:22:58+10:00 DEBUG: [1517] I   </ComposeMail:ClientId>
2015-03-04T20:22:58+10:00 DEBUG: [1517] I   <ComposeMail:SaveInSentItems />
2015-03-04T20:22:58+10:00 DEBUG: [1517] I   <ComposeMail:ReplaceMime />
2015-03-04T20:22:58+10:00 DEBUG: [1517] I   <ComposeMail:Source>
2015-03-04T20:22:58+10:00 DEBUG: [1517] I    <ComposeMail:LongId>
2015-03-04T20:22:58+10:00 DEBUG: [1517] I      INBOX:11498
2015-03-04T20:22:58+10:00 DEBUG: [1517] I    </ComposeMail:LongId>
2015-03-04T20:22:58+10:00 DEBUG: [1517] I   </ComposeMail:Source>
2015-03-04T20:22:58+10:00 DEBUG: [1517] I   <ComposeMail:MIME>
2015-03-04T20:22:58+10:00 DEBUG: [1517] I     [3349 bytes of content]
2015-03-04T20:22:58+10:00 DEBUG: [1517] I   </ComposeMail:MIME>
2015-03-04T20:22:58+10:00 DEBUG: [1517] I  </ComposeMail:SmartReply>
2015-03-04T20:22:58+10:00 ERR: [1517] 
Horde_ActiveSync_Collections::getBackendIdForFolderUid failed because 
folder was not found in cache.
03/04/2015 10:27:27 AM simon (at) simonandkate (dot) net Comment #4 Reply to this comment
Sorry to bear bad news... :(

Still not working.

I have updated to AS 2.26.0, exact same behaviour still happens.

I searched on the iPhone 5c and found an email from me to my wife from 
2013, replied to it, "rejected by server".

Went into outbox, send succeeds.

2015-03-04T20:22:58+10:00 ERR: [1517] 
Horde_ActiveSync_Collections::getBackendIdForFolderUid failed because 
folder was not found in cache.
2015-03-04T20:22:58+10:00 ERR: Folder not found in cache.
02/23/2015 04:36:26 PM Michael Rubinsky Comment #3
Assigned to Michael Rubinsky
State ⇒ Resolved
Reply to this comment
(Hopefully) fixed in Horde_ActiveSync 2.26.0
02/23/2015 04:26:15 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit 4a332474e763829e6fa3179add18e1f2d9c5604f
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Mon Feb 23 11:25:11 2015 -0500

     Some clients (incorrectly) use LONGID with SMART[FORWARD|REPLY].

     Bug: 13878

  .../Core/lib/Horde/Core/ActiveSync/Driver.php      |   35 ++++++++++++-------
  1 files changed, 22 insertions(+), 13 deletions(-)

http://github.com/horde/horde/commit/4a332474e763829e6fa3179add18e1f2d9c5604f
02/22/2015 10:38:00 AM simon (at) simonandkate (dot) net Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Search for old mail, reply results in errors
Queue ⇒ Synchronization
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
My wife has had this happen a couple of times:

iPhone 5S, iOS8. Only a week of email is synced. Search for an email 
that is older than a week. Reply to the found email:

Phone says mail rejected.

Device log:

2015-02-21T21:34:43+10:00 INFO: [18988] 
Horde_Core_ActiveSync_Driver::authenticate() attempt for katie
2015-02-21T21:34:43+10:00 INFO: [18988] SMARTREPLY request received 
for user katie
2015-02-21T21:34:43+10:00 INFO: [18988] Device entry exists for 
APPLC8QLF107FL01, updating userAgent and version.
2015-02-21T21:34:43+10:00 INFO: [18988] Request being handled for 
device: APPLC8QLF107FL01, Supporting protocol version: 14.1, Using 
Horde_ActiveSync v2.23.0
2015-02-21T21:34:43+10:00 INFO: [18988] GET VARIABLES: Array
2015-02-21T21:34:43+10:00 INFO: [18988] Handling SENDMAIL command with Wbxml.
2015-02-21T21:34:43+10:00 DEBUG: [18988] I  <ComposeMail:SmartReply>
2015-02-21T21:34:43+10:00 DEBUG: [18988] I   <ComposeMail:ClientId>
2015-02-21T21:34:43+10:00 DEBUG: [18988] I     
6F2CB491-1C08-4CB7-AE9F-632919D12A44
2015-02-21T21:34:43+10:00 DEBUG: [18988] I   </ComposeMail:ClientId>
2015-02-21T21:34:43+10:00 DEBUG: [18988] I   <ComposeMail:SaveInSentItems />
2015-02-21T21:34:43+10:00 DEBUG: [18988] I   <ComposeMail:ReplaceMime />
2015-02-21T21:34:43+10:00 DEBUG: [18988] I   <ComposeMail:Source>
2015-02-21T21:34:43+10:00 DEBUG: [18988] I    <ComposeMail:LongId>
2015-02-21T21:34:43+10:00 DEBUG: [18988] I      INBOX:25044
2015-02-21T21:34:43+10:00 DEBUG: [18988] I    </ComposeMail:LongId>
2015-02-21T21:34:43+10:00 DEBUG: [18988] I   </ComposeMail:Source>
2015-02-21T21:34:43+10:00 DEBUG: [18988] I   <ComposeMail:MIME>
2015-02-21T21:34:43+10:00 DEBUG: [18988] I     [3882 bytes of content]
2015-02-21T21:34:43+10:00 DEBUG: [18988] I   </ComposeMail:MIME>
2015-02-21T21:34:43+10:00 DEBUG: [18988] I  </ComposeMail:SmartReply>
2015-02-21T21:34:43+10:00 ERR: [18988] 
Horde_ActiveSync_Collections::getBackendIdForFolderUid failed because 
folder was not found in cache.
2015-02-21T21:34:43+10:00 ERR: Folder not found in cache.

The mail sits in the phone's outbox. Going into the outbox, into the 
mail, and 'send' then successfully sends the email.

Saved Queries