[Mutt] #3357: imap server socket communication trouble
#3357: imap server socket communication trouble
--------------------+-------------------------------------------------------
Reporter: prlw1 | Owner: brendan
Type: defect | Status: new
Priority: major | Milestone:
Component: IMAP | Version:
Keywords: |
--------------------+-------------------------------------------------------
In some sense, this is a continuation of ticket 3000. Open an INBOX
containing 230,000 messages, tag 9,000 messages, and tag copy them to a
new mailbox on a cyrus imap server (translates to an empty directory).
What ends up happening is that that directory gets filled with multiple
copies of the messages, each having the same inode number but different
filenames.
So where are these multiple copies coming from?
Mutt sends multiple UID COPY commands so as not to overflow the command
buffer (ie is kind to cyrus)
The last line in the block is:
{{{
a0232 UID COPY
326160:326161,326188,326202,326225,326237:326243,326251,326266,326277,326336,326362,326380:326381,326393,326400,326411,326422,326447,326522,326545,326677:326680,326686,326701:326704,326714,326718:326719,326758,326775,326799,326857:326865,326868,326906,326961:326963,326974,326996,327020,327081,327119,327129,327135,327147,327160,327184:327187,327225:327227,327233:327241,327251,327263,327341:327342,327388,327406,327446,327560,327585,327598:327601,327789:327792,327800,327820:327821,327960,328011,328053:328054,328091:328092,328102,328114:328123,328131,328147,328150,328221,328229,328232,328256,328302:328305,328307:328312,328321:328322,328341,328387,328393,328416,328443,328488,328522,328581:328600,328607:328615,328719,328770,328868,328870,328873:328875,328908:328914,328925:328927,328950:328951,328972:328975,329049:329055,329079:329084,329132:329150,329152,329158,329178,329212:329217,329232,329234,329238:329241,329248:329251,329260,329270,329297,329307:329308,329310:329323,329325:329328,329337:329338,329343:329347
"http"^M
[2009-11-12 18:56:28] mutt_socket_write: short write (4091 of 16720 bytes)
[2009-11-12 18:56:28] mutt_socket_write: short write (4091 of 12629 bytes)
[2009-11-12 18:56:28] mutt_socket_write: short write (4091 of 8538 bytes)
[2009-11-12 18:56:28] mutt_socket_write: short write (4091 of 4447 bytes)
}}}
What is mystifying is the later OK which mutt records as coming from
cyrus:
{{{
[2009-11-12 18:56:39] 4< a0232 OK [COPYUID 1258034308
171084,171095,171120,171125,171199,171211,171291,171320,171328,171394,171396,326160:326161,326188,326202,326225,326237,326243,326251,326266,326277,326336,326362,326380:326381,326393,326400,326411,326422,326447,326522,326545,326677,326680,326686,326701,326704,326714,326718:326719,326758,326775,326799,326857,326863,326865,326868,326906,326961,326963,326974,326996,327020,327081,327119,327129,327135,327147,327160,327184,327187,327225,327227,327233,327236,327239,327241,327251,327263,327341:327342,327388,327406,327446,327560,327585,327598,327601,327789,327791:327792,327800,327820:327821,327960,328011,328053:328054,328091:328092,328102,328114,328123,328131,328147,328150,328221,328229,328232
2363:2461] Completed
}}}
Where did ID 171084 suddenly spring from?
It's hard to work out which end is having the problem, but I also wonder
what imap/command.c:cmd_start() is meant to do with the length return
value of mutt_socket_write_d()
This was either
Mutt 1.5.20 (2009-08-27)
or
Mutt 1.5.20 (2009-10-28)
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3357>
Mutt <http://www.mutt.org/>
The Mutt mail user agent