Skip to content
Gearmage Logo
  • About
  • Products
    • Mail Attachment DownloaderMail Attachment Downloader Free
    • Mail Attachment DownloaderMail Attachment Downloader PRO
      • PRO Editions and Pricing
      • PRO Rules
      • PRO Parser
      • PRO Backup
      • PRO SDK
    • Gear Doc ConverterGear Doc Converter Free and PRO
    • Photo OrganizerPhoto Organizer Free
  • Use cases
      • Document management
        • Emails into M-Files
        • Emails into DocuWare
        • Email capture into Laserfiche
        • Archive signed DocuSign documents
        • Enterprise email ingestion
      • Extract and transform data
        • Extract, transform and load (ETL)
        • Data from email body text
        • Data from PDF attachments
        • Tables and line items
        • Scanned documents and photos (OCR)
        • E-invoices: ZUGFeRD, XRechnung, Peppol
        • Purchase orders from email
        • Leads from web-form emails
        • Extract data with AI
      • Invoices and documents
        • Invoice and AP automation
        • Invoices into Business Central
        • Print email attachments
        • Convert Word, PDF and Excel files
        • Emails to PDF
      • Cloud storage and SFTP
        • Emails and attachments to SharePoint
        • Emails and attachments to OneDrive
        • Emails and attachments to Google Drive
        • Emails and attachments to Amazon S3
        • Emails and attachments to Azure Blob Storage
        • Emails and attachments to SFTP
        • All cloud storage options
        • Watch SFTP and cloud folders
        • Files from links in emails
      • CRM and contacts
        • Email data into Salesforce
        • Email data into HubSpot
        • Emails and contacts into your CRM
        • Email addresses to a contact list
      • Data and spreadsheets
        • Email data into Google Sheets
        • Emails to CSV or Excel
        • Emails to a database
      • APIs, scripts and AI
        • Send email data to REST APIs
        • Run PowerShell scripts from email
        • Webhooks, ChatGPT and Claude
        • Summarize emails with AI
      • Mailboxes and archiving
        • Outlook emails to a folder
        • Gmail emails to a folder
        • Automated email archival
        • Move email between accounts
        • Alerts when an email doesn't arrive
    • No use case matches . Search all PRO features or ask us.
  • Partner
  • Blog
  • Contact
Mail Attachment DownloaderVersion 4.0Version 3.x

Download emails for invoice processing

Read the invoice number, supplier and totals from invoice emails, file each invoice by its contents and hand it to your invoice processing software.

The Fields step: an Acme invoice with the invoice number, dates, PO number, total and supplier highlighted, each field found in 3 of 3 samples

Invoice processing software works best when invoices arrive in a folder it watches, with names it can trust. Getting them there from a mailbox is the hard part.

Some tools need an email client such as Outlook installed and licensed. Others run in a shared cloud, so your invoices sit on someone else’s servers next to other customers’ data, and need a security and privacy review first.

Mail Attachment Downloader 4.0 sits in between. It runs on your own system (a PC, a server or a cloud VM), connects straight to the mail server, and saves to the folders you choose. No Outlook, and your invoices stay with you.

This post shows how to do it with the PRO Parser: read the invoice number and supplier out of each invoice, save the PDF under a name built from them, and keep a CSV of what came in.

In this post
  1. What we will build
  2. Step 1: Pick a few sample invoices
  3. Step 2: Show it the invoice number
  4. Step 3: Decide what a good invoice looks like
  5. Step 4: Name the files and keep a CSV
  6. Step 5: Turn it on
  7. Approve the doubtful ones
  8. Hand it to your invoice processing software
  9. Prefer patterns? The advanced path
  10. What the Free edition does
  11. Which edition do you need?

The tool in this guide: Mail Attachment Downloader PRO ParserSee PRO Parser →

What we will build

Contoso’s accounts payable mailbox, ap@contoso.example, gets invoices from Acme, Northwind and Fabrikam. A typical email has the subject “Invoice INV-2026-0423” and a PDF attached.

We want each invoice saved like this, ready for the invoice processing software:

D:\Invoices\Acme Office Supplies\INV-2026-0423_invoice.pdf
D:\Invoices\Northwind Traders\INV-2026-0424_invoice.pdf

We also want one row per invoice in a CSV file, and nothing saved twice.

In 3.x this meant a rule in the Global filters tab and a regular expression for the invoice number. In 4.0 that tab is called PRO Rules, and for invoices there is a better way: the Parser.

Step 1: Pick a few sample invoices

Open the Parser tab and click “New parser”. The first step, “Source”, is where you show the Parser what your invoices look like.

  • Choose “Emails from a mailbox”, pick the account, and search for “invoice”.
  • Leave “Group similar” ticked. Invoices from one supplier are grouped together.
  • Pick 3 to 25 emails of the same kind. You can also use “Emails in the backup” (nothing is fetched again) or “A file”, such as a PDF you saved earlier.
The Source step of a new parser: four emails that look like invoices from acme.example, three of them picked as samples
Search the mailbox, and pick a few invoices of the same kind as samples.

Then click “Next: Fields”.

Step 2: Show it the invoice number

In “Fields”, select the invoice number in the sample. That’s it: the Parser works out how to find it again, tries it on every sample, and shows a hit rate such as 3 / 3 under the field. Do the same for the supplier, the invoice date and the total.

The Fields step: an Acme invoice with the invoice number, dates, PO number, total and supplier highlighted, each field found in 3 of 3 samples
Highlight a value once. The Parser finds it in the other samples too.

Rather not mark each value? Click “Suggest fields and tables”, or add a field “Using AI” and describe it in words, such as “the invoice number”. You choose the AI: the built-in AI runs on your own system and sends nothing anywhere.

Two more things the Parser does for invoices:

  • Line items. It reads the table of an invoice as rows and columns, and checks that the lines add up to the subtotal.
  • E-invoices. If the invoice carries Factur-X, ZUGFeRD, XRechnung, Peppol or UBL data, the Parser reads it exactly, with no pattern and no AI. These fields show “From invoice data”.

Step 3: Decide what a good invoice looks like

In “Checks” you tell the Parser what to hold back:

  • A check per field, such as the total “Between” 0.01 and 100000.
  • “Subtotal plus tax equals the total”, and the lines adding up to the subtotal.
  • “Duplicates”: if the same invoice number and supplier was parsed before, “Skip it and note it”. A supplier who sends the same invoice twice won’t be paid twice.
The Checks step: a range check on the total, sum checks, a duplicate check on invoice number plus supplier, and the review queue settings
Checks, sum checks and the duplicate-invoice check, tried on the samples before anything runs.

An invoice that fails a check, or that the AI was less sure of than you allow, waits in “Needs you”. Nothing is saved, written or moved for it until someone approves it.

Step 4: Name the files and keep a CSV

In “Output”, under “Save files”, choose what to keep:

  • “The attachments” for the PDF invoices.
  • “The email and its attachments” when some suppliers put the invoice in the email itself. The email is saved as an .eml file next to the files.

Then set the folder and file name. Click “Fields…” to insert any field the Parser reads, or any email field:

Folder: D:\Invoices\{SUPPLIER}
File name: {INVOICE_NUMBER}_{FILENAME}{EXT}

Missing folders are created. You can add the month too, for example D:\Invoices\{SUPPLIER}\{DATE[yyyy-MM]}.

Turn on “CSV file” for a running list of invoices. Each column takes a field, such as {INVOICE_NUMBER} or {TOTAL}. Processing the same email again replaces its row instead of adding a second one. Excel and Google Sheets work the same way.

The Output step: Save files set to the attachments, and a CSV file with columns for invoice number, dates, PO number, total and supplier, with a preview of the CSV row
Choose what is saved and how it is named, and which values go to the CSV. Each output has a Test button.

Step 5: Turn it on

In “Run on”, choose the accounts. The Parser shows which of your recent emails it would pick, and which look wrong, so you can fix its conditions first. Tick “Process the emails in the backup now” to file the invoices of the last 30 days straight away, without downloading them again.

Leave “Turn on after saving” ticked and save. From now on the parser runs with each download. Parsers run first; anything no parser takes is saved by the account’s own settings.

Approve the doubtful ones

Open Parser › “Needs you” to see what is waiting. You see the email next to its values, with how sure the AI was. Fix a value if needed and click “Approve and run the actions (Alt+A)”. Or skip it for now, or reject it.

Needs you: an invoice whose supplier was read with 58 percent confidence, shown beside its values with Approve, Skip and Reject buttons
An invoice waiting because the supplier was read with low confidence.

Hand it to your invoice processing software

With the invoices in D:\Invoices, the simplest hand-off is a watched folder: point your invoice processing or capture software at it. The folder can also be a network share, and it doubles as a second copy of every invoice you received.

Need more than a folder? A parser is saved as a PRO rule. With PRO Rules you can open it in the Rule Editor and add steps after “Run Parser”:

  • PRO Rules Client: “Upload to cloud”, “Send to document management” (Laserfiche, M-Files, DocuWare), “Add a row to a spreadsheet”, “Move or copy the email”.
  • PRO Rules Server: “Save to a database”, “Run a script”, “Run a command line”, “Web hook”. The Parser’s own SQL database, webhook and “Tell me” outputs need PRO Rules Server too.

PRO Rules Server also runs as a Windows service, on a desktop or Windows Server, so invoices keep flowing with no one signed in.

Prefer patterns? The advanced path

If you already know regular expressions, PRO Rules still lets you find a field yourself. In the Rule Editor, under “Fields to find”, click “Add a field” and choose “By pattern”:

  • “Look in:” Subject
  • “Pattern:” ^.*Invoice (INV-\d{4}-\d{4}).*$
  • “Replace with:” $1

Type a sample subject in “Try it on:” to check the result. The field can then go into the file name, such as {SUPPLIER}\{INVOICE_NUMBER}_{FILENAME}{EXT}.

For many similar invoices, the Parser is still the better choice: it checks totals, catches duplicates and holds doubtful reads. See Extract data from emails and attachments for the advanced options.

What the Free edition does

The Free edition of 4.0 is for personal use. It saves attachments, emails as .eml files, or both, from one account per run, on no schedule or a daily one.

In the “Account rule” tab, under “Folders and file names”, you choose what goes into the “Saved file name”: the file’s own name, who it is from, the subject and the date. Tick “ID, to make each name unique” so two files with the same name don’t overwrite each other. You can also create a folder for each sender or each mailbox folder.

The Free edition's Account rule tab: what to save, the saved file name choices and the folder options
The Free edition: a fixed choice of name parts and folders, per account.

What Free can’t do is name a file from what is inside it. A folder per supplier and an invoice number in the file name need PRO Parser or higher.

Which edition do you need?

  • PRO Parser: everything in this post up to “Approve the doubtful ones”, with CSV, Excel and Google Sheets output, up to 5 accounts per run. Includes PRO Backup.
  • PRO Rules Client: adds the Rule Editor, cloud uploads, document management and patterns of your own.
  • PRO Rules Server: adds databases, scripts, webhooks and the 24×7 Windows service.

Each edition has a 30-day money-back guarantee. See pricing.

Mail Attachment Downloader

PRO Parser: read invoices out of your email

Invoice numbers, suppliers, totals and line items from emails, PDFs and scans, into Excel, Google Sheets or CSV. No code.

See PRO Parser →Download free

Free edition for personal use. Every PRO edition has a 30-day money-back guarantee.

Related

  • PRO Parser: read values out of invoices, orders and reports
  • AP invoice email automation and integrations
  • Save many emails into many folders, named your way
  • Checks, duplicates and the review queue
  • Extract data from emails and attachments
  • Save emails and attachments to a database

Contact us with any questions about this post.

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X

Like this:

Like Loading…

Related

Author gearmagePosted on March 21, 2016December 2, 2026Categories Data extraction and invoices, Mail Attachment Downloader, TipsTags download email invoice, email extractor, email to invoice, extract data from email, extract email invoice, invoice processing

Post navigation

Previous Previous post: PDF to DOCX conversion and more
Next Next post: Nested email actions: unzip, convert or decrypt PDF and run a script

Pinned

  • What’s new in Mail Attachment Downloader 4.0
  • Global Filters (now PRO Rules) – a complete walkthrough
  • Save email attachments to SharePoint, OneDrive, S3, Dropbox or Google Drive automatically
  • Save emails and attachments to a database
  • Download emails for invoice processing
  • Extract data from emails and attachments – an in-depth guide
  • How to back up Gmail and Microsoft 365 email to your own system
  • Export emails from Gmail and Microsoft 365 to PST, MBOX, EML or PDF
  • Bulk download emails, attachments and save

Recent Posts

  • Send emails and invoices to your CRM or ERP: Dynamics 365, Business Central, Salesforce and HubSpot
  • Watch folder and process files automatically: SharePoint, S3, Teams
  • Email to webhook: send email data and attachments to an API or Zapier automatically
  • Email attachments to DocuSign automatically: send documents for signature and file the signed copies
  • Save email data to Excel or Google Sheets: one row per email or invoice line
  • Email to DocuWare, Laserfiche or M-Files: file email attachments with index fields automatically
  • Email to Slack notifications: Teams, Telegram and more when attachments arrive
  • Download attachments from a shared mailbox in Microsoft 365 automatically
  • Create email rules with AI: describe what you want, test it, save it
  • Migrate Gmail to Microsoft 365, or any mailbox to another provider

Categories

  • Document Converter
    • Tips
  • General
  • Mail Attachment Downloader
    • Announcements
    • Features
      • AI
      • Alerts and notifications
      • Backup, export and migration
      • Cloud storage and document systems
      • CRM and ERP
      • Data extraction and invoices
      • Databases and spreadsheets
      • Email accounts and sign-in
      • Email security
      • Integrations and automation
      • PDF and documents
      • PRO Rules
    • Getting started
    • Tips
    • Version 3.x
Gearmage Logo

Gearmage develops software and services that save time and money and improve productivity. In business for over 10 years and trusted by businesses worldwide.

Products

  • Gear Doc Converter Free and PRO
  • Photo Organizer Free
  • Mail Attachment Downloader Free
  • Mail Attachment Downloader PRO
  • PRO Rules
  • PRO Parser
  • PRO Backup
  • Mail Attachment Downloader SDK

Company Info

  • About
  • Contact
  • Blog
  • Partner

Top Articles

  • Process email and attachments – tips and tricks
  • PRO features: multiple email accounts and rules
  • Automate emails and integrate applications

© 2026 Gearmage LLC. All Rights Reserved.

  • Terms & Conditions
  • Privacy Policy

All product and company names are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.

%d