GithubHelp home page GithubHelp logo

email_downloader's Introduction

From the "Initial spec" issue:


The library should consist of a single class, that is used as follows:

mailbox = EmailLib(hostname="some.hostname.com", ssl=True, port=993, email="[email protected]", password="some_password")

mailbox.checksize()  # This should return the size in MB i.e. "1267.5" (~1.3G); this can be achieved by checking the sizes of all e-mail messages, from all folders, and adding them together.

mailbox.downloadmails(dir="/home/user/dl_dir")  # This should download all e-mail messages, from all folders, into the local directory specified, or use the current working directory as a default. It should preserve the e-mail account's folder structure, i.e. "Sent" -> "Sent", "Drafts -> "Drafts", "Inbox" -> "Inbox", etc.

mailbox.uploadmails(dir="/home/user/dl_dir", hostname="other.hostname.com", ssl=True, port=993, email="[email protected]", password="some_other_password")  # This should upload all e-mail messages, from all folders, from the local directory specified, or use the current working directory as a default. It should preserve the e-mail account's folder structure, i.e. "Sent" -> "Sent", "Drafts -> "Drafts", "Inbox" -> "Inbox", etc.

mailbox.transfermails(dir="/home/user/dl_dir", hostname="other.hostname.com", ssl=True, port=993, email="[email protected]", password="some_other_password")  # This should simply perform mailbox.downloadmails() and then mailbox.uploadmails(), as a convenience function.

The tasks may have to be implemented asynchronously, or at least have the option to be, as we may have to download 1,000s or 10,000s of e-mail messages, which has the potential of being a very slow operation.

email_downloader's People

Contributors

vadymrud avatar

Watchers

James Cloos avatar  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.