6.0.0-beta1
7/21/25

[#13198] Cannot delete email using Activesync
Summary Cannot delete email using Activesync
Queue Synchronization
Queue Version Git master
Type Bug
State No Feedback
Priority 1. Low
Owners
Requester thomas.michel (at) vermessung-michel (dot) de
Created 05/21/2014 (4079 days ago)
Due
Updated 06/07/2014 (4062 days ago)
Assigned 05/21/2014 (4079 days ago)
Resolved 06/07/2014 (4062 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
06/07/2014 09:04:10 PM thomas (dot) michel (at) vermessung-michel (dot) de Comment #10 Reply to this comment
Hi,

I sadly can't reproduce it any more. I deleted the hooks file as I did 
not need it any more and everything started working again.

[Show Quoted Text - 16 lines]
06/07/2014 08:17:10 PM mail-bug (dot) horde (dot) org (at) till-wiese (dot) de Comment #9 Reply to this comment
Hey,
I saw you changed the state to "No Feedback". As much as it applies to 
me, I'm waiting for Android 4.4.3 for the Moto G. I tested the .APKs 
already and it seems, I now can delete items from the Inbox. I'll give 
further feedback as soon as 4.4.3 is officially released for the Moto 
G and I could install and test it.

Greetings
m3adow
06/07/2014 07:57:32 PM Michael Rubinsky State ⇒ No Feedback
 
05/28/2014 01:43:29 PM Michael Rubinsky Comment #8 Reply to this comment

[Show Quoted Text - 11 lines]
This is very strange. There is nothing about multiplexing that affects 
the mail handling code. Are you sure there were no php errors in the 
hooks file? No extraneous whitespace before or after the php tags?
05/28/2014 01:41:05 PM Michael Rubinsky Comment #7 Reply to this comment

[Show Quoted Text - 13 lines]
Your log shows the exact same thing, and you are also using the same 
base Android version, 4.4.2 (KitKat), which is known to have a broken 
ActiveSync implementation.

05/28/2014 01:39:00 PM Michael Rubinsky Comment #6 Reply to this comment

[Show Quoted Text - 12 lines]
^^^ Your device is not sending ANY DstFldId value. This is supposed to 
contain the folderid of the destination mailbox i.e., the Trash folder 
if this is for a deletion.

[Show Quoted Text - 10 lines]
^^^ This error is a result of not finding the destination mailbox, 
since your client never sent it.

05/28/2014 08:50:53 AM thomas (dot) michel (at) vermessung-michel (dot) de Comment #5 Reply to this comment
Hi,

sounds exactly like the problem I had. Do you use a custom hooks.php? 
I did to allow separate calendars on my android devices (it's 
supported from 4.4.0 but Horde does  mark the devices with a forced 
multiplexed bitmask of 15 which disables it).
Strange thing is, I only changed the forced multiplex bitmask in 
hooks.php. The second thing I noticed I could not see any subolders in 
my mail account any more.

Removing hooks.php solved the problem immediately.

Regards,

Tom.

[Show Quoted Text - 13 lines]
05/27/2014 08:37:44 PM mail-bug (dot) horde (dot) org (at) till-wiese (dot) de Comment #4 Reply to this comment
Hey,

I think I got a similar or even the same Problem. Here are the stats 
of my test device:

Moto G, 4.4.2 Stock Rom, using Stock "E-Mail"-App v4.4.2-1

Here's the synclog: http://pastebin.com/x7EC6TJT

What happens?

When deleting the Mail on my device I shortly see it in the Trash 
Folder before reappearing in my Inbox.
05/21/2014 07:01:44 PM thomas (dot) michel (at) vermessung-michel (dot) de Comment #3 Reply to this comment
Hi,

the device is Android 4.4.2 Omnirom (Cyanogenmod based),
On the device I see the mail I delete for a short period in the Trash 
folder, then it re-appears in the Inbox.
This I can see in the horde log:

2014-05-21T20:54:58+02:00 INFO: [15005] Maximum memory usage for 
ActiveSync request: 6306512 bytes.
2014-05-21T20:55:26+02:00 INFO: [16220] 
Horde_Core_ActiveSync_Driver::authenticate() attempt for tmichel
2014-05-21T20:55:26+02:00 INFO: [16220] MOVEITEMS request received for 
user tmichel
2014-05-21T20:55:26+02:00 INFO: [16220] Device entry exists for 
ANDROIDC237957621, updating userAgent and version.
2014-05-21T20:55:32+02:00 INFO: [16220] Request being handled for 
device: ANDROIDC237957621, Supporting protocol version: 14.1, Using 
Horde_ActiveSync v2.16.1
2014-05-21T20:55:32+02:00 INFO: [16220] Handling MoveItems command.
2014-05-21T20:55:32+02:00 DEBUG: [16220] I  <Move:Moves>
2014-05-21T20:55:32+02:00 DEBUG: [16220] I   <Move:Move>
2014-05-21T20:55:32+02:00 DEBUG: [16220] I    <Move:SrcMsgId>
2014-05-21T20:55:32+02:00 DEBUG: [16220] I      4749
2014-05-21T20:55:32+02:00 DEBUG: [16220] I    </Move:SrcMsgId>
2014-05-21T20:55:32+02:00 DEBUG: [16220] I    <Move:SrcFldId>
2014-05-21T20:55:32+02:00 DEBUG: [16220] I      Fb8412628
2014-05-21T20:55:32+02:00 DEBUG: [16220] I    </Move:SrcFldId>
2014-05-21T20:55:32+02:00 DEBUG: [16220] I    <Move:DstFldId>
2014-05-21T20:55:32+02:00 DEBUG: [16220] I
2014-05-21T20:55:32+02:00 DEBUG: [16220] I    </Move:DstFldId>
2014-05-21T20:55:32+02:00 DEBUG: [16220] I   </Move:Move>
2014-05-21T20:55:32+02:00 DEBUG: [16220] I  </Move:Moves>
2014-05-21T20:55:32+02:00 DEBUG: [16220] O  <Move:Moves>
2014-05-21T20:55:32+02:00 DEBUG: [16220] O   <Move:Response>
2014-05-21T20:55:32+02:00 DEBUG: [16220] O    <Move:SrcMsgId>
2014-05-21T20:55:32+02:00 DEBUG: [16220] O     4749
2014-05-21T20:55:32+02:00 DEBUG: [16220] O    </Move:SrcMsgId>
2014-05-21T20:55:32+02:00 ERR: [16220] 
Horde_ActiveSync_Collections::getBackendIdForFolderUid failed because 
folder was not found in cache.
2014-05-21T20:55:32+02:00 ERR: Folder not found in cache.
2014-05-21T20:55:32+02:00 DEBUG: [16220] O    <Move:Status>
2014-05-21T20:55:32+02:00 DEBUG: [16220] O     1
2014-05-21T20:55:32+02:00 DEBUG: [16220] O    </Move:Status>
2014-05-21T20:55:32+02:00 DEBUG: [16220] O   </Move:Response>
2014-05-21T20:55:32+02:00 DEBUG: [16220] O  </Move:Moves>
2014-05-21T20:55:32+02:00 INFO: [16220] Maximum memory usage for 
ActiveSync request: 5648572 bytes.
2014-05-21T20:55:33+02:00 INFO: [16220] 
Horde_Core_ActiveSync_Driver::authenticate() attempt for tmichel
2014-05-21T20:55:33+02:00 INFO: [16220] SYNC request received for user tmichel
2014-05-21T20:55:33+02:00 INFO: [16220] Device entry exists for 
ANDROIDC237957621, updating userAgent and version.
2014-05-21T20:55:35+02:00 INFO: [16220] Request being handled for 
device: ANDROIDC237957621, Supporting protocol version: 14.1, Using 
Horde_ActiveSync v2.16.1
2014-05-21T20:55:35+02:00 INFO: [16220] Handling SYNC command.
2014-05-21T20:55:35+02:00 INFO: [16220] Checking policykey for device: 
ANDROIDC237957621 user: tmichel
2014-05-21T20:55:35+02:00 INFO: [16220] Stored key: 1183893899
2014-05-21T20:55:35+02:00 INFO: [16220] Policykey: 1183893899 verified.
2014-05-21T20:55:35+02:00 DEBUG: [16220] I  <Synchronize>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I   <Folders>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I    <Folder>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I     <SyncKey>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I       
{537a6d46-6dc4-4dd0-8b8b-4a03c0a80102}41
2014-05-21T20:55:35+02:00 DEBUG: [16220] I     </SyncKey>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I     <FolderId>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I       Fb8412628
2014-05-21T20:55:35+02:00 DEBUG: [16220] I     </FolderId>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I     <DeletesAsMoves>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I       1
2014-05-21T20:55:35+02:00 DEBUG: [16220] I     </DeletesAsMoves>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I     <GetChanges />
2014-05-21T20:55:35+02:00 DEBUG: [16220] I     <WindowSize>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I       10
2014-05-21T20:55:35+02:00 DEBUG: [16220] I     </WindowSize>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I     <Options>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I      <FilterType>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I        3
2014-05-21T20:55:35+02:00 DEBUG: [16220] I      </FilterType>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I      <AirSyncBase:BodyPreference>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I       <AirSyncBase:Type>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I         2
2014-05-21T20:55:35+02:00 DEBUG: [16220] I       </AirSyncBase:Type>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I       <AirSyncBase:TruncationSize>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I         200000
2014-05-21T20:55:35+02:00 DEBUG: [16220] I       </AirSyncBase:TruncationSize>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I      </AirSyncBase:BodyPreference>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I     </Options>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I    </Folder>
2014-05-21T20:55:35+02:00 INFO: [16220] Obtaining collection class of 
Email for collection id Fb8412628
2014-05-21T20:55:35+02:00 INFO: [16220] Collection added to collection 
handler: collection: INBOX, synckey: 
{537a6d46-6dc4-4dd0-8b8b-4a03c0a80102}41.
2014-05-21T20:55:35+02:00 DEBUG: [16220] I   </Folders>
2014-05-21T20:55:35+02:00 DEBUG: [16220] I  </Synchronize>
2014-05-21T20:55:35+02:00 INFO: [16220] Clearing all collection 
synckeys from the cache.
2014-05-21T20:55:35+02:00 INFO: Have syncable collections

I can attach full log file if needed.
05/21/2014 02:01:36 PM Michael Rubinsky Summary ⇒ Cannot delete email using Activesync
 
05/21/2014 02:00:08 PM Michael Rubinsky Comment #2
State ⇒ Feedback
Reply to this comment
Works fine here with current code. What client? What, exactly, happens 
when the email is attempted to be deleted? Sync log?
05/21/2014 12:27:45 PM thomas (dot) michel (at) vermessung-michel (dot) de Comment #1
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Synchronization
Summary ⇒ Cannot delet emails per Activesync
Type ⇒ Bug
Priority ⇒ 1. Low
Reply to this comment
Since upgrading our Horde installation to 5.2.0 alpha 1, users are not 
able to delete emails via activesync anymore. Also, email folders 
cannot be seen on the client devices.

Saved Queries