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

[john@xxxxxxxxxxxxxx: Bug#297084: possible fix]



----- Forwarded message from John Hedges <john@xxxxxxxxxxxxxx> -----

Subject: Bug#297084: possible fix
Reply-To: John Hedges <john@xxxxxxxxxxxxxx>, 297084@xxxxxxxxxxxxxxx
To: 297084@xxxxxxxxxxxxxxx
From: John Hedges <john@xxxxxxxxxxxxxx>

I get the same problem. I found '\0's in the messages that caused the
hang and this fix works for me - whether it is the right thing I couldn't
say.

John

diff -ruN mutt-1.5.9.orig/imap/message.c mutt-1.5.9/imap/message.c
--- mutt-1.5.9.orig/imap/message.c  2005-07-29 16:02:15.226860408 +0100
+++ mutt-1.5.9/imap/message.c   2005-07-29 16:01:13.446252488 +0100
@@ -590,6 +590,9 @@
 
    for (last = EOF, len = 0; (c = fgetc(fp)) != EOF; last = c)
    {
+    if (c == '\0')
+      continue;
+    
     if (c == '\n' && last != '\r')
       buf[len++] = '\r';


----- End forwarded message -----

-- 
ciao,
Marco