Feature Guide · 9 min read · 2026-07-08
Smart Scan: How the 7-Category Email Scanner Works
Learn how Smart Mailbox Cleaner scans your inbox using Gmail metadata to automatically categorize emails into 7 smart cleanup buckets.
The Science of Intelligent Inbox Categorization
When faced with an inbox overflowing with 50,000 emails, most users feel overwhelmed. Trying to clean that volume manually using Gmail's basic search bar is agonizing. Which search operators do you type? How do you ensure you don't accidentally catch a crucial invoice? How do you isolate the heaviest attachments without spending hours inspecting file sizes?
Smart Scan is the intelligent algorithmic engine at the heart of Smart Mailbox Cleaner. In under two minutes, Smart Scan queries your mailbox using specialized Google API routines, analyzes message headers, and groups your clutter into 7 precision-engineered cleanup buckets.
This in-depth architectural guide explores how Smart Scan works under the hood—from our metadata-only querying protocols and rate-limiting safeguards, to the exact Gmail search syntax powering each of the 7 smart categories.
Metadata-Only Architecture: How We Scan Without Reading
Before looking at the categories, it is vital to understand how Smart Scan protects your privacy:
"We only access email metadata — sender, date, size, labels. We never read email content."
When you click Start Scan, our servers connect to the official Google Gmail API using the restricted gmail.metadata scope:
- Header Inspection Only: Our engine requests lightweight message headers:
From, To, Subject, Date, and message size parameters. - Zero Body Ingestion: Google's API strictly withholds message body text, HTML markup, and file attachments.
- Asynchronous Server-Side Workers: Scans run on high-performance background worker nodes. They do not drain your computer's battery or freeze your browser tab.
- Rate-Limiting Protection: To comply with Google API quotas, our engine incorporates an intelligent 1.5-second pacing delay between category sweeps, paired with exponential backoff to ensure smooth, uninterrupted scanning.
The 7 Smart Categories: Syntax, Logic, and Safety
Each of the 7 categories was engineered to address a specific form of email clutter while maximizing storage recovery and minimizing safety risks:
+-------------------------------------------------------------------------+
| THE 7 SMART SCAN CATEGORIES OVERVIEW |
+-------------------------------------------------------------------------+
| Category Base Score Primary Focus |
| ────────────────────────────────────────────────────────────────────── |
| 1. Large Files (10MB+) 90 (HIGH) Heavy PDFs, videos, zip archives|
| 2. Large Files (5–10MB) 87 (HIGH) Decks, documents, graphic assets|
| 3. Old Promotions (90d+) 88 (HIGH) Expired retail & marketing mail |
| 4. Old Social Alerts (90d+) 85 (HIGH) Stale LinkedIn & Twitter notices|
| 5. Emails Older Than 3 Yrs 82 (MEDIUM) Ancient non-starred conversations |
| 6. Expired Invites 92 (HIGH) Dead calendar event notifications |
| 7. Drive Link Emails 80 (MEDIUM) Notifications for files in Drive |
+-------------------------------------------------------------------------+
Category 1: Large Attachments (10MB+)
- Base Query:
has:attachment larger:10M -in:trash -in:spam - Base Confidence Score: 90 (HIGH — Safe to Delete)
- Why It Matters: This category yields the highest storage return on investment. In standard inboxes, just 100 to 200 emails in this category can reclaim 3GB to 5GB of storage. It targets emails carrying massive slide decks, video clips, and compressed archives while automatically excluding spam and trash.
Category 2: Large Attachments (5–10MB)
- Base Query:
has:attachment larger:5M smaller:10M -in:trash -in:spam - Base Confidence Score: 87 (HIGH — Safe to Delete)
- Why It Matters: Files between 5MB and 10MB represent medium-heavy attachments—such as high-res scanned PDF contracts, image galleries, and presentation drafts. Purging this tier typically reclaims 1GB to 3GB of space.
Category 3: Old Promotional Emails (90+ Days)
- Base Query:
category:promotions older_than:90d -in:trash -is:starred - Base Confidence Score: 88 (HIGH — Safe to Delete)
- Why It Matters: Marketing promotions, flash sale announcements, and retail newsletters lose all practical value after 90 days. This category sweeps away stale commercial blasts while explicitly protecting any promotional email you marked with a star.
Category 4: Old Social Notifications (90+ Days)
- Base Query:
category:social older_than:90d -in:trash -is:starred - Base Confidence Score: 85 (HIGH — Safe to Delete)
- Why It Matters: Social networks (LinkedIn, Twitter/X, Facebook, Instagram) generate millions of automated notification emails. Notifications older than three months are completely obsolete. This category purges them in bulk.
Category 5: Emails Older Than 3 Years
- Base Query:
older_than:3y -in:trash -is:starred -has:attachment - Base Confidence Score: 82 (MEDIUM — Likely Safe)
- Why It Matters: General text conversations from over three years ago that contain no attachments and no starred tags. Because these are historical threads, they receive a balanced MEDIUM confidence score, encouraging a quick user review before deletion.
Category 6: Expired Calendar Invites
- Base Query:
filename:invite.ics OR filename:event.ics older_than:7d -in:trash - Base Confidence Score: 92 (HIGH — Safe to Delete)
- Why It Matters: Every time someone invites you to a Google Meet, Zoom, or calendar event, an email containing an
.ics attachment is created. Once the meeting date has passed, the email serves zero purpose. This category safely purges them.
Category 7: Emails with Drive Links Only
- Base Query:
has:drive -has:attachment older_than:180d -in:trash -is:starred - Base Confidence Score: 80 (MEDIUM — Likely Safe)
- Why It Matters: These are notification emails informing you that someone shared a Google Doc or Sheet. The actual file lives safely in Google Drive; the email itself is merely a notification and can be pruned safely after six months.
Scan Timeframes: Tailoring Your Scan Depth
When launching a Smart Scan, you can choose between three timeframe scopes:
| Timeframe | Scanning Scope | Typical Runtime | Ideal Use Case |
|---|
| Last 12 Months | Recent active mail | 30–60 seconds | Quick quarterly maintenance |
| Last 24 Months | Two-year archive | 1–2 minutes | Standard bi-annual cleanup |
| All Time | Full historical mailbox | 2–6 minutes | Deep storage recovery overhaul |
Note: The timeframe scope applies to categories utilizing date-based filters. Categories targeting heavy attachments (larger:10M) analyze your entire mailbox regardless of timeframe to ensure massive space-hogs are never missed.
Scan Caching and Result Lifecycle
To deliver an ultra-responsive user experience:
- 14-Day Result Retention: Scan results are cached securely on our server for 14 days. You can review your cards, expand individual emails, and clean categories over multiple sessions without having to rescan.
- Zero Credit Cost: Running scans is always 100% free. You only consume credits when you choose to execute a cleanup.
- Scan History Ledger: You can view past scan results in your Scan History to track how your mailbox volume shrinks over time.
Pro Tips for Maximizing Smart Scan
- Start with a 12-Month Scan: If you are scanning for the first time, run a 12-Month Quick Scan to quickly eliminate recent clutter before running a deeper All-Time scan.
- Expand Before Cleaning: Always click Expand on the category cards to inspect individual senders and subjects. Uncheck any specific messages you want to keep.
- Notice Confidence Badges: Pay attention to the Confidence Badges. Categories flagged with REVIEW REQUIRED warrant a quick manual look.
- Pair with Custom Scans: If you need to target a specific vendor or domain not covered by the 7 categories, use the Custom Scan Builder.
- Convert High-Yield Categories into Playbooks: If you find thousands of old promotions, turn that category into an automated Playbook to keep them cleaned automatically every month.
Experience Intelligent Email Scanning Today
Stop guessing which emails are consuming your storage. Let Smart Scan do the heavy lifting in seconds.
Sign up — your first cleanup is free at Smart Mailbox Cleaner and view our plans on our Pricing Page.
Related Reading
Frequently Asked Questions
Does running a Smart Scan delete any emails automatically?
No. Running a Smart Scan is purely diagnostic and completely safe. It analyzes your mailbox metadata and presents you with categorized cards. No emails are ever moved or deleted until you explicitly click "Clean Selected".
Does running a scan consume my cleanup credits?
No. Running scans is 100% free and unlimited. You only consume cleanup credits when you execute a cleanup action to move emails to Trash (1 credit per deleted email).
Can Smart Scan detect attachments inside archived emails?
Yes! Smart Scan queries your entire Gmail repository using official API search operators. It inspects all emails—including those archived in "All Mail" and outgoing messages in "Sent Mail"—to find hidden large attachments.
How often should I run a Smart Scan on my inbox?
We recommend running a Smart Scan once a month for active inboxes, or configuring automated Playbooks to maintain hygiene in the background. If your storage is nearing capacity, running a scan immediately will identify your quickest storage recovery wins.
Why are starred emails excluded from the scan categories?
Smart Mailbox Cleaner treats starred emails as explicit user signals of importance. By default, our scan queries automatically include the -is:starred operator, ensuring your flagged messages are never included in mass deletion categories.
Try Smart Mailbox Cleaner free →