Mail Attachment Downloader PRO- How To
Help for the PRO editions of version 4.0: setting up accounts, running several accounts at once, checking what was downloaded, your license, and getting help fast when something doesn't work. Running the program as a Windows service? See the PRO Server how-to.
New for PRO in version 4.0 (builds 1080 and 1081)
- New in build 1081: CRM and ERP connections (Dynamics 365, Business Central, Salesforce, HubSpot) with the Send to CRM or ERP and Look up in CRM or ERP steps and a CRM or ERP watch; watches of Azure Blob, WebDAV, SFTP, FTPS, Google Drive and Dropbox; contact lists in Backup › Extract data; Keep it up to date in Restore; the Sender is new condition; and a right-click menu in the Rule Editor. More.
- Five editions: Free, PRO Backup, PRO Parser, PRO Rules Client and PRO Rules Server. Each has everything in the one before it. A license is activated with gearmage.com, or offline, and can move to another computer. More.
- PRO Rules, the Rule Editor and watches (PRO Rules Client and up): each kind of email gets its own rule, built in the Rule Editor, with new steps such as cloud upload, document management, DocuSign and Forward email. Test all rules... tries them on real emails first. Watches run your rules on new files in folders, network shares, cloud storage (SharePoint, OneDrive, S3, SFTP, Google Drive, Dropbox and more), DocuSign and your CRM or ERP, and in PRO Rules Server on database tables, Slack and Teams. More.
- Backup: the new Backup tab keeps each account's emails encrypted on your own system, to search, export, restore or import. More.
- Parser (PRO Parser and up): the Parser tab reads fields, line items and e-invoices out of emails and files, and sends the results to CSV, Excel, Google Sheets, a database or a webhook. More.
- AI Assistant: describe a rule in your own words and it draws it as a diagram you can change. A built-in AI model runs on your own system; an AI service is used only once you choose one. More.
- History and <multiple@multiple>: each account and watch remembers the emails it has seen, so nothing is downloaded twice, and failed steps are tried again by themselves. With <multiple@multiple>, each run names its account and the Downloads tab lists every account's emails. More.
- Notifications: a run summary to Slack, Teams, Telegram, Discord, Google Chat, ntfy, Pushover, a webhook or email, set up in Settings › Run summary.
- Security and privacy: passwords, sign-in tokens, keys and the secrets in rules are better protected. Like passwords, the secrets in rules aren't copied into an exported settings file: enter them again after an import.
All release notes, build by build.
Get the latest build
Before contacting support, or if anything doesn't work as expected, make sure you have the latest build. The program looks for a newer build when it starts and once a day, and shows an Update available banner. Click Install...: the program downloads the installer, checks that Gearmage signed it, then closes and installs it. The background service, if you use it, is updated with it. Nothing installs without your click.
To look right away, open Settings › Updates and click Check now. The same page shows the version you have, and turns the daily check on or off with Check for updates when the program starts, and once a day. The release notes list what changed in each build. You can also download a build from the link in your license email: see How to get the latest build.
Your settings are kept when you update. We still recommend a backup first: in Settings › Export / Import settings, click Export settings (passwords are not exported). Or in Settings › Logs and support, click Settings folder under Client and choose Save settings as a zip....
Coming from version 3? Version 4.0 installs beside it and takes over its accounts, settings and license. Version 3 keeps its own settings, and the 3.x guide still covers it. Using the background service? See the PRO Server how-to.
Set up your mail accounts
The PRO editions use the same mail server settings as the free edition. Follow these sections of the main how-to:
- Add the account with Add account › Email account... at the top of the main window. Pick your provider, and the setup walks you through each setting.
- Pick the right settings: usually filled in from your email address, including for your own domain. To change them later, pick the account and click Settings....
- Sign in: with your browser for Gmail, Outlook.com and Microsoft 365, or with the setup guide for Yahoo, iCloud and other providers that need an app password.
- Check the account is set up correctly with Test Connection before you add rules or schedule downloads.

Custom app registration (your organization's own app)
If your organization doesn't allow our app to access mail, or the program runs unattended and you don't want sign-ins to expire and ask you to sign in again, register your own app. Then pick the account, click Settings... and enter it on the App registration tab:
- Microsoft 365 work or school accounts, with Microsoft Graph, Exchange or IMAP. With a Client ID, Client secret and Tenant ID, the program uses app-only access: it doesn't depend on a user's sign-in, so password resets and sign-in policies don't stop it. For IMAP you can also leave the client secret blank, so users sign in through your app. Sending mail over SMTP works with custom Microsoft 365 apps too. Set it up in Microsoft Entra.
- Gmail and Google Workspace with IMAP: the Client ID and Client secret of your own Google Cloud OAuth client, of type "Desktop app". Users still sign in once, through your app. Set it up in Google Workspace.
It isn't available for POP3, Exchange on-premises or personal Microsoft accounts. Configuration help on the tab links to these guides. Click Test Connection after entering the details and before saving. If it fails, Connection diagnostics shows each stage of the sign-in. For the security side of app-only access, see Security.
Download from several accounts at once
- Set up and test each account on its own first.
- Pick <multiple@multiple> in the Account box at the top of the main window. The Settings... button next to it changes to Choose accounts....
- Click Choose accounts..., tick the accounts to download from, and click Validate and use selected. Your PRO Rules and each ticked account are checked: it must sign in, and its save folders must be writable. So is each account that a "Send mail" rule action or an email notification sends from. Every problem is listed at once.
- Click Connect and Download. The accounts run one after another. If one account fails, for example because its sign-in expired, the others still run. The failure shows in the Downloads tab, and the account is listed under Action required with what to do.
How many accounts run together depends on the edition: PRO Backup runs up to 3, PRO Parser up to 5, and PRO Rules Client and PRO Rules Server any number. Watches don't count.
<multiple@multiple> has no settings of its own: each account downloads with its own settings, and PRO Rules apply to every account. To change an account's settings, pick that account in the Account box. If an account gets stuck, Stop a download that's stuck for in Settings › Retries stops it, and the next account starts.
See what was downloaded, and what failed
The Downloads tab shows what each run did: the emails and files, sign-in, connection and folder errors, and which rule saved each file. With <multiple@multiple>, each run names its account.
- View chooses what the page shows: Emails or Files, a List or a Chart, Runs or History, and the work of This app or The service.
- When picks the days: This run, Today, Last 7 days, Last 30 days, All or Choose dates....
- Filters show one state (for example Failures only), one rule or one folder. Search finds words in the subject, sender and file name. Hide runs that found nothing keeps the run list short.
- Action required lists the accounts that can't run until you fix something, each with a button that shows what to do.
- Queue shows what is running or queued, what will retry and what failed.
History remembers each email an account has seen, so nothing is downloaded or processed twice, and failed steps are tried again by themselves. The History band under Connect and Download says whether it is on for the account. Click it for History's options, such as its start date, Backfill emails and Redo..., which downloads or processes again the dates, folders, rules or states you choose. How long the program keeps backups and History is set in Settings › Storage and clean-up.

Webhooks and other rule actions show whether they worked or failed. See how webhooks are retried and report failures.
Activate your license, or move it to another computer
- Enter your license. Without a license the PRO program works as the Free edition, and the License tab asks for it. Copy Email ID, Company, Type and Serial from your license email exactly (they are case sensitive), then click Validate. The program activates the license for this computer with gearmage.com. An upgrade license also asks for your old license: enter it and click Validate old license.
- No internet on this computer? Click Activate offline.... Copy the request code, open gearmage.com/activate on a computer that can reach it, paste the code and download the license file it makes. Bring the file back and click Import license file....
- All of the license's computers in use? The License tab says so and offers Free a computer.... A code goes to the license's email address. Type it in, pick the computer that no longer needs the license, and this computer takes its place. Each computer freed uses one move for 12 months. When no move is left, contact support and we'll free one for you.
Once activated, Settings › License shows whom the license is for and when its support or subscription ends, with Manage subscription and Clear license. Clearing the license frees this computer's place. If you bought support extensions, enter them with Enter support extension codes, then reinstall the service if you use it.

Get help fast
- Check the latest build (see above). Many problems are already fixed.
- Open Connection diagnostics for sign-in and connection problems: from the menu of the account's Settings... window, or from Settings › Logs and support. It shows the account's latest connection attempts and sign-ins, stage by stage, and warns when a firewall, proxy or antivirus inspects the traffic. Passwords, tokens and secrets are never shown.
- Search our help: the knowledge base, the blog and the PRO info page.
- Send a bug report from the program. In Settings › Logs and support, tick Verbose logging, make the problem happen again, then click Submit a bug report.... Describe the problem, add screenshots and choose how many days of logs to include. Settings are included unless you untick them; saved passwords, keys and sign-in tokens never are. With the service installed, you can include its logs too. The report opens as an email to support in your email program, so you can look it over before sending it.
To begin again with clean logs, use Clear all logs... from the Logs folder button in Settings › Logs and support.
Frequently Asked Questions
How do I run multiple accounts for each Connect and Download?
Pick <multiple@multiple> in the Account box at the top of the main window, click Choose accounts..., tick the accounts and click Validate and use selected. Then click Connect and Download. See Download from several accounts at once.
What are PRO Rules and why do I need them?
Each account has its own settings in the Account rule tab: which emails to search, which files to keep, and where to save them. With PRO Rules (PRO Rules Client and up), the rules in the PRO Rules tab decide instead, for one account or for all of them. Turn them on with Use PRO Rules for every account at the top of the PRO Rules tab. Once your account settings have been moved to rules, the tab says Rules always on.
PRO Rules give each kind of email its own rule: its own conditions, save folder, file names and steps, such as converting documents, or moving or deleting the email after download. This blog post explains how to move from per-account settings to rules. Please read it in its entirety before contacting support.
How do I re-order PRO Rules?
Drag a rule up or down in the PRO Rules tab. The order matters: each file is saved by the first rule that matches it.
Why does it download all my mail the first time I run it?
Nothing has been downloaded yet, so the first run goes through all the mail in the folders it searches, read and unread. After that, later runs take only new mail.
With History on (the History band under Connect and Download says so), each account remembers the emails it has seen, so nothing is downloaded twice, even after you pick All mail. To start from a given date instead, see the next question.
How do I download from a given date?
With PRO Rules on: set the Start date in the PRO Rules tab. It applies to every account, and overrides each account's own dates.
With PRO Rules off: set the start date on the Search page of the Account rule tab. Leave the end date unticked to have no end date.
With History on: History also has a start date for each account. Click the History band under Connect and Download to see or change it.
How do I re-download the same attachments?
With History on, click the History band under Connect and Download and choose Redo.... It downloads or processes again the emails you choose, by dates, folder, rule or state. To take emails from before History started, use Backfill emails.
With History off, choose All mail under Search in on the Search page of the Account rule tab. Tick Inline content (slower) too if you want attachments that are inlined.
Google blocked the sign-in or sent me a security alert
Google doesn't accept passwords from other programs. Gmail and Google Workspace accounts sign in with Google in your web browser instead: pick the account, click Settings..., then Test Connection, and sign in when your browser opens. See Signing in with your browser.
Google may send a "new sign-in" or "access granted" security alert the first time you allow the program. That's expected. More info about security
How do several rules work together in the PRO Rules tab?
Please read the description of PRO Rules first. A rule has conditions (which emails it works on), what to save and where, and actions that run in order after saving. If a rule's conditions match an attachment or the email itself, the file is saved where the rule says, then its actions run. Rules run from top to bottom, so their order is important.
How do I test PRO Rules?
In the PRO Rules tab, click Test all rules.... It runs the rules that are on, in the list's order, on emails you pick, as a download does, and shows which rule saves each file. Nothing is changed: files are saved to a temporary folder, and actions such as moving, deleting or sending are not done. To test a single rule while you edit it, use Test this rule....
After a real download, the Downloads tab shows which rule saved each file, and its rule filter shows only one rule's emails or files. If the wrong rule ran, check the order of your rules.
Having trouble connecting?
Start with the message the program shows: sign-in problems say what the provider needs. For Yahoo, AOL, iCloud and other providers that need an app password, follow the setup guide. Then open Connection diagnostics to see which stage fails. It also warns when a firewall, proxy or antivirus inspects the traffic.
You may be behind a corporate firewall or something may be blocking your connection. Check with your IT administrator to ensure that your host, port, TLS and IMAP/POP3 information is correctly entered and that you have a direct connection to the mail server. If the connection still fails, send us a bug report from the program.
I'm using Gmail and some attachments aren't being downloaded.
Some attachments are inlined. Tick Inline content (slower) under Search in: on the Search page of the Account rule tab, or in the PRO Rules tab when PRO Rules are on. If the attachment still doesn't download, send us a bug report.
Why can't I choose folders?
Some mail servers only support the POP3 mail server protocol.
The POP3 protocol inherently does not support folders whereas the IMAP protocol does.
To overcome this, first make sure that your mail server supports IMAP, then pick the account, click Settings... and change the protocol to IMAP.
Setting the date doesn't seem to work
If the account uses POP3 (see the account's Settings...), the program still needs to scan and download (and throw away) attachments from the start of time, even if the date is set.
What about winmail.dat attachments?
Outlook sometimes sends attachments packed in a winmail.dat file (TNEF). Version 4.0 unpacks it and saves the files inside as the email's own attachments.
I see "throttled" in the Downloads tab, what is that?
The mail server is slowing the download down (throttling). Some providers, like Gmail, do this when there are too many requests for one account. The download goes on, more slowly.
Where are the settings stored?
The settings are stored in the %AppData%\MAD4 folder of the logged-on Windows user. To open it, go to Settings › Logs and support and click Settings folder under Client. From there you can also save it as a zip file. The background service keeps its own copy in C:\ProgramData\MAD4Service. Version 3 keeps its settings in %AppData%\MAD, and 4.0 never changes them.
Why does my rule warn about a {FIELD} or the file name?
Conditions match the text exactly as you type it: they don't fill in fields such as {DATE_LOCAL[yyyyMMdd]}, so a condition with one never matches. Fields only work where the file is saved and named. The Rule Editor warns when this happens.
The saved file name format warns when it combines {FILENAMEEXT} with {FILENAME} or {EXT}, which would repeat the name or extension.