Methods11 min read

Save email attachments automatically with Gmail filters and Outlook rules

The short answer

Gmail and Outlook can’t save an attachment to a folder on their own, but they can sort and forward the email automatically. In Gmail, search for has:attachment filename:pdf subject:invoice, click Create filter, then apply a label or forward it. In Outlook, go to Settings > Mail > Rules and add a rule with the Has attachment condition and a Move to or Forward to action. To get the file out of the mailbox, forward those emails to a service that stores attachments, or, with a Microsoft work or school account, build a Power Automate flow that saves them.

The electricity bill, the phone bill and the receipt for last week’s online order all land in the same inbox, between newsletters and messages from friends. Once a month, you open them one by one to download the PDFs. Gmail and Outlook can take over part of that job: sort these emails as they arrive, and forward them wherever you want. Saving the file itself to a folder is another matter.

Here are the exact steps from Google’s and Microsoft’s help pages, and the options that are left for the attachment itself.

Can Gmail or Outlook save attachments automatically?

Not to a folder, on their own. What they automate is sorting and forwarding the email. The attachment stays inside the email until you save it, by hand or with an extra tool.

What you wantGmailOutlook
Sort emails with attachments as they arriveA filter applies a label, and can skip the inboxA rule moves them to a folder
Forward them to another addressA filter with Forward it, to an address you’ve verifiedA rule with Forward to, Forward as attachment or Redirect to
Save the attachment by handAdd to Drive, from the attachment in the emailDownload, Save to OneDrive or Download all (new Outlook, Outlook on the web)
Save the attachment automaticallyNo setting in GmailA Power Automate flow, with a work or school account
Apply to emails you already haveAlso apply filter to matching conversations, except for forwardingRun the rule on existing messages (new Outlook, classic Outlook)
Based on Google’s and Microsoft’s help pages as of October 15, 2026.

Which Gmail search operators find your invoices?

A Gmail filter starts as a search. These operators, listed in Google’s help page “Refine searches in Gmail”, narrow it down to the emails you want to catch.

OperatorWhat it findsExample
has:attachmentEmails with an attachmenthas:attachment
filename:Attachments with a given name or file typefilename:pdf
from:Emails from a given senderfrom:billing@example.com
subject:A word or phrase in the subject linesubject:invoice
OR or { }Emails that match one criterion or another{subject:invoice subject:receipt}
-Emails without a given wordinvoice -newsletter
" "An exact word or phrase"your invoice is available"
newer_than:Emails newer than a period, in days (d), months (m) or years (y)newer_than:1y
label:Emails under one of your labelslabel:invoices
Source: Gmail Help. You can combine several operators in one search.

Two searches cover most needs. The first catches every PDF with “invoice” or “receipt” in the subject line, whoever sends it:

has:attachment filename:pdf {subject:invoice subject:receipt}

The second catches everything a given supplier sends with a file attached:

from:billing@example.com has:attachment

How to create a Gmail filter for invoices

Google describes filters for Gmail on a computer, in a web browser. The steps from its help page take two minutes.

  1. Open Gmail on a computer.
  2. In the search box at the top, click Show search options.
  3. Enter your criteria. The window has fields such as From, Subject and Has the words, plus a Has attachment checkbox. You can type operators like filename:pdf in Has the words.
  4. Click Search to check which emails come up.
  5. At the bottom of the search window, click Create filter.
  6. Check Apply the label and choose a label from the list, such as “Invoices”. To keep these emails out of your inbox, also check Skip the Inbox (Archive it).
  7. To sort the emails you already have, check Also apply filter to matching conversations.
  8. Click Create filter.

You can also start from an email you’ve received: check the box next to it, click More, then Filter messages like these. To change a filter later, go to Settings, See all settings, then Filters and Blocked Addresses.

A label isn’t a folder: according to Google’s help, an email can carry several labels, and once deleted, it disappears from all of them. Your invoices are sorted, but they still live in your mailbox.

How to create an Outlook rule to move emails with attachments

The steps depend on your version of Outlook. New Outlook for Windows, Outlook on the web and Outlook.com share the same rules screen. Classic Outlook for Windows uses its own wizard.

In new Outlook, Outlook on the web and Outlook.com

  1. At the top of the page, select Settings.
  2. Select Mail, then Rules.
  3. Select Add new rule.
  4. Name the rule, for example “Invoices”.
  5. Add a condition, Has attachment. Select Add a condition to add another one, such as From with the supplier’s address, or Subject includes with the word “invoice”.
  6. Add an action, Move to, and choose a folder such as “Invoices”.
  7. Leave Stop processing more rules checked if no other rule should act on these emails. It’s checked by default in Outlook on the web.
  8. Select Save.

In new Outlook, a rule only acts on incoming messages at first. To run it on the emails you already have, go back to Settings, Mail, Rules and select the run button next to the rule. In Outlook.com, according to Microsoft, a new rule currently applies only to messages received after you create it.

In classic Outlook for Windows

The quick way is to right-click an email from the supplier and select Rules, then Create Rule. Pick a condition, such as Subject contains, then Move the item to folder, and select OK. Check Run this new rule now on messages already in the current folder to sort past emails too.

For more conditions, open Manage Rules & Alerts, select New Rule, then Apply rule on messages I receive, and follow the wizard. Depending on your version, Manage Rules & Alerts sits under the File tab or under Rules on the Home tab.

One limit applies to every version. In Microsoft’s table of rule conditions, there’s Has attachment, but nothing on the attachment’s name or file type. Unlike Gmail’s filename:pdf, an Outlook rule can’t single out PDFs, so narrow it by sender or by subject.

How to forward invoices automatically to another address

Forwarding sends each matching email, attachment included, to another address, such as your accountant or a service that stores your documents.

In Gmail, verify the address first

  1. In Gmail on a computer, go to Settings, See all settings.
  2. Open the Forwarding and POP/IMAP tab, or Forwarding.
  3. Click Add a forwarding address, enter the address, then click Next, Proceed and OK.
  4. Gmail sends a verification link to that address. Open it from the other account and click the link.
  5. To forward only your invoices, leave automatic forwarding off and create a filter as above. In its options, check Forward it and choose the address you verified.

The filter only acts on new messages, and you need one filter per forwarding address. For the first week, Gmail shows a notice reminding you that forwarding is on.

With a work or school account, your Google Workspace administrator decides. Automatic forwarding is on by default, but the administrator can turn it off, in which case the option disappears from Gmail settings, or limit it to internal addresses.

In Outlook, use a forwarding rule

Create a rule as above and choose the action Forward to, Forward as attachment or Redirect to, then enter the address. Microsoft explains the difference: a forwarded message appears to come from you, while a redirected message keeps the original sender. Either way, a copy stays in your mailbox.

With a Microsoft 365 work account, forwarding outside your organization may be blocked. According to Microsoft’s documentation for administrators, the default setting has blocked automatic external forwarding since 2021 for new organizations and for those that weren’t actively using it. A blocked message bounces back with the error “5.7.520 Access denied, Your organization does not allow external forwarding.” Only your IT administrator can change that.

How to save attachments to a folder automatically

Gmail can’t do it on its own, and Outlook only with Power Automate.

Gmail, by hand. Open the email, hover over the attachment at the bottom of the message, and click Add to Drive. The copy lands in your Drive, and you still file it yourself.

Gmail, automatically. Google’s help pages describe no setting for this. Scripts built on Google Apps Script, Google’s scripting tool, circulate online, but Google doesn’t publish one for this purpose. You’d be running code you have to check and maintain yourself.

Outlook, by hand. In new Outlook and Outlook on the web, select the arrow next to the attachment, then Download or Save to OneDrive. Download all saves every attachment in the message. In classic Outlook, the same menu offers Save As and Save All Attachments.

Outlook, automatically, with Power Automate. Microsoft describes this flow in its Power Automate exercise. You sign in with an organizational account, so this route is for work or school accounts only.

  1. In Power Automate, select My flows, then New flow, then Automated cloud flow.
  2. Choose the trigger When a new email arrives (V3), then select Create.
  3. Open the trigger’s options with Show all, and set From, Subject Filter, Include Attachments to Yes, Only with Attachments to Yes, and Folder to Inbox.
  4. Add the Create file action. In Microsoft’s exercise, it saves to a SharePoint library.
  5. For the file name, pick Attachments Name, and for the content, Attachments Content.

Power Automate then wraps the action in an Apply to each step, so each attachment in the email becomes its own file.

However you save them, the files keep the name the sender gave them, often invoice.pdf. Our guide on how to name invoice files explains how to give each one a dated name, and our article on how to organize digital documents shows where to file them.

How to test a filter before you rely on it

Once a filter is in place, you stop checking, and a missed invoice can go unnoticed for months. Spend ten minutes testing it.

  • Read the search results before you create the filter. Look for missing invoices, because the supplier writes “bill” or “statement”, and for emails that don’t belong, like a newsletter with a PDF. Widen the search with OR, narrow it with the minus sign.
  • Add a filter per important supplier. A filter on from: alone also catches the emails where the invoice sits behind a link to the supplier’s website, with no attachment.
  • Check the label or the folder once a week for the first month. Compare it with your bank statement. Every payment should have its invoice.

Forwarding attachments to Clivio

If your documents end up in Clivio, the forwarding route is enough. Every account comes with its own drop address, something like firstname-xxxx@inbox.clivio.app. Point your Gmail filter or Outlook rule at it: the attachments land in “To sort”, where you accept or reject them. Those from an allowed sender, your account’s own address included, are read as they arrive, like any other document; the others wait for your OK unread. An email forwarded by a filter often keeps the address of its original sender, so add your suppliers to your allowed senders. An email with no attachment becomes a suggested task. That includes the confirmation message Gmail sends to the drop address before it forwards anything: look for it among your suggested tasks.

You choose who can write to that address, with a list of allowed senders and a list of blocked senders, on every plan. Each file can be up to 25 MB. Before you turn the filter on, forward one invoice by hand and check what arrives in “To sort”.

Common questions

Why didn’t my Gmail filter forward my older emails?

Because a forwarding filter only acts on new messages, as Google’s help page on filters points out. The option Also apply filter to matching conversations sorts the emails you already have, but it doesn’t send them anywhere. Forward the older ones by hand.

Can I create a Gmail filter on my phone?

Google’s help describes creating filters on a computer, in Gmail in a web browser. Open Gmail on a computer to set one up, then edit it later under Settings, See all settings, Filters and Blocked Addresses.

What’s the difference between forwarding and redirecting in Outlook?

A forwarded message appears to come from you, and replies go to your address. A redirected message keeps the original sender, and replies go to that sender. Both are available as rule actions, under Forward to and Redirect to.

Why does Outlook say my rule can’t be edited or viewed?

The rule was probably created in classic Outlook as a client-side rule, one that runs only on your computer. New Outlook, Outlook on the web and Outlook.com only support rules that run on the mail server. Microsoft’s advice is to create the rule again in the version you use.

Do Outlook rules work with a Gmail account added to Outlook?

Not in new Outlook. Microsoft says new Outlook doesn’t support rules for third-party accounts such as Gmail, Yahoo and iCloud. Set up the rule in that provider’s own settings, for example as a Gmail filter.

Is it safe to forward invoices automatically?

Only to an address you control or a service you trust, because invoices carry your name, address and sometimes account numbers. Gmail shows a forwarding notice for the first week after you set it up. If you ever see that notice without having set up forwarding, Google advises changing your password immediately.

Sources consulted on Oct 15, 2026: Gmail Help, “Refine searches in Gmail”; Gmail Help, “Create rules to filter your emails”; Gmail Help, “Use Gmail with a screen reader” (list of filter options); Gmail Help, “Automatically forward Gmail messages to another account”; Gmail Help, “Open & download attachments in Gmail”; Google Workspace Admin Help, “Let users automatically forward their own Gmail emails”; Microsoft Support, “Manage email messages by using rules in Outlook”; Microsoft Support, “Edit or fix a broken rule in Outlook” (rule features by version); Microsoft Support, “Use rules to automatically forward messages”; Microsoft Support, “Open, save, and edit attachments received in Outlook”; Microsoft Learn, “Control external email forwarding and fix 5.7.520 errors”; Microsoft Learn, “Exercise - Monitor incoming emails” (Power Automate). Google’s help pages describe no built-in way to save Gmail attachments to Drive automatically. Microsoft documents one through Power Automate, which requires a work or school account.

Published Nov 5, 2026 by the Clivio team. Spotted a mistake, or have a better method? contact@clivio.app

Keep reading

Related pages

In Clivio, every attachment forwarded to your drop address waits for your OK in “To sort”, already read if it comes from an allowed sender.

Create your free account