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.
ok589 Editorial Team4 min read

1. Create labels and decide what can skip the inbox
- 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.
- 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.

2. Build search criteria from real messages
- 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.
- 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.
- 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.

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.
| Label | Match criteria | Action and checks |
|---|---|---|
| Verification codes | Sign-in notification address + subject contains “verification code” | Apply the label only. If security alerts also match, use a phrase specific to code emails. |
| Orders | Transaction 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. |
| Support | Ticket 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.

4. Save the filters and check new and existing mail separately
- 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.
- 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.

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.