maybe enother authentication mechanism becose no work whit hmailserver(imap4)
<SEND>
1 capability
<RECV>
* OK Heloo imap
<SEND>
2 authenticate plain
<RECV>
* CAPABILITY IMAP4 IMAP4rev1 CHILDREN IDLE QUOTA SORT
1 OK CAPABILITY completed
<SEND>
AGFkbWluQGdlbG1hZ2lzLmx0AGFkbWluMQ==
<RECV>
2 NO Unsupported authentication mechanism.
<SEND>
3 namespace
<RECV>
BAD NULL COMMAND
....
for test imap server:
host:mail.gelmagis.lt
user:test@gelmagis.lt
pass:testpass