User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7 Build Identifier: Hi! server: mail.vizslamail.hu (other clients whit this server, and other servers with this client works fine!) protocol: IMAP4 (I can create a test account if somebody wish.) The lines below may be self-evident: "DBG[mailwatch-mailbox-imap.c:419] imap_connect(): checking for a connection... DBG[mailwatch-mailbox-imap.c:432] imap_connect(): connection succeeded DBG[mailwatch-mailbox-imap.c:541] imap_authenticate(): using_tls is FALSE DBG[mailwatch-mailbox-imap.c:244] imap_send_login_info(): sent CAPABILITY (18) DBG[mailwatch-mailbox-imap.c:248] imap_send_login_info(): response from CAPABILITY (131): * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS DBG[mailwatch-mailbox-imap.c:262] imap_send_login_info(): sent login (48) DBG[mailwatch-mailbox-imap.c:268] imap_send_login_info(): response from login (21): 00029 OK CAPABILITY DBG[mailwatch-mailbox-imap.c:271] imap_send_login_info(): strstr() returns 0xb712ffb6 DBG[mailwatch-mailbox-imap.c:567] imap_check_mailbox(): successfully sent cmd '00031 EXAMINE INBOX ' DBG[mailwatch-mailbox-imap.c:719] imap_check_mail(): checked inbox, 0 new messages So finaly i can't any information (Folders, Unseen messages, etc. from this server (whit this client))" or another debug when i press the "New mail folders..." button "DBG[mailwatch-mailbox-imap.c:419] imap_connect(): checking for a connection... DBG[mailwatch-mailbox-imap.c:432] imap_connect(): connection succeeded DBG[mailwatch-mailbox-imap.c:541] imap_authenticate(): using_tls is FALSE DBG[mailwatch-mailbox-imap.c:244] imap_send_login_info(): sent CAPABILITY (18) DBG[mailwatch-mailbox-imap.c:248] imap_send_login_info(): response from CAPABILITY (131): * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS DBG[mailwatch-mailbox-imap.c:262] imap_send_login_info(): sent login (48) DBG[mailwatch-mailbox-imap.c:268] imap_send_login_info(): response from login (21): 00065 OK CAPABILITY DBG[mailwatch-mailbox-imap.c:271] imap_send_login_info(): strstr() returns 0xb68eaff6 DBG[mailwatch-mailbox-imap.c:951] imap_populate_folder_tree(): sent LIST: '00067 LIST "" "%" ' DBG[mailwatch-mailbox-imap.c:964] imap_populate_folder_tree(): got LIST response (20): '00066 OK LOGIN Ok." Thanks! Reproducible: Always Steps to Reproduce:
Tcpdump says (after login): "NO Could not determine server"
If i compile mailwatch plugin with the "--disable-ssl" option it doesn't produce the "NO Could not determine server" message, it logs into the server, but it can't read the mail folders or fetch headers too.
With STARTTLS option i get this output: DBG[mailwatch-mailbox-imap.c:419] imap_connect(): checking for a connection... DBG[mailwatch-mailbox-imap.c:432] imap_connect(): connection succeeded DBG[mailwatch-mailbox-imap.c:328] imap_do_starttls(): checking for STARTTLS caps (131): * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS ** (xfce4-panel:7539): CRITICAL **: XfceMailwatch: TLS handshake failed: A record packet with illegal version was received. DBG[mailwatch-mailbox-imap.c:541] imap_authenticate(): using_tls is TRUE DBG[mailwatch-mailbox-imap.c:1269] imap_populate_folder_tree_th(): failed to connect to imap server to probe folders
Created attachment 829 Ethereal pcap file
I'm pretty sure I know what's going on here... there's a delay in receiving some data, which is causing it to receive a previous reply when it's expecting something else. I'll try to look into this soon, but no promises.
(In reply to comment #5) > I'm pretty sure I know what's going on here... there's a delay in receiving > some data, which is causing it to receive a previous reply when it's expecting > something else. I'll try to look into this soon, but no promises. > Thanks! I have created a test account server: mail.vizslamail.hu (secure.vizslamail.hu for StartTLS and SSL; common ports (143, 993)) user: tacsni@altavizsla.hu passwd: qwe987asd With the svn version i have successfuly created an SSL communication, so i think the "TLS handshake failed" and the "NO Could not determine server" problems are resolved.
Network code refactoring and partial rewrite is done. Problems like this should be gone. Please reopen if not.