<<< Date Index >>>     <<< Thread Index >>>

Re: IMAP command pipelining (batched mailbox polling) now in CVS



On 2005-12-20 17:55:19 -0800, Brendan Cully wrote:
> I think it should make the other unnecessary. So let's say without it,
> and then if things are still broken, with it :) (with a trace both
> ways). I hope this gets it though.

Yes, this patch alone seems to be fine. Thanks.

FYI, here's the trace. I sent a test message, waited for it to appear,
then deleted it.

imap_open_mailbox: msgcount is 218
> a0005 IDLE
< + Waiting for DONE
> DONE
a0006 IDLE
< * OK Timeout in 30 minutes
< a0005 OK IDLE completed
< + Waiting for DONE
> DONE
a0007 IDLE
< * 219 EXISTS
Handling EXISTS
cmd_handle_untagged: New mail in INBOX - 219 messages total.
< * 1 RECENT
< * OK Timeout in 30 minutes
< a0006 OK IDLE completed
< + Waiting for DONE
imap_cmd_finish: Fetching new mail
message.c:96: mutt_mktemp returns "/var/tmp/mutt-dixsept-325-2532-1".
> DONE
a0008 FETCH 219:219 (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)])
< a0007 OK IDLE completed
< * 219 FETCH (UID 205691 FLAGS (\Recent) INTERNALDATE "21-Dec-2005 03:25:59 
+0100" RFC822.SIZE 1312 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")] {252}
Handling FETCH
FETCH response ignored for this message
imap_read_literal: reading 252 bytes
< )
parse_parameters: `charset=iso-8859-1'
parse_parameter: `charset' = `iso-8859-1'
< a0008 OK FETCH completed
> a0009 IDLE
< + Waiting for DONE
commands.c:114: mutt_mktemp returns "/var/tmp/mutt-dixsept-325-2532-2".
message.c:365: mutt_mktemp returns "/var/tmp/mutt-dixsept-325-2532-3".
> DONE
a0010 UID FETCH 205691 BODY.PEEK[]
< a0009 OK IDLE completed
< * 219 FETCH (UID 205691 BODY[] {1312}
Handling FETCH
FETCH response ignored for this message
imap_read_literal: reading 1312 bytes
< )
< a0010 OK UID FETCH completed
parse_parameters: `charset=iso-8859-1'
parse_parameter: `charset' = `iso-8859-1'
WEED is Set
Reorder: x = 0; hdr_count = 1
Reorder: x = 0; hdr_count = 1
Reorder: x = 0; hdr_count = 1
Reorder: x = 0; hdr_count = 1
Reorder: x = 0; hdr_count = 1
Reorder: x = 0; hdr_count = 1
Reorder: x = 0; hdr_count = 1
> a0011 IDLE
< + Waiting for DONE
maildir_open_new_message (): Trying 
/home/vlefevre/Mail/trash/tmp/cur.1135132054.2532_4.dixsept:2,S.
maildir_open_new_message (): Success.
maildir_commit_message (): renaming 
/home/vlefevre/Mail/trash/tmp/cur.1135132054.2532_4.dixsept:2,S to 
/home/vlefevre/Mail/trash/cur/1135132054.2532_5.dixsept:2,S.
> DONE
a0012 UID STORE 205691 +FLAGS.SILENT (\Deleted)
< a0011 OK IDLE completed
< a0012 OK UID STORE completed
> a0013 EXPUNGE
< * 219 EXPUNGE
Handling EXPUNGE
< * 218 EXISTS
Handling EXISTS
< * 0 RECENT
< a0013 OK Expunged 1 messages
imap_cmd_finish: Expunging mailbox
Expunging message UID 205691.
> a0014 IDLE
< + Waiting for DONE
> DONE
a0015 IDLE
< * OK Timeout in 30 minutes
< a0014 OK IDLE completed
< + Waiting for DONE
> DONE
a0016 IDLE
< * OK Timeout in 30 minutes
< a0015 OK IDLE completed
< + Waiting for DONE
[...]

-- 
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