Difference between revisions of "CLI zmmboxsearch (Cross mailbox search)"

 
(No difference)

Revision as of 16:50, 28 August 2007

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 -q <querystring}> -m <mailboxids> -s <server> [-d directory]

Description

Long Name

Short Name

Description

--dir (optional)

-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.

--limit (optional)

-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 (optional)

-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 (optional)

-v

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 -q “in:inbox” -m user1@yourdomain.com,user2@yourdomain.com -d / var/tmp

Jump to: navigation, search