Wednesday, October 28, 2026
HomeSoftware EngineeringThe best way to Bulk Transfer All Electronic mail from One Account...

The best way to Bulk Transfer All Electronic mail from One Account to One other utilizing the CLI

[ad_1]

If you end up able the place it’s essential sync all emails from one account to a different, then you should utilize the imapsync command-line software to bulk copy, or transfer the whole lot for you.

Step 1 – Get imapsync

You must get the imapsync software operating domestically.

It may be discovered right here https://github.com/imapsync/imapsync

Alternatively, if you’re utilizing a Mac and have homebrew put in, you then’re in luck!

Merely brew set up imapsync and also you’re prepared.

Step 2 – Allow imap on the accounts

By default, imap is commonly disabled on the e-mail server. We are going to discover Gmail on this case to check a sync.

In Gmail, underneath Settings, discover Forwarding and POP/IMAP and make it possible for imap is enabled.

Additionally make it possible for Auto-Expunge is off, and choose Instantly delete the message without end. Guarantee that Folder dimension limits are usually not set.

Gmail imap settings

Step 3 – Configure your account creds

You will want the username and password for every account, so have them handy!

Step 4 – Run the command!

Now you can run the software to switch all emails from account1 to account2.

Sync from host1 to host2 and delete after success on host1

This feature will assist you to routinely sync the whole lot in source_account (host1) to destination_acount (host2) and on profitable migration of e mail, it’s going to delete the e-mail/s within the source_account.

This feature is nice if you’re migrating from 1 account to a different:

Code language: plaintext (plaintext)

Sync from host1 to host2 with out deleting something

When you don’t need to delete any e mail/s in your source_account (host1) after profitable e mail transfers, then you possibly can merely omit the --delete1 flag, as follows:

Code language: plaintext (plaintext)

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments