#3544: IMAP header continue to fetch after a "tls_socket_read" failure
--------------------------+-------------------------------------------------
 Reporter:  duyang        |       Owner:  mutt-dev
     Type:  defect        |      Status:  new     
 Priority:  major         |   Milestone:          
Component:  header cache  |     Version:  1.5.21  
 Keywords:                |  
--------------------------+-------------------------------------------------
 Hi,

 I have a gmail INBOX with more than 20,000 messages. I configured mutt
 IMAP to this mailbox. For this is the first time to this mailbox, mutt
 try to fetch all the headers at the beginning and always got the well-
 known
  problem "tls_socket_read (A TLS packet with unexpected length
 was received.)" when just fetched about 5000 headers.

 I've to set imap_keepalive to 300, 100, 30 and 10, but without
 success. mail_check and timeout is 30 and 10 respectively.

 Here are some error information with debug level 5:
 =======================================
 [2011-10-23 08:16:18] tls_socket_read (A TLS packet with unexpected
 length was received.)
 [2011-10-23 08:16:22] imap_cmd_step: Error reading server response.
 [2011-10-23 08:16:22] Error opening mailbox

 =======================================
 So I never get mutt to work with such a INBOX.
 In order to make it work, I think mutt needs to support
 1)to manage a well-formated header cache file when connection not
 available temporarily or disconnected on the server end.
 2) to re-fetching the remaining headers but not all headers each time.(The
 second one is rely on the first.)

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3544>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to