Organize email attachments by where they came from
You open Gmail in your browser, click the little download arrow on an attachment, and the contract someone sent you is now sitting in Downloads as document.pdf — between an installer, a meme, and last week’s boarding pass. Tomorrow you’ll need it, and you’ll have no idea which of the forty PDFs it is. The attachment mattered; the moment you saved it, it stopped being findable.
The problem was never email. It’s that Downloads is a single funnel where a signed contract and a “check this out” GIF look identical. The fix isn’t more discipline — it’s teaching your computer to recognize what arrived as an email attachment and shelf it on its own. And the key to doing that lives in a fact almost nobody uses.
Webmail leaves a fingerprint — use it#
Here’s the whole trick, in one sentence: when you download an attachment from webmail in your browser — Gmail, Outlook.com, Yahoo, Proton — Windows quietly records the site it came from, right alongside the file, and almost no program ever shows it. That recorded source is what lets the app tell an email attachment apart from everything else in Downloads, without depending on the name — because the name, let’s be honest, is usually document.pdf or scan_0043.pdf, which tells you nothing.
If you want the full story of how your PC remembers a file’s source, that’s its own guide — see where did this file come from. Here we put that fact to a single, specific job: never losing an email attachment again.
The recipe: every attachment in one place#
Elegant File Explorer ships a ready-made recipe in the gallery called “Email attachments in one place.” It recognizes files you downloaded from the major webmail services — Gmail, Outlook, Yahoo, Proton — by their recorded origin, and moves them into Documents\Email attachments, split by year and month, tagged “Email.” The contract someone sent you in March no longer blends into Downloads — and you know it arrived by email just by looking at the folder.
Turning it on takes under a minute:
- Open Auto-organization and click + New rule — the wizard offers to start from a ready-made recipe.
- In the Recipe Gallery, pick “Email attachments in one place.” It fills in the whole rule for you.
- Click “Simulate effect.” You get a preview — nothing is actually changed — with the exact map of which files would go where.
- Happy with it? Click “Save rule,” then “Run now” to tidy up everything already sitting in Downloads.
Prefer them under Documents\Work or on a D: drive instead? Edit the destination before saving — the recipe is only a starting point, and the year/month split and the tag keep working wherever you point it.
Make it automatic#
The layer that makes you forget the problem existed: switch “When to run” to “Automatically, when a file arrives (real time).” From then on, every attachment you download from your webmail goes straight to the right folder, in the right month, with the right tag — you do nothing. The pile simply stops forming, and when your accountant asks for “that document I emailed you,” you open one folder instead of scrolling through Downloads.
Like every automation in the app, this one keeps its safety nets: the simulation shows everything first, “Undo” reverses any run, and files without a recorded origin are simply left untouched — the rule only acts on what it’s sure came from your webmail. And because it moves rather than copies, there’s never a second stray version of the attachment left behind in Downloads to confuse you later.
When there’s no origin to read#
Being honest about the edge is what keeps the tool trustworthy. Origin works only when the download actually carries that recorded source — which is the case for webmail opened in your browser. A file that arrives without it — saved by a different kind of program, or copied in from a USB stick or your network — has nothing for origin to read, and a source-based rule correctly leaves it where it is. That’s “not applicable,” not a bug.
So what do you do with those? You fall back to the label the file does have: its name or its type. A rule that matches by name catches the strays that origin can’t see.
Do
- Use the origin recipe for anything saved from webmail in your browser
- Simulate first, then promote the rule to real time
- Add a second, name-based rule for attachments that arrive with no origin
Avoid
- Assuming every file in Downloads has a recorded origin — many don't
- Renaming attachments by hand to make them findable
- Deleting to "clean up" — the rule moves, it never deletes
A name-based rule is quick to build: open Auto-organization, click + New rule, add a “Name contains” condition with the words your senders use (invoice, contract, statement), and a “Move to” action pointing at the same Documents\Email attachments folder. Simulate, save, done. The two rules layer without fighting: origin catches what it can see, the name rule sweeps up the rest.
If you file schoolwork or course PDFs the same way — by the site they came from — the same idea is walked through end to end in file automation for students, which also organizes downloads by source.
Elegant File Explorer