Giter VIP home page Giter VIP logo

emlsync's Introduction

emlSync

Summary

This is a custom Python tool to upload emails from a local folder to a remote IMAP server.

Situation

I used to manage my emails with ProtonMail (excellent service, by the way). For personal reasons, I decided to migrate to the Apple iCloud email service. ProtonMail provides an easy-to-use tool to retrieve and download all your emails locally. The operation took a few hours but worked great, and I now have several thousands of .eml files on my computer. So, here is the Python script I developed to do the job!

Few technical considerations

If you have a few thousand emails to migrate, a connection issue will probably happen while uploading. To mitigate this issue and to prevent duplicated emails, the script works in two phases:

1 - Scan: Scan the folders and record every email information as a new SQLite local database record

2 - Upload: For each unhandled record, try to upload the email and update its status (uploaded or failed) in the database.

If remote server closes connection (or you disconnect your wifi...), the script will check for SQLite database existance. If the SQLite database is found it will ignore the Scan operation and directly resume the Upload operation. If you want to force the Scan operation, simply manually delete the database file. Be careful, doing this might result in duplicate email upload.

emlsync's People

Contributors

julienboriasse 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.