S
S
Sober Sniper2016-04-02 15:54:03
bash
Sober Sniper, 2016-04-02 15:54:03

How to restore shared folders in zimbra?

Good afternoon ...
Tell me how to solve the problem.
You need to completely clear most of the boxes, but leave the folder structure and keep the shared folders.
The option to search for all letters and delete them via messid and convid is well known, but it is very slow, for example, it cleans up a year for about a week and a half and it has restrictions on the output of letters, 1000 maximum

/opt/zimbra/bin/zmmailbox -z -m [email protected] s -l 1000 in:Inbox/Folder

well, it's okay, I decided to use the command
/opt/zimbra/bin/zmmailbox -z -m [email protected] emptyFolder /Inbox
quickly clears the entire folder, but also overwrites all subfolders.
If everything is simple with simple folders, I can simply create from
/opt/zimbra/bin/zmmailbox -z -m [email protected] cf /Inbox/newfolder
then with shared folders it is more difficult.
Here is an example of the output of the folders
/opt/zimbra/bin/zmmailbox -z -m [email protected] gaf | grep mess
5917 mess 0 2412 /Inbox
3332 mess 0 2119 /Inbox/Satry
5993 mess 0 885 /Inbox/Legal
4 mess 0 0 /Junk
5 mess 0 8543 /Sent
4438 mess 98 113 /Webmaster - Inbox ([email protected]:2)
4722 mess 0 1 /Webmaster - PROCESSED ([email protected]:271)
4721 mess 0 10 /Webmaster - Sent ([email protected]:5 )
1100 mess 5 23750 /Tech. Support - Inbox ([email protected]:2)
d42290e0-9 mess 105 1913 /Tech. Support - Inbox/Repair
4626 mess 0 0 /Tech. Support - PROCESSED ([email protected]:1872)
1771 mess 0 0 /Tech. Support - Connections ([email protected]:702)
I can get these folders back like this
/opt/zimbra/bin/zmmailbox -z -m [email protected] cm --view mess -F# "/Inbox/Tech. Support - Inbox" [email protected] "/Inbox"
But there is one BUT - me must know the exact location of the folder from the sharer, and it's okay if it's 1-5 users, and if there are 100 of them
. and even more so, all this is in the script.
The maximum that I can get is [email protected]:702, which would somehow process it, since the folder names may not correspond to their true name.
And something tells me that this is like an identifier, which somehow can be used for this task, but I did not find how to apply it.
I looked at the Zimbra wiki - I didn’t find it ... or I wasn’t looking there?
Tell me, how can [email protected]:702 be used in solving a problem or a solution on the other side?
I hope I have explained the situation clearly.
Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question