Giter VIP home page Giter VIP logo

imapcp's Introduction

IMAP4 mailbox copy tool

Usage:
imapcp.py [--move] [--box name] uri_source uri_dest

--move                - move instead of copy
--box name            - copy/move only box named 'name', else - copy all boxes
--ssl                 - use ssl
uri_source / uri_dest - URI: user[:password@host:port]
    if password omitted it will be prompted,
    if host omitted - 'localhost' used
    if port omitted - default IMAP4 port (143) used

Example I - Copy the complete mailbox:
======================================
python imapcp.py --ssl "[email protected]@imap.sourceserver.com:993"  "[email protected]@imap.targetserver.com:993" 
# As you didn't gave your password here you'll be asked for. Here you can check if the username is parsed correctly.
password for [email protected]: *********
password for [email protected]: ******
# Now you can get a cup of coffee...
...
29 messages copied from Trash
20 messages copied from INBOX.Family
0 messages copied from Spam
0 messages copied from Queue
2 messages copied from INBOX.Company
2 messages copied from Drafts

Example II - Copy only a specific subfolder:
============================================
For example you have the following folder structure and you want only copy the subfolder 'INBOX.Family'.
├── .INBOX.Family
├── new
└── .Trash
python imapcp.py --ssl --box INBOX.Family "[email protected]@imap.sourceserver.com:993"  "[email protected]@imap.targetserver.com:993" 


ERROR HANDLING: Please choose the other branch if you get an error exception to know where you can bug fix your Python libraries.



imapcp's People

Watchers

 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.