! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
mailwatch plugin doesn't fetch mail headers or folders from the server
Status:
RESOLVED: FIXED
Product:
Xfce4-mailwatch-plugin
Component:
General

Comments

Description Nagy Peter 2006-10-11 14:13:00 CEST
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:
Comment 1 Nagy Peter 2006-10-12 10:03:31 CEST
Tcpdump says (after login):
"NO Could not determine server"
Comment 2 Nagy Peter 2006-10-12 11:50:02 CEST
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.
Comment 3 Nagy Peter 2006-10-12 13:00:46 CEST
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
Comment 4 Nagy Peter 2006-10-16 19:05:16 CEST
Created attachment 829 
Ethereal pcap file
Comment 5 Brian J. Tarricone (not reading bugmail) 2006-10-16 19:26:56 CEST
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.
Comment 6 Nagy Peter 2006-10-16 19:49:55 CEST
(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.
Comment 7 Brian J. Tarricone (not reading bugmail) 2008-08-16 09:07:05 CEST
Network code refactoring and partial rewrite is done.  Problems like this should be gone.  Please reopen if not.

Bug #2416

Reported by:
Nagy Peter
Reported on: 2006-10-11
Last modified on: 2011-02-26

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
1 user

Version

Version:
1.1.0 or older
Target Milestone:
1.1.0 or older

Attachments

Ethereal pcap file (2.14 KB, application/octet-stream)
2006-10-16 19:05 CEST , Nagy Peter
no flags

Additional information