CLI zmmboxsearch (Cross mailbox search): Difference between revisions
No edit summary |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Article Infobox|{{admin}}|{{ZCS | {{BC|Certified}} | ||
__FORCETOC__ | |||
<div class="col-md-12 ibox-content"> | |||
=CLI zmmboxsearch (Cross mailbox search)= | |||
{{KB|{{ZC}}|{{ZCS 7.0}}|{{ZCS 6.0}}|}} | |||
{{Archive}}{{WIP}}{{Article Infobox|{{admin}}|{{ZCS 7.0}}|{{ZCS 6.0}}|{{ZCS 5.0}}}} | |||
For the most recent information on this CLI, including syntax and description, see [http://www.zimbra.com/docs/ne/latest/administration_guide/A_app-command-line.20.1.html ZCS Administrator's Guide Network Edition > Appendix A Command-Line Utilities]. | For the most recent information on this CLI, including syntax and description, see [http://www.zimbra.com/docs/ne/latest/administration_guide/A_app-command-line.20.1.html ZCS Administrator's Guide Network Edition > Appendix A Command-Line Utilities]. | ||
Line 75: | Line 80: | ||
[[Category:Command Line Interface]] | [[Category:Command Line Interface]] | ||
[[Category:ZCS 7.0]] | |||
[[Category:ZCS 6.0]] | [[Category:ZCS 6.0]] | ||
Latest revision as of 16:04, 11 July 2015
CLI zmmboxsearch (Cross mailbox search)
Article Information |
---|
This article applies to the following ZCS versions. |
For the most recent information on this CLI, including syntax and description, see ZCS Administrator's Guide Network Edition > Appendix A Command-Line Utilities.
ZCS 6.0.x
zmmboxsearch
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.
Syntax
zmmboxsearch {-m <arg>} {- q <arg>} [-o <arg>] [-l <arg>] [-d <arg>] [options]
Description
Long Name | Short Name | Description |
---|---|---|
--dir | -d | <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. |
--help | -h | Displays help information |
--limit | -l | Sets the limit for the number of results returned. The default is 25. |
--mbox | -m | <arg> Comma-separated list of mailboxes to search. UIDs or email-address or /SERVER/MAILBOXID or *. |
--offset | -o | <arg> Specify where the hit list should start. The default is 0. |
--query | -q | <arg> The query string for the search. |
--server | -s | <arg> Mail server hostname. Default is the localhost. |
--verbose | -v | Request that the status message print while the search is being executed |
Examples
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
Here is an example that includes results for the phrase "vacation rental" in the message body:
zmmboxsearch -m user1@yourdomain.com,user2@yourdomain.com -q “content:(\"vacation rental\")” -d /var/tmp
Here is "vacation rental" in the Inbox:
zmmboxsearch -m user1@yourdomain.com,user2@yourdomain.com -q “in:inbox content:(\"vacation rental\")” -d /var/tmp
"vacation rental" in the Inbox from Thom:
zmmboxsearch -m user1@yourdomain.com,user2@yourdomain.com -q “in:inbox from:Thom content:(\"vacation rental\")” -d /var/tmp
ZCS 5.0.x
ZCS 4.5.x