Sign in
Gmail

Gmail Filters: How to Sort Verification Codes, Order Confirmations, and Support Emails

Build and test three Gmail filters using real messages. Label all three types automatically, then archive routine order confirmations while keeping verification codes and customer replies in your inbox.

4 min read
Gmail Filters: How to Sort Verification Codes, Order Confirmations, and Support Emails

1. Create labels and decide what can skip the inbox

  1. Open Gmail on a computer. In the left sidebar, click the plus sign next to Labels and create Verification codes, Orders, and Support. If several stores share one mailbox, group messages by how you handle them first. Add recipient-specific rules later if you need to distinguish stores.
  2. Keep verification codes in the inbox and leave Mark as read unchecked. For orders, start with a label only; enable archiving once you confirm the filter catches only receipts that need no reply. Keep support messages in the inbox and star them if useful. Applying a label does not archive a message; Skip the Inbox does.
A four-color envelope mascot tags fruit on a tree with colored rings but puts only ripe oranges in a basket, illustrating the difference between labeling and archiving.

2. Build search criteria from real messages

  1. Open one recent message from each category. Expand the details beside the recipient, then copy the full sender address and a recurring phrase from the subject. Leave out display names, one-time codes, order numbers, and customer names.
  2. Click Show search options in the Gmail search bar. Enter the address in From and the phrase in Subject, then click Search. A message must match both fields. If a platform sends notifications in both English and Chinese, create a separate rule for each language using its actual subject wording.
  3. Check the results for marketing emails and refund notices, then confirm that an older message you want to catch also appears. If the search is too broad, use a more specific subject phrase. If it returns nothing, search by sender alone, then add the other criteria back one at a time.
An envelope mascot fits a scallop shell into a matching cutout and leaves a similar smooth shell aside, illustrating how sample messages help refine a filter.

3. Set up the three rules

Replace the example phrases below with wording from your own messages. Test the criteria before choosing an action. Do not set an entire platform domain to skip the inbox.

LabelMatch criteriaAction and checks
Verification codesSign-in notification address + subject contains “verification code”Apply the label only. If security alerts also match, use a phrase specific to code emails.
OrdersTransaction notification address + subject contains “order confirmed”Apply the label. If cancellations or refunds also match, keep Skip the Inbox off until you narrow the rule.
SupportTicket notification address + subject contains “message from buyer”Apply the label and leave Mark as read unchecked. If customers email you directly, do not rely on the ticket sender address alone.

If customers write to a dedicated support address, create a separate Support rule with that address in To. Test it with a customer reply, not just the platform’s initial ticket notification.

An envelope mascot uses three springboards to send a key, a package, and a bell into their respective slots.

4. Save the filters and check new and existing mail separately

  1. Once the search results look right, reopen Show search options and click Create filter. Check Apply the label and choose the matching label. Select Skip the Inbox only for a tested order-confirmation rule. Click Create filter again to save.
  2. To organize existing mail, select the option to apply the filter to matching conversations before saving. Leave it unchecked to process only future mail. When the next matching message arrives, find it under its label and check the subject, unread status, and whether it still has the Inbox label.
An envelope mascot opens a gate for a new paper boat while older boats wait behind a separate gate, illustrating how filters can handle new and existing mail separately.

5. Fix overlaps and run a final check

  • Fix overlapping rules: A support message that also matches the Orders archive rule can still skip the inbox. Go to Settings → See all settings → Filters and Blocked Addresses, narrow the Orders rule, then manually move any incorrectly archived messages back to the inbox.
  • Check unexpected codes: Do not forward the code or send it in a reply. Review recent activity in your Google Account security settings. If you need to set up an authenticator, see the two-factor authentication tool.
  • Final checklist: Verify that new messages get the correct label in all three categories, verification codes stay unread in the inbox, only routine order confirmations skip the inbox, and customer replies remain visible there. If the interface changes, search for “create filters” in the Gmail Help Center.