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
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.

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.

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.

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.

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.

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.

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.
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.