ZCS Administrator's Guide, Network Edition 4.5, Rev 2 11/07
Table of Contents Previous Next Index


Appendix A   Command-Line Utilities : zmmboxsearch (Cross mailbox search)

zmmboxsearch (Cross mailbox search)
zmmboxsearch is the CLI command 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.
Syntax
zmmboxsearch {-m <arg>} {- q <arg>} [-o <arg>] [-l <arg>] [-d <arg>] [options]
Description
 
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
Example
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

Appendix A   Command-Line Utilities : zmmboxsearch (Cross mailbox search)

Table of Contents Previous Next Index
ZCS Administrator's Guide, Network Edition 4.5, Rev 2 11/07
Copyright © 2007 Zimbra Inc.