imap-forward
A simple tool that copies/moves messages from one IMAP mailbox (folder) to another.
It supports copying the messages as a one-time operation, or as a daemon (using IDLE for low-latency syncing).
Usage
To copy messages from inbox [email protected]
to [email protected]
and continuously sync:
imap-forward -upstream-url example.com:993 -upstream-username [email protected] -upstream-password himom -downstream-url other.example.com:993 -downstream-username [email protected] -downstream-password hidad
See -copy
and -once
to copy instead of moving, and to run once and exit instead of syncing continuously.
Acknowledgements
This is just 200 LoC over go-imap 😉
License
MIT