If we're passing passwords with quotes in them, let's take another look at the command line invocation to make sure we didn't run afoul of the shell.
We're still getting closer but our combined Perl experience seems to be lacking a bit :-)
This is the result:
Read: * OK imapfront ready. + stunnel
Connect: Received this from readline: 0/OUTPUT/* OK imapfront ready. + stunnel
Banner : * OK imapfront ready. + stunnel
Sending: 1 Login "XXXXXXXX" "XXXXXXXX"\r\n
Sent 30 bytes
Read: 1 BAD LOGIN command requires exactly two arguments
Error login : [www.webserver.com] with user [new_user] : 1 BAD LOGIN command requires exactly two arguments
Any new pointers :-)
PS: Or is there another way of getting mail out of an existing mail-server and in to a zimbra installation ?
Wow, your IMAP server is more broken than I'd thought if it won't even take a quoted-string for a password. (The other option is that it can't handle \r\n, which is even more broken.) So let's try this:
If that's not the problem and \r\n is, imapsync won't work and we'll need to find another migration mechanism.Code:my $string = "Login " . ( $has_quotes ? $id : qq("$id") ) . " " . $self->Password . '\r\n';
Now something works. It barfed on the syntax as before so i tried to be creative (with my extremely limited Perl knowledge) and changed it to
my $string = "Login " . ( $has_quotes ? $id : qq("$id") ) . " " .
And now i get something decent !
It now looks like my only remaining issues (until something else turns up) is the fact that when i run the imapsync it tells me that:
------------ LOTS OF DIFFERENT INFO -----------
Sending: 3 LIST "" *
Sent 13 bytes
Read: * LIST (\HasNoChildren) "/" "Contacts"
* LIST (\HasNoChildren) "/" "Drafts"
* LIST (\HasNoChildren) "/" "Emailed Contacts"
* LIST (\HasNoChildren) "/" "INBOX"
* LIST (\HasNoChildren \Noinferiors) "/" "Junk"
* LIST (\HasNoChildren) "/" "Sent"
* LIST (\HasNoChildren) "/" "Trash"
3 OK LIST completed
.............................. LOTS OF ADDITIONAL STUFF --------------
Sent 15 bytes
Read: * CAPABILITY IMAP4rev1 SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN LISTEXT LIST-SUBSCRIBED
10 OK Capability completed.
No NAMESPACE capability in imap server www.webserver.com
Give the separator caracter with the --sep1 option.
I also have to give the prefix namespace with the --prefix1 option.
But i have no idea as to what seperator and which prefix imapsync is talking about and where do i find out what they are is ?
Last edited by lchrist; 12-30-2006 at 12:02 PM. Reason: Did not hide real username and hostname
(By the way, what's the software running on your old IMAP server? I want to tell people to avoid it.)
Anyways, telnet to your existing IMAP server, log in, and issue the following two commands:
The separator should be divinable from the former; the prefix from the latter. Let us know what the responses are.Code:A004 LIST "" "" A005 LIST "" "*"
Thanks ! By using the commands you showed me everything worked (well at least for the dry run).
The existing server that i'm running is an old SME E-smith (www.contribs.org) Server version 6.0. The imapfront part is mailfront-0.81-1
I would also tell everyone to stay far ... far away from it. Apart from the fact that it has been rock solid and running without any issues at all for the past two years :-)
Amazing, that solved my remaining major issue.
Thanks soo much for alle the help, and a happy new years :-)