Help
This page is being written alongside the app. The sections below cover what is already final. Step-by-step guides for creating an archive, adding an account and choosing folders will be added before release.
Gmail and Google Workspace
Gmail and Google Workspace work with an app password. In the command line, the server is imap.gmail.com.
Search
Type a word and ImapBro looks for it anywhere in the message: text, subject, sender, recipients and attachment names. Search ignores case and diacritics.
from:senderto:recipient, including copiessubject:subject linefile:attachment namehas:attachmentonly messages with an attachmentsince:andbefore:a date, written as28.11.2026or2026-11-28"final files"a phrase in quotes is matched in exactly that word order
Example:
invoice from:printworks has:attachment since:2026-01-01The advanced search form has the same fields and writes the query into the search box for you.
Restore and export
Restore sends archived mail back to the same account or to another account in the archive. You always see the plan first. Messages that are already at the destination are skipped, so a restore can be stopped and repeated.
Export writes mail to .eml files or mbox, or sends it to an IMAP mailbox that is not an account in the archive.
Backing up the archive
The whole archive is one folder. A copy of that folder is a complete backup, and nothing else is needed. After copying an archive to another disk it is worth running the integrity check.
Command line
The program imapbro.exe is installed next to the app. Every command takes the archive folder as its first argument. imapbro --help lists all commands, and imapbro <command> --help lists the options of one command.
From an empty folder to archived mail:
# 1. a new, empty archive
imapbro init D:\Archive
# 2. an account; the program asks for the password and checks the login
imapbro account add D:\Archive --name "Ana" --host mail.example.com --username [email protected]
# 3. list the folders on the server (the account got number 1)
imapbro folders D:\Archive 1
# 4. choose which folders are archived
imapbro select D:\Archive 1 INBOX Sent
# 5. download the mail
imapbro sync D:\ArchiveEvery later run of imapbro sync D:\Archive downloads only what is new.
Archiving from a scheduled task
The app archives on its own only while it is open. To archive while it is closed, run imapbro sync from Windows Task Scheduler. This command creates a task that archives every hour:
schtasks /Create /TN "ImapBro archiving" /SC HOURLY /TR '"C:\Path\to\imapbro.exe" sync "D:\Archive"'Replace C:\Path\to\imapbro.exe with the real location of the program. The task must run as the user who added the accounts, because the passwords are in that user's credential store.
Error log
A file next to the settings records how every job ended and every problem. It contains no messages, passwords or tokens, and it is not sent anywhere.
Contact
Send us a message with the form below. We reply by email.