Coder Social home page Coder Social logo

imap-move's Introduction

IMAP Move

This will move messages from one IMAP system to another

php ./imap-move.php \
    --source imap-ssl://userA:[email protected]:993/ \
    --target imap-ssl://userB:[email protected]:993/sub-folder \
    [ --wipe --fake --copy ]

--fake to just list what would be copied
--wipe to remove messages after they are copied (move)
--copy to store copies of the messages in a path

Shell Wrapper

Included is a shell wrapper to make life a bit easier, see imap-move.sh

imap-move's People

Contributors

djbusby avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

imap-move's Issues

General Question

Do you peaople know a solution to also migrate Caldav/Carddav?

sub-folder

sub-folder seems to be ignored on the destination path.

mailWipe() will always delete.

I haven't tested this, so something may be slipping by me here, but...
In line 222:
if ( ($_ENV['wipe']) && (imap_delete($this->_c,$i)) ) return imap_expunge($this->_c);

The if() statement will run imap_delete() as part of it's evaluation, resulting in the item being marked for deletion regardless of $_ENV['wipe']. The statement should be:
if ($_ENV['wipe']) {
imap_delete($this->_c,$i);
return imap_expunge($this->_c);
}

If imap_expunge() is dependent on imap_delete() completing successfully, there should be a separate evaluation.

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.