Giter VIP home page Giter VIP logo

maildir2gmail's Introduction

maildir2gmail

Maildir 2 Gmail

Overview and History

The maildir2gmail.py script allows uploading a maildir directory into a Google Gmail account, using IMAP.

Scott Yang provides the original maildir2gmail.py script on his website. There is no license included, but according to a Tweet (copy) the license is "provided as is" (public domain).

The script in this repository contains a few additional features which I found useful while migrating data, as well as additional documentation how to use it.

Usage

./maildir2gmail.py [-f] [-n] [--ignore-missing-date] [--max-size=MAX_SIZE] -u <username> -p <password> <maildirs>

By default, all mails are uploaded to All Mail in Gmail, following the Google concept of "never delete mails, just archive everything". A folder can be specified using the -f option. Non-existent folders will be created automatically.

Mails can be marked as Unseen (new) using the -n option.

Use option --ignore-missing-date to ignore all messages with missing date. In this case, messages are imported to gmail with the last modification time of the file.

You can set the maximum size for messages with the option --max-size=MAX_SIZE (in bytes). Messages that are larger than the defined size are skipped. Default is 25 MB (Gmail limitation for IMAP).

Username and Password are required, IMAP for your mailbox must be turned on (do this in the Settings for your mailbox). In addition you have to allow less secure apps in your Gmail interface.

maildir2gmail's People

Contributors

andreasscherbaum avatar dergali avatar liaraalis avatar

Watchers

 avatar

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.