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

Re: imap/2244: Copying mail message from local mailbox to remote imaps server hangs when message contains NUL chars



Synopsis: Copying mail message from local mailbox to remote imaps server hangs 
when message contains NUL chars

State-Changed-From-To: open->feedback
State-Changed-By: tamo
State-Changed-When: Sat, 20 May 2006 11:10:29 +0200
State-Changed-Why:
Patch is provided.




**** Comment added by tamo on Sat, 20 May 2006 11:10:29 +0200 ****
 I set up an IMAP server (dovecot) and confirmed this bug.
My patch is attached here: http://bugs.mutt.org/2244

 static void flush_buffer(char *buf, size_t *len, CONNECTION *conn)
 {
   buf[*len] = '\0';
-  mutt_socket_write(conn, buf);
+  mutt_socket_write_n(conn, buf, *len);
   *len = 0;
 }