imap_listmailbox failed - archive.sh not populated
This is an updated version of the IMAP Migration Tool
Brought to you by:
newtonpasqual
Hi, I decided to try out this tool, since it is supposed to do what I want to do, which is migrate some IMAP email. However, I have run into a stumbling block.
I run the tool, and I get this:
imap_listmailbox failed:
Warning: Variable passed to each() is not an array or object in C:\Inetpub\vhosts\icodesystems.ca\httpdocs\archivesetup.php on line 77
And all that is written to my scripts/archive.sh file is "#!/bin/sh" (no quotes)
I'm wondering if this is something you've experienced, and could give me a little bit of guidance on.
Thanks
rob
Hi robpet,
Thanks for reporting!
So, unfortunatly this system was developed to run over Unix systems, there are no support for Windows Servers yet.
I will maintain this as an open ticket, since I guess someone can do a "archieve.BAT" to run the migration itens.
See you!
I just want to clarify your comment. Are you saying that this script was designed to run (execute) only on Linux, or the server that houses the IMAP account need to be Linux?
And I supposed, what about the destination server...could that be Windows based?
Thanks
rob
Hi Rob,
The script was designed to run on Linux only.
About IMAP Server, that can be Linux or Windows, beacause the IMAP is a protocol, in this way they talk the same language/parameters in any OS.
I think anyone who know less DOS / BAT and Shell Script can do this trick easy.
Thanks again!
Thanks, I am now running it off of Hostgator, which is a Linux based OS. Unfortunately, I still only get "#!/bin/sh" (no quotes) in the archive.sh file. I cannot understand what is not working...
Can i construct the archive.sh file manually?
Also, to run that the archive.sh file...not sure where to do that. If I run it on my local machine (Mac - but could use Windows) - will that move the mail? Or is this something I need to get run on either the home or destination server?
Hi Rob,
You can run this via SSH of your new hosting company.
Check write access the the folder of archieve.sh and the files inside that, all should be 0777, or it cannot write the script.
I dont know your skills in IMAP protocol and PHP IMAP extension, but feel free to reach me on Skype if you need support, my SkypeID is "newton.pasqualini.filho".
So, via Skype I can help you in that and make a better tool in a new version.
Regards,
Newton