I am having an error imapsyncing emails from my imap maildir to zimbra:

root@zimbra:/usr/share/imapsync# imapsync --buffersize 8192000 --nosyncacls --subscribe --syncinternaldates --host1 mail.test.com --user1 user1@mail.test.com --password1 error --authmech1=LOGIN --host2 zimbra.mail.test.com --user2 user1@mail.test.com --password2 error2 --authmech2=PLAIN --ssl2
[1] 22349
$RCSfile: imapsync,v $ $Revision: 1.241 $ $Date: 2007/12/31 13:39:02 $
Here is a [linux] system (Linux zimbra 2.6.24-24-server #1 SMP Tue Aug 18 17:46:20 UTC 2009 i686)
with perl 5.8.8 and the module Mail::IMAPClient version used here is 2.2.9
Command line used :
/usr/bin/imapsync --buffersize 8192000 --nosyncacls --subscribe --syncinternaldates --host1 mail.test.com --user1 user1@mail.test.com --password1 error
--host2 option must be used, run /usr/bin/imapsync --help for help
bash: --authmech1=LOGIN: command not found
[1]+ Exit 2 imapsync --buffersize 8192000 --nosyncacls --subscribe --syncinternaldates --host1 mail.test.com --user1 user1@mail.test.com --password1 error
root@zimbra:/usr/share/imapsync#