Code Monkey home page Code Monkey logo

gmail-mbox2maildir's Introduction

GMail MBOX to Maildir

How to use these two Python/Perl scripts to migrate a GMail inbox to a cpanel / dovecot / maildir inbox โ€” when you have a lot of emails and other, simpler, imports fail.

You'll need FTP and SSH access to the server; or, if you can't connect over SSH, make sure there's a file manager that permits unzipping in your host's admin interface.

1. Download MBOX from Google Takeout

2. Split MBOX by labels

./mbox_split.py --infile google_mbox.mbox --prefix split_

You may need to chmod 755 mbox_split.py to be able to run.

Alternatively, you can just export by label from Google Takeout directly.

3. MBOX to Maildir

./mb2md.pl -s ~/path/to/split_Inbox.mbox -d ~/path/to/output/Inbox

Notes:

  1. may need chmod 755 mbox_split.py to be able to run
  2. source and destination need absolute paths

4. Zip the new/ folder for each output mailbox

5. Upload Zip to server in appropriate maildir mailbox folder, and expand via SSH:

unzip -j Inbox.zip
rm Inbox.zip

(The -j flag will make sure the zipped new folder will extract in-place, with no additional folder structure)

6. (Optional) Access inbox via webmail and mark everything as read

gmail-mbox2maildir's People

Contributors

danburzo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gmail-mbox2maildir's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.