Re: IMAP command pipelining (batched mailbox polling) now in CVS
On 2005-12-18 16:46:41 -0800, Brendan Cully wrote:
> Ah, this was helpful. I think I found a race that could lead to
> this. Can you try the attached patch?
With this patch I no longer get new mail, though the debug file shows
that it is fetched.
[...]
a0437 IDLE
< * OK Timeout in 30 minutes
< a0436 OK IDLE completed
< + Waiting for DONE
> DONE
a0438 IDLE
< * 225 EXISTS
Handling EXISTS
cmd_handle_untagged: New mail in INBOX - 225 messages total.
< * 3 RECENT
< * OK Timeout in 30 minutes
< a0437 OK IDLE completed
imap_cmd_finish: Fetching new mail
message.c:99: mutt_mktemp returns "/var/tmp/mutt-dixsept-325-14801-12".
> DONE
a0439 FETCH 223:225 (UID FLAGS INTERNALDATE RFC822.SIZE BODY.PEEK[HEADER.FIELDS
(DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES CONTENT-TYPE CONTENT-DESCRIPTION
IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)])
< + Waiting for DONE
< a0438 OK IDLE completed
< * 223 FETCH (UID 205646 FLAGS (\Recent) INTERNALDATE "19-Dec-2005 06:25:45
+0100" RFC822.SIZE 1281 BODY[HEADER.FIELDS ("DATE" "FROM" "SUBJECT" "TO" "CC"
"MESSAGE-ID" "REFERENCES" "CONTENT-TYPE" "CONTENT-DESCRIPTION" "IN-REPLY-TO"
"REPLY-TO" "LINES" "LIST-POST" "X-LABEL")] {255}
Handling FETCH
FETCH response ignored for this message
< From: xxx
< To: xxx
< Subject: xxx
< Message-Id: xxx
< Date: Mon, 19 Dec 2005 06:25:44 +0100
<
< )
< * 224 FETCH (UID 205647 FLAGS (\Recent) INTERNALDATE "19-Dec-2005 08:48:16
+0100" RFC822.SIZE 184327 BODY[HEADER.FIELDS ("DATE" "FROM" "SUBJECT" "TO" "CC"
"MESSAGE-ID" "REFERENCES" "CONTENT-TYPE" "CONTENT-DESCRIPTION" "IN-REPLY-TO"
"REPLY-TO" "LINES" "LIST-POST" "X-LABEL")] {325}
Handling FETCH
FETCH response ignored for this message
< To: xxx
< Message-Id: xxx
< Content-Type: multipart/mixed; boundary=Apple-Mail-6--95020307
< From: xxx
< Date: Mon, 19 Dec 2005 08:48:05 +0100
< List-Post: xxx
< Subject: xxx
<
< )
< * 225 FETCH (UID 205648 FLAGS (\Recent) INTERNALDATE "19-Dec-2005 09:31:11
+0100" RFC822.SIZE 2061 BODY[HEADER.FIELDS ("DATE" "FROM" "SUBJECT" "TO" "CC"
"MESSAGE-ID" "REFERENCES" "CONTENT-TYPE" "CONTENT-DESCRIPTION" "IN-REPLY-TO"
"REPLY-TO" "LINES" "LIST-POST" "X-LABEL")] {284}
Handling FETCH
FETCH response ignored for this message
< Message-ID: xxx
< Date: Mon, 19 Dec 2005 09:32:22 +0100
< From: xxx
< To: xxx
< Subject: xxx
< Content-Type: text/plain; charset=windows-1252; format=flowed
< List-Post: xxx
<
< )
< a0439 OK FETCH completed
Error starting IDLE
> a0440 IDLE
< + Waiting for DONE
> DONE
a0441 IDLE
< * OK Timeout in 30 minutes
< a0440 OK IDLE completed
< + Waiting for DONE
> DONE
[...]
Each time a new message appears, all the messages are refetched, but
they are not shown in the index, even after a resynchronization.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA