Comments in zmmailbox provisioning file

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
User avatar
gabrieles
Outstanding Member
Outstanding Member
Posts: 233
Joined: Tue Feb 14, 2017 9:40 am

Comments in zmmailbox provisioning file

Post by gabrieles »

Hi,
I'm doing a massive export with zmsoap. I have to get ~30k users shared folders via zmsoap, grep the response, then compose for each of them something like

...
sm user1@mydomain.com
mfg / account user2@mydomain.com rwixda
sm user2@mydomain.com
cm shared_user1@mydomain.com mydomain.com /
...

that i can feed to a zmmailbox -f on another installation.
The script is working flawlessly, and produces a huge prov file i have only one question: how can I insert any comment on that provisioning file?
# , /, // are being read as commands: ERROR: zclient.CLIENT_ERROR (Unknown command: (# this is a comment) Type: 'help commands' for a list)

i've tried using a noOp, but don't think that's the correct way
Post Reply