Giter Site home page Giter Site logo

timclicks / imapfiles Goto Github PK

View Code? Open in Web Editor NEW

This project forked from whojarr/imapfiles

2.0 2.0 1.0 77 KB

python code to download attachments from messages in an imap mailbox via command line or import as a module in other python scripts.

Python 100.00%

imapfiles's Introduction

imapfiles Version 0.1
https://github.com/whojarr/imapfiles/

Contact:
Digital Creation Ltd
[email protected]

Imapfiles was developed as free software to download the attachments contained in emails on an imap server and optionally
archive those messages to another imap folder once processed.

The python code works from the command line or as a module for use in other python scripts.

Usage: imapfiles [OPTIONS]

Options:

-c, --config
    path to a ini style config file. e.g.
    
    [general]
    destination=./files
    [imap]
    server=localhost
    username=username
    password=password
    folder=INBOX
    archive=archive

-s, --server
    imap server name or ip address

-u, --username
    imap users name

-p, --password
    imap users password

-f, --folder
    imap folder to download attachemnts from

-d, --destination
    local directory to store downloaded attachments.
    attachments are stored in date folders (bnsed on the emails sent date) with sub folders for each message.

-a, --archive
    you can optionally specify an imap folder to archive processed emails to avoid having to process all messages
    time the command is run

Examples:

python ./imapfiles -c imapfiles.cfg
python ./imapfiles -s localhost -u username -p password -f INBOX -d localdirectory

imapfiles's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

usethekey

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.