Coder Social home page Coder Social logo

wrzlbrmft / imapcopy Goto Github PK

View Code? Open in Web Editor NEW
64.0 64.0 15.0 58 KB

Recursively copy all e-mail messages and folders from one IMAP account to another.

License: GNU General Public License v3.0

PHP 100.00%
account courier-imap email gmail imap inbox mail mailbox migration

imapcopy's People

Contributors

ccoff avatar code28 avatar simialbi avatar wrzlbrmft 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  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

imapcopy's Issues

Windows command prompt out of memory and shuts down on Windows 10

Hi guys,

It's not really a coding issue, but I thought it would be good to try to find people who might have had the same issue and post it here.

As a test case, I tried to migrate a Gmail box with more than 50K emails over to another IMAP test box, everything runs smoothly, except the Windows CMD prompt itself. Every few hundred emails onwards, it crashes. I then rerun imapcopy with startFolderNum and startFolderMessageNum provided but it keeps on crashing every few hundred emails onwards. I'm guessing the Windows CMD prompt can't really handle of the output. Would there be a (quick) way of disabling this but still see an indication of where the script's at and what went OK or gave an error? I was thinking about writing the output to a file as a fix.

Thoughts?

// T

I would like to modify your code.

Hi Matthias,

the GNU GPL v3 license says clearly that changing the source is not allowed. Is there any possibility to change that?
I would like to develop an (possibly open source) GUI on top of your script. For that purpose it would be nice, if i could change the structure (psr 4 autoload).

Please let me know if it is possible.

storing destination message... ERROR

hello,

source reading ok and destination connexion ok.
but when transfering mail i have this error message

*** recursively copying folders and messages...
... (f:1/239) 'Ãléments envoyés'
opening source folder... OK
source folder message(s): 15060
destination folder: 'Ãléments envoyés'
creating destination folder... ERROR
opening destination folder... OK

   ... (f:1/239;m:33/15060,33/183189) 'RE: tres tres urgent'
        source message date is 13-Jul-2011 17:13:00 +0200
        loading source message (314808 byte(s))... 364274 byte(s) read
        storing destination message... ERROR

502 error

When I try to start it it can do the first 400 emails normally, then the server returns this error. What will proceed?

502 - Web server received an invalid response while acting as a gateway or proxy server.
There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.

Destination imap timeout

Hi, thanks for your work,
I have just one possible improvement -
When I want to migrate huge account - i.e. 20000 emails, destanation imap server can timeout.
Please just migrate lines with connection to destination folder after counting emails in old imap server. It is working after that great again.

Trying to get property of non-object in /root/imapcopy-master/src/lib/classes/Imap.php on line 246

Runs fine for about 700 messages and then starts doing this:

... (f:1/31;m:692/10025,692/17018) 'Re: Sat night...'
source message date is 11-Mar-2010 11:06:17 -0600
loading source message (2819 byte(s))... 2819 byte(s) read
storing destination message... OK

... (f:1/31;m:693/10025,693/17018) 'it's doing it again...'
source message date is 11-Mar-2010 11:07:54 -0600
loading source message (1764 byte(s))... 0 byte(s) read
storing destination message... ERROR

... (f:1/31;m:694/10025,694/17018) ''
PHP Notice: Trying to get property of non-object in /root/imapcopy-master/src/lib/classes/Imap.php on line 246
source message date is 31-Dec-1969 18:00:00 -0600
loading source message (? byte(s))... 0 byte(s) read
storing destination message...PHP Notice: Trying to get property of non-object in /root/imapcopy-master/src/lib/classes/Imap.php on line 246
ERROR

... (f:1/31;m:695/10025,695/17018) ''
PHP Notice: Trying to get property of non-object in /root/imapcopy-master/src/lib/classes/Imap.php on line 246
source message date is 31-Dec-1969 18:00:00 -0600
loading source message (? byte(s))... 0 byte(s) read
storing destination message...PHP Notice: Trying to get property of non-object in /root/imapcopy-master/src/lib/classes/Imap.php on line 246
ERROR

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.