ZCS Administrator Guide 8.0
ZCS Administrator Guide 8.0
Network Edition

Appendix A Command-Line Utilities > zmmboxsearch (Cross Mailbox Search)

zmmboxsearch (Cross Mailbox Search)
The CLI command zmmboxsearch is used to search across mailboxes. You can search across mailboxes to find messages and attachments that match specific criteria and save copies of these messages to a directory.
zmmboxsearch {-m <arg>} {- q <arg>} [-o <arg>] [-l <arg>] [-d <arg>] [options]
Short Name
<arg> Directory to write the messages to. If none is specified, then only the headers are fetched. Files names are generated in the form RESULTNUM_ACCOUNT-ID_ MAILITEMID.
Sets the limit for the number of results returned. The default is 25.
<arg> Comma-separated list of mailboxes to search. UIDs or email-address or /SERVER/MAILBOXID or *.
<arg> Specify where the hit list should start. The default is 0
<arg> The query string for the search
<arg> Mail server hostname. default is the localhost
Request that the status message print while the search is being executed
The following example is to do a cross-mailbox search in the inbox folder of two different mailboxes on the specified server and put a copy of the message in to the specified directory.
zmmboxsearch -m user1@yourdomain.com,user2@yourdomain.com -q “in:inbox” -d /var/tmp
Copyright © 2012 VMware Inc.