
When you search accounts in your organization's domain, you don't need to specify the domain. Vault returns any messages that include the account in the to, cc, or bcc fields. The account can be a group email address. rfc822msgid:AANLkTilQ5MWSp7-iE6SKepvOl-įind messages received by a given account.
To get the Message-ID header, open a message in Vault and click original. Email clients and servers use this identifier to track a message. Message-ID is a unique identifier for a message that is added by mail servers. To search for multiple-word subjects, substitute a hyphen ( -) for each space.įind messages by Message-ID. This example will also match solarmora inc and Solamora! inc.įind messages with a given word or phrase in the subject. "Solarmora, Inc." Note: Search ignores the case and punctuation of phrases in quotation marks.
To search for a phrase, put the words in double quotes ( "). Set the AROUND distance to less than 20.įind messages that contain that word or phrase in the message text or subject.Use no more than 2 AROUND terms in a query.AROUND can't be used with parentheses or multiple-word phrases.AROUND can't be combined with a wildcard ( *) search.Add quotes to return only messages in which the first word appears before the second word. Make your search more specific.įind messages with words near each other.Įnter a number to specify how many words apart the words can be. Note: If your wildcard entry results in a phrase that exceeds 100 words, the search will fail. You can append a wildcard ( *) to the beginning of an email address to find all messages sent to or from an external domain. For example, invit* returns messages with either invite or invitation (or both).
The wildcard ( *) must appear at the end of a search term.
"huge losses" OR "-1000%" (Note: Put quotation marks around terms that start with hyphens to ensure they’re not treated as NOT operators)įind messages that do not include a given search term. If your query includes a date term, such as sent_before:, use less than 10 OR terms. To ensure your query is processed correctly, use less than 20 OR terms in a query. secret AND project (equivalent to secret project)įind messages that include either of 2 given search terms (or both). Search by message label, folder, and typeįind messages that include 2 given search terms. To ensure your terms are processed correctly, on this page review the term complexity guidelines.Įxpand all | Collapse all Gmail & Google Groups search operators For example, to search two recipients of a Gmail message, enter to:(username1 OR username2).īoolean operators ( AND, OR, NOT, and AROUND) must be in all caps, otherwise they're treated as keywords. When you enter multiple values for the same operator, group them together in parentheses. For example, use to:username1 in Gmail and owner:username2 in Google Drive. To search for messages or items by account name, always include a colon ( :) with no spaces immediately after the operator. For example, -1000% (with no search operator) matches anything that doesn't contain 1000, while “-1000%” matches -10, because with quotation marks the hyphen and % are ignored. Note: If your search term starts with hyphen, such as -1000%, put the individual term in quotation marks to ensure the hyphen is not interpreted as a NOT operator. For example, to exclude messages sent to username1 from the search results, you can enter either ‑to:username1 or NOT to:username1. To exclude results that match the search term, put a hyphen ( -) or NOT before the search operator. Vault ignores punctuation marks and case in keywords and phrases. You can use English search operators to find non-English words and phrases.įor most services, Vault assumes there is an AND operator between search terms if no Boolean operator is specified. Search basicsĮnter search operators in English, even if people in your organization use other languages to communicate. The search operators you can use vary by service. You can enter keywords and search terms in the Terms field to narrow or broaden a search of your organization's Google Workspace data using Google Vault.