6.0.0-git
2019-04-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 2017-11-08 (533 days ago)
Due
Updated 2017-11-19 (522 days ago)
Assigned 2017-11-12 (529 days ago)
Resolved 2017-11-19 (522 days ago)
Milestone
Patch No

History
2017-11-19 13:51:52 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
2017-11-19 06:03:46 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.
2017-11-19 06:02:27 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.
2017-11-13 08:38:00 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.
2017-11-12 20:57:32 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.


2017-11-10 21:25:59 Jan Schneider Assigned to Michael Rubinsky
State ⇒ Assigned
 
2017-11-08 21:28:19 john (dot) bieling (at) gmx (dot) de Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Summary ⇒ Trash folder should have type 4, not 12
Queue ⇒ Synchronization
Milestone ⇒
Patch ⇒ No
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