{"id":4731,"date":"2013-06-16T23:35:24","date_gmt":"2013-06-16T15:35:24","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=4731"},"modified":"2023-04-28T09:48:20","modified_gmt":"2023-04-28T09:48:20","slug":"how-to-manage-mailbox-folder-using-zmmailbox-cli-in-zimbra","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-manage-mailbox-folder-using-zmmailbox-cli-in-zimbra\/","title":{"rendered":"How to Manage Mailbox Folder using zmmailbox CLI in Zimbra"},"content":{"rendered":"<p>Zimbra zmmailbox command is used for mailbox management such as admin-related commands, account-related commands, appoint-related commands, folder-related commands, message-related commands, tag-related commands and etc. It is the powerful command utility for zimbra administrator to perform daily account management or to perform zimbra account related issues. This post will brief you on how you can manage, get, create, delete and Empty the Folder in zimbra mailbox using zmmailbox command line interface (CLI). All the command has been tested in Zimbra Collaboration Suite 8.0.4 installed on CentOS 6.4.<\/p>\n<p>Using zmmailbox command, enter to user1@ehowstuff.local mailbox :<\/p>\n<pre>[zimbra@centos64 ~]$ zmmailbox -z -m user1@ehowstuff.local\nmailbox: user1@ehowstuff.local, size: 280.60 KB, messages: 10, unread: 0\nauthenticated as user1@ehowstuff.local<\/pre>\n<p>1. How to get All Folders in user1@ehowstuff.local :<br \/>\nzmmailbox sub-command usage : getAllFolders or gaf<\/p>\n<pre>mbox user1@ehowstuff.local&gt; gaf\n        Id  View      Unread   Msg Count  Path\n----------  ----  ----------  ----------  ----------\n         1  unkn           0           0  \/\n        16  docu           0           0  \/Briefcase\n        10  appo           0           0  \/Calendar\n        14  mess           0           0  \/Chats\n         7  cont           0           0  \/Contacts\n         6  mess           0           0  \/Drafts\n        13  cont           0           3  \/Emailed Contacts\n         2  mess           0           3  \/Inbox\n         4  mess           0           0  \/Junk\n         5  mess           0           2  \/Sent\n        15  task           0           0  \/Tasks\n         3  unkn           0           0  \/Trash<\/pre>\n<p>2. How to create Folder in user1@ehowstuff.local :<br \/>\nzmmailbox sub-command usage : createFolder or cf<\/p>\n<pre>mbox user1@ehowstuff.local&gt; cf \/Personal\n260<\/pre>\n<p>Once you created Personal folder, please move some files into \/Personal. Then run getAllFolders or gaf.<\/p>\n<pre>mbox user1@ehowstuff.local&gt; gaf\n        Id  View      Unread   Msg Count  Path\n----------  ----  ----------  ----------  ----------\n         1  unkn           0           0  \/\n        16  docu           0           0  \/Briefcase\n        10  appo           0           0  \/Calendar\n        14  mess           0           0  \/Chats\n         7  cont           0           0  \/Contacts\n         6  mess           0           0  \/Drafts\n        13  cont           0           3  \/Emailed Contacts\n         2  mess           0           3  \/Inbox\n         4  mess           0           0  \/Junk\n       294  unkn           0           2  \/Personal\n         5  mess           0           2  \/Sent\n        15  task           0           0  \/Tasks\n         3  unkn           0           0  \/Trash<\/pre>\n<p>3. How to Empty Folder in user1@ehowstuff.local :<br \/>\nzmmailbox sub-command usage : emptyFolder or ef<\/p>\n<pre>mbox user1@ehowstuff.local&gt; ef \/Personal<\/pre>\n<p>Once folder \/Personal has been empty, rerun etAllFolders or gaf again to verify.<\/p>\n<pre>mbox user1@ehowstuff.local&gt; gaf\n        Id  View      Unread   Msg Count  Path\n----------  ----  ----------  ----------  ----------\n         1  unkn           0           0  \/\n        16  docu           0           0  \/Briefcase\n        10  appo           0           0  \/Calendar\n        14  mess           0           0  \/Chats\n         7  cont           0           0  \/Contacts\n         6  mess           0           0  \/Drafts\n        13  cont           0           3  \/Emailed Contacts\n         2  mess           0           3  \/Inbox\n         4  mess           0           0  \/Junk\n       294  unkn           0           0  \/Personal\n         5  mess           0           2  \/Sent\n        15  task           0           0  \/Tasks\n         3  unkn           0           0  \/Trash<\/pre>\n<p>4. How to Delete Folder in user1@ehowstuff.local :<br \/>\nzmmailbox sub-command usage : deleteFolder or df<\/p>\n<pre>mbox user1@ehowstuff.local&gt; df \/Personal<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Zimbra zmmailbox command is used for mailbox management such as admin-related commands, account-related commands, appoint-related commands, folder-related commands, message-related commands, tag-related commands and etc. It is the powerful command utility&#8230;<\/p>\n","protected":false},"author":6,"featured_media":5420,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1100],"tags":[1255,1355,1946,1948,1951,1953],"class_list":["post-4731","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-zimbra","tag-centos-6-4","tag-email-server","tag-zimbra","tag-zimbra-8-0-4","tag-zimbra-collaboration-suite","tag-zimbra-mail-server"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4731","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=4731"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4731\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/5420"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=4731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=4731"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=4731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}