A query that searches all of Gmail, Spam and Trash included.
When a message shows up in no search, it may be in Spam, in Trash or archived. Google describes in:anywhere as searching all of Gmail, Spam and Trash included.
in:anywhere from:amy@example.comOpen in Gmail ↗in:anywhereWidens the search to all of Gmail, Spam and Trash included. in:anywhere in:archive in:snoozedfrom:amy@example.comNarrows it to messages from this address. from:in:anywhere subject:invoiceOpen in Gmail ↗The whole mailbox, for a word in the subject.
in:archive from:amy@example.comOpen in Gmail ↗Only the archived messages from this address.
in: (anywhere, archive, snoozed): the other locations are not documented.Not documented by Google · Gmail Help: search operators