Timo Sirainen wrote:
Does Dovecot ever reply wrong message size for RFC822.SIZE request? ..
Got one. It just happened again on a new message, and I was running tcpflow on the connection from waaaay before this email (UID 90356) arrived.
Looks like a gen-you-wine Thunderbird bug, as Dovecot never gives the bogus msg size (20480 - which is exactly 20k).
The following is from tcpflow for the imap connetion from the first mention of this UID to the error (pasting together the two tcpflow log files to recreate the conversation).
I'll attach this trace to the Bugzilla report.
Maybe a candidate for imap-client workaround?
Greg.
126 noop <126 OK NOOP completed
127 UID fetch 90356:* (FLAGS) <* 6069 FETCH (FLAGS (\Recent) UID 90356) <127 OK Fetch completed.
128 UID fetch 90356 (UID RFC822.SIZE FLAGS BODY.PEEK[HEADER.FIELDS (From To Cc Subject Date Message-ID Priority X-Priority References Newsgroups In-Reply-To)]) <* 6069 FETCH (BODY[HEADER.FIELDS (FROM TO CC SUBJECT DATE MESSAGE-ID PRIORITY X-PRIORITY REFERENCES NEWSGROUPS IN-REPLY-TO)] {272} {msg header here} < UID 90356 RFC822.SIZE 895 FLAGS (\Recent)) <128 OK Fetch completed.
129 IDLE <+ idling DONE <129 OK Idle completed.
130 noop <130 OK NOOP completed.
131 UID fetch 90357:* (FLAGS) <* 6069 FETCH (FLAGS (\Recent) UID 90356) <131 OK Fetch completed.
132 IDLE <+ idling DONE <132 OK Idle completed.
133 check <133 OK Check completed.
134 UID fetch 90357:* (FLAGS) <* 6069 FETCH (FLAGS (\Recent) UID 90356) <134 OK Fetch completed.
135 IDLE <+ idling DONE <135 OK Idle completed.
136 noop <136 OK NOOP completed.
137 UID fetch 90357:* (FLAGS) <* 6069 FETCH (FLAGS (\Recent) UID 90356) <137 OK Fetch completed.
138 IDLE <+ idling DONE <138 OK Idle completed.
139 uid store 90355 +Flags (\Answered) <* 6068 FETCH (FLAGS (\Answered \Seen \Recent)) 139 OK Store completed.
140 IDLE <+ idling DONE <140 OK Idle completed.
141 UID fetch 90356 (BODYSTRUCTURE) <* 6069 FETCH (BODYSTRUCTURE ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 277 6 NIL ("inline" NIL) NIL) UID 90356) <141 OK Fetch completed.
142 UID fetch 90356 (UID RFC822.SIZE BODY[]<0.20480>) <* 6069 FETCH (BODY[]<0> {895} <msg hdr and body here> UID 90356 RFC822.SIZE 895 FLAGS (\Seen \Recent)) <142 OK Fetch completed.
143 UID fetch 90356 (UID RFC822.SIZE BODY[]<20480.-19585>) <143 BAD Error in IMAP command UID: Invalid BODY[..] parameter: Missing '>' in '<20480.-19585>'
144 UID fetch 90356 (UID RFC822.SIZE BODY[]) <* 6069 FETCH (BODY[] {895} <msg hdr and body here> UID 90356 RFC822.SIZE 895) <144 OK Fetch completed.
145 uid store 90356 +Flags (\Seen) <* 6069 FETCH (FLAGS (\Seen \Recent)) <145 OK Store completed.
146 IDLE <+ idling