CLI tool to synchronize emails between Source and Destination servers over secure port tcp/993 (IMAP over TLS).
- Config File (
-cor--config): Path to Configuration File - Verbosity (
-vor--verbose): OutputDEBUGLogs - Quiet (
-qor--quiet): No Output - Help (
-hor--help): Show Help Menu - Version (
-Vor--version): Show Version
list: List Source Mailboxessync: Synchronize Mailboxeshelp: Show Help Message
- Create a basic
creds.conffile
[src]
host="mail.example.com"
user="test@example.com"
password="MyMailPassword"
[dst]
host="mail2.example.com"
user="test2@example.com"
password="MyMail2Password"- Execute
listcommand to list source mailboxes
mail_sync -c creds.conf list- (Optional) Modify
srcsection oncreds.confto filter certain mailboxes withinclude&excludekeywords. This specific example syncs all (*) mailboxes butINBOX,Sent&Trash, which are ignored.
[src]
host="mail.example.com"
user="test@example.com"
password="MyMailPassword"
include="*"
exclude="INBOX,Sent,Trash"
[dst]
host="mail2.example.com"
user="test2@example.com"
password="MyMail2Password"- Execute
synccommand to synchronize mailboxes
mail_sync -c creds.conf sync- Visit Release page
- Download pre-built binary based on your platform:
- Windows (
mail_sync.exe) - Linux AMD64 (
mail_sync_amd64) - MacOS (
mail_sync_darwin)
- Windows (
Requirements
Steps
- Clone repository
git clone https://github.com/pcs289/mail_sync.git- Compile source code
cd mail_sync
cargo build --release