wrzlbrmft / imapcopy Goto Github PK
View Code? Open in Web Editor NEWRecursively copy all e-mail messages and folders from one IMAP account to another.
License: GNU General Public License v3.0
Recursively copy all e-mail messages and folders from one IMAP account to another.
License: GNU General Public License v3.0
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
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.
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
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.