6.0.0-beta1
7/4/25

[#14729] Trash folder should have type 4, not 12
Summary Trash folder should have type 4, not 12
Queue Synchronization
Queue Version FRAMEWORK_5_2
Type Bug
State Not A Bug
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester john.bieling (at) gmx (dot) de
Created 11/08/2017 (2795 days ago)
Due
Updated 11/19/2017 (2784 days ago)
Assigned 11/12/2017 (2791 days ago)
Resolved 11/19/2017 (2784 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/19/2017 01:51:52 PM john (dot) bieling (at) gmx (dot) de Comment #6 Reply to this comment
I think we can close this than.

I referred to the MS-ASCMD documentation, specific:

https://msdn.microsoft.com/en-us/library/gg650877(v=exchg.80).aspx

where the folder of type 4 is called the "default deleted item 
folder". For me this concluded, that such a folder must be present, so 
that the EAS client can always choose beween moving a folder to trash 
and deleting it via FolderDelete.

However, there is also the OPTION "DeletesAsMoves", which you probably 
do not send, if the user has disabled trash and thus there is no 
folder of type 4. I missed that OPTION.

Thanks for your time,
John
11/19/2017 06:03:46 AM Michael Rubinsky Comment #5 Reply to this comment
I assume, this is not part of the ActiveSync protocol? From the 
client side, I have to check if the trash folder is there or not, 
even though it is a default one, which should be there?
Also, there is no "default" trash folder in EAS, so I'm not sure what 
you mean here.
11/19/2017 06:02:27 AM Michael Rubinsky Comment #4
State ⇒ Not A Bug
Reply to this comment
I assume, this is not part of the ActiveSync protocol?
What isn't?  The use_trash preference is an IMP preference, the MUA.   
If the account that ActiveSync is synchronizing with is not using a 
trash folder, why would we indicate to EAS to use one?
From the client side, I have to check if the trash folder is there 
or not, even though it is a default one, which should be there?
Well, in EAS you can either do a DELETEASMOVES or an immediate 
deletion. The former uses and REQUIRES a folder of type 4 to be set, 
the latter does not and indicates to the server to perform an 
immediate expunge.
A follow up question: If the Horde user did enable the "use_trash" 
setting and issues a FolderDelete request, will Horde translate that 
into a "move to trash" or will it obey the delete request?
A FOLDERDELETE command is always permanent in EAS. I.e., it does NOT 
move any items to the trash.
We explicitly set the trash folder to 4. See
Horde_Core_ActiveSync_Driver::_getMailFolder()

If you are seeing the trash folder as type 12, this probably means
that you don't have the "use_trash" pref set in IMP's preferences.
11/13/2017 08:38:00 AM john (dot) bieling (at) gmx (dot) de Comment #3 Reply to this comment
I assume, this is not part of the ActiveSync protocol? From the client 
side, I have to check if the trash folder is there or not, even though 
it is a default one, which should be there?

A follow up question: If the Horde user did enable the "use_trash" 
setting and issues a FolderDelete request, will Horde translate that 
into a "move to trash" or will it obey the delete request?
We explicitly set the trash folder to 4. See 
Horde_Core_ActiveSync_Driver::_getMailFolder()

If you are seeing the trash folder as type 12, this probably means 
that you don't have the "use_trash" pref set in IMP's preferences.
11/12/2017 08:57:32 PM Michael Rubinsky Comment #2
State ⇒ Feedback
Reply to this comment
We explicitly set the trash folder to 4. See 
Horde_Core_ActiveSync_Driver::_getMailFolder()

If you are seeing the trash folder as type 12, this probably means 
that you don't have the "use_trash" pref set in IMP's preferences.


11/10/2017 09:25:59 PM Jan Schneider State ⇒ Assigned
Assigned to Michael Rubinsky
 
11/08/2017 09:28:19 PM john (dot) bieling (at) gmx (dot) de Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Trash folder should have type 4, not 12
Queue ⇒ Synchronization
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
for drafts, send, inbox you use the correct type values, but for trash 
you use 12 and not 4. why?

Saved Queries