Migrate/copy mails between IMAP accounts.
- Perl 100%
| example.yaml | ||
| imap-copy.pl | ||
| README.md | ||
imap-copy
Hacked this long time ago when I moved to a new mail provider and the tools available back then for copying mails from one IMAP account to another weren't great or cost money. There are probably fancier tools around these days, but this is mine and it just does the job.
Installation
Install dependencies:
cpanm \
Net::IMAP::Client \
Term::ProgressBar \
IO::Prompt \
Getopt::Long::Descriptive \
YAML::Tiny
Usage
Create a configuration file with the old and new accounts as well as the
folders to copy (see example.yaml), then run
perl imap-copy.pl -c your-config.yaml