Get/Set individual message disposal policy

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
Post Reply
derbärtigefrytz
Posts: 7
Joined: Mon Oct 31, 2016 12:49 pm
Location: Germany

Get/Set individual message disposal policy

Post by derbärtigefrytz »

Hello all,
given, that a user has set a individual message disposal policy in the retention tab of the Inbox Folder Properties, how can I find this in the backend?
I was not able to find it with "zmmailbox -z -m $i -v gf /Inbox".
It seems, it can be set with a zmsoap command. I found the example in the wiki (https://wiki.zimbra.com/wiki/Zmsoap).
However, i cant figure out how to get the value, if there is one.

Getting and setting this value has to be part part of my backup/restore strategy.
Can anyone please provide a sample?
Is there a wiki article, where all zmsoap commands are documented?

Actually I use Zimbra 9.0.0_ZEXTRAS_20211118 and I am in progress to switch to Zimbra 10.0.0_GA_0001

Best regards Friedhelm
Damini Vashishtha
Zimbra Employee
Zimbra Employee
Posts: 29
Joined: Tue Oct 18, 2022 12:16 pm

Re: Get/Set individual message disposal policy

Post by Damini Vashishtha »

You can call "zmsoap -z -m <user> -v GetFolderRequest" .
As response you will get all folder details including retentionPolicy if set.
shruti.gupta
Zimbra Employee
Zimbra Employee
Posts: 23
Joined: Wed Apr 12, 2023 6:22 am

Re: Get/Set individual message disposal policy

Post by shruti.gupta »

how to use these parameters soap api and what to set is ellaborated in https://files.zimbra.com/docs/soap_api/ ... older.html
shruti.gupta
Zimbra Employee
Zimbra Employee
Posts: 23
Joined: Wed Apr 12, 2023 6:22 am

Re: Get/Set individual message disposal policy

Post by shruti.gupta »

Also in case, you want to set soap api is FolderActionRequest (https://files.zimbra.com/docs/soap_api/ ... ction.html)
For get api is getFolderRequest (https://files.zimbra.com/docs/soap_api/ ... older.html)
Post Reply