View on GitHub

Tristan Hill

Blog about IT related stuff

Restoring Gmail Takeout

Recently I wanted to merge an old gmail account with my main one. The best way to achieve this seems to be by taking a Takeout of the Gmail data and restoring into the other account. IMAP to IMAP seemed to be more time consuming and suffer from not dealing with Gmail labels properly.

After some while searching for options I can across the following tools

From these only the last seemed capable of restoring the Takeout's mbox file. I extracted the Takeout's all.mbox to ~/Downloads/gmail and then ran the script.

python gyb.py --email my@gmail.com --action restore-mbox --local-folder ~/Downloads/gmail