Package: mailsync Version: 5.2.1-2 Normally syncing my own and my university's imap server works great, but every now and then it just stops. I can run imapsync over and over until I turn green with only output like the one following my signature in this e-mail.
Logging in via the web mail service and removing messages usually resets the odd behaviour, makes mailsync work again, and makes me live happily ever after. Or at least for more or less another month when the problem reoccurs. I have not exactly measured the days between, not found a way to reproduce the state. I've tried both the current Debian package and latest CVS from sourceforge. My debugging efforts makes me think that this can be a bug in libc-client, but I'm quite far from sure, so I'm reporting against the application like the unknowing user I am. I tried do some debugging - but it didn't take me all the way. Everything fails at a blocking select() when some special ssl_getdata() trick seems to be unable to detect that the client server communication has become out of sync. It seems like some buffer gets full at an inappropriate time, and the client is then confused on what to do. I'm not entirely sure what happens, but I'm providing what I can here. Please let me know if there's anything else that might be of interest to find the cause of the problem. The reason for blaming mailsync/c-client and not the server, is because accessing the folder with mutt still works. -- /Martin 18:25|leka% mailsync -d -v -vb -vw -vp oru Synchronizing stores "studentmail.oru-store" <-> "local-store"... Opening {mail.student.oru.se/user=marsah041/ssl/novalidate-cert} with options 66 [Trying IP address [130.243.98.13]] Authorizing against {turturduva.oru.se/imap} Opening {localhost/user=cos/ssl/novalidate-cert} with options 66 [Trying IP address [127.0.0.1]] [Dovecot ready.] Authorizing against {localhost.localdomain/imap} Items in store "studentmail.oru-store": {turturduva.oru.se:993/imap/ssl/novalidate-cert/readonly/user="marsah041"}<no_mailbox>{mail.student.oru.se}INBOX, no inferiors Delimiter for store "studentmail.oru-store" is '/' Using driver imap for store studentmail.oru-store Items in store "local-store": {localhost.localdomain:993/imap/ssl/novalidate-cert/readonly/user="cos"}<no_mailbox>{localhost}INBOX Using driver imap for store local-store Delimiter for store "local-store" is '.' All seen mailboxes: in first store: in second store: Reading lasttime of channel "oru" Store studentmail.oru-store: (0) Store local-store: (0) : Opening {mail.student.oru.se/user=marsah041/ssl/novalidate-cert}INBOX with options 2 [Reusing connection to turturduva.oru.se/user="marsah041"] [[UNSEEN 10] ] Fetching message id's in mailbox "{turturduva.oru.se:993/imap/ssl/novalidate-cert/readonly/user="marsah041"}INBOX" ^[Warning: empty Message-ID header in message From: "" Subject: "" - please consult the README [[CLOSED] IMAP connection broken (command)] Error: [CLOSED] IMAP connection broken (command) Error: Couldn't fetch enveloppe #22 from mailbox box {turturduva.oru.se:993/imap/ssl/novalidate-cert/readonly/user="marsah041"}INBOX Aborting! Error: Couldn't access mailbox "" in store "studentmail.oru-store" for fetching of mail ids Continuing with next mailbox [Disconnected for inactivity.] ******************************************************************************* The processed is blocked for a fair while before the error messages. I guess the select() returns when the connection is dropped by either the server or the natting router. Some debugging information follows: ******************************************************************************* #0 0xb7b8f9f8 in select () from /lib/tls/libc.so.6 #1 0xb7f25461 in ssl_getdata (stream=0x8083c78) at osdep.c:611 #2 0xb7f256b6 in ssl_getline (stream=0x8083c78) at osdep.c:539 #3 0xb7f31e62 in net_getline (stream=0xfffffdfe) at mail.c:5835 #4 0xb7f54956 in imap_reply (stream=0x807c578, tag=0xbfbf0d86 "00000005") at imap4r1.c:3012 #5 0xb7f54a9d in imap_sout (stream=0x807c578, tag=0xbfbf0d86 "00000005", base=0x807c734 "", s=0xbfbf0d98) at ima p4r1.c:2975 #6 0xb7f55cf4 in imap_send (stream=0x807c578, cmd=0xb7fc1bc1 "FETCH", args=0xbfbf15fc) at imap4r1.c:2610 #7 0xb7f59a02 in imap_structure (stream=0x807c578, msgno=1, body=0x0, flags=Variable "flags" is not available. ) at imap4r1.c:1317 #8 0xb7f32d64 in mail_fetch_structure (stream=0x807c578, msgno=1, body=0x0, flags=0) at mail.c:1356 #9 0x0806727e in Store::fetch_message_ids (this=0xbfbf1828, [EMAIL PROTECTED], [EMAIL PROTECTED]) at store.c c:233 #10 0x0804b414 in main (argc=2, argv=0xbfbf1ae4) at mailsync_main.cc:308 539├> if (!ssl_getdata (stream)) fs_give ((void **) &ret); 540│ /* special case of newline broken by buffer */ (tgdb) p st $34 = 0x8085b7c "* 21 FETCH (FLAGS () UID 11430 INTERNALDATE \"25-Aug-2005 14:32:20 +0200\" RFC822.SIZE 2033 ENVELOPE (\"Thu, 25 Aug 2005 14:32:18 +0200\" \"Toker\" ((\"Markus Ingvarsson\" NIL \"markus.ingvarsson\" \"lugn.nu\")) ((\"Markus Ingvarsson\" NIL \"markus.ingvarsson\" \"lugn.nu\")) ((\"Markus " (tgdb) p stp $32 = 0x80b3ab0 "* 21 FETCH (FLAGS () UID 11430 INTERNALDATE \"25-Aug-2005 14:32:20 +0200\" RFC822.SIZE 2033 ENVELOPE (\"Thu, 25 Aug 2005 14:32:18 +0200\" \"Toker\" ((\"Markus Ingvarsson\" NIL \"markus.ingvarsson\" \"lugn.nu\")) ((\"Markus Ingvarsson\" NIL \"markus.ingvarsson\" \"lugn.nu\")) ((\"Markus 9" (tgdb) p n $33 = 268 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]