Skip to content

Moves messages around imap accounts, very useful for gmail migration

Notifications You must be signed in to change notification settings

provideyourown/imap-move

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

The source/target is of the form:

SCHEME://USER:PASS@HOST:PORT/[SUBFOLDER]

SCHEME is one of the following:

* imap-ssl	# most commonly used
* imap-tls
* imap-novalidate-cert		# use on shared hosts that fail due to invalid certificate

If you get the error - "Couldn't open stream {server.example.com:143}INBOX", use the imap-novalidate-cert scheme.

Shell Wrapper

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

About

Moves messages around imap accounts, very useful for gmail migration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 94.5%
  • Shell 5.5%