Bug in QP decoding
I have also problems with displaing messages sent by outlook. Body is
usually in 8bit, but headers aren't, they are QP encoded.
After some investifation I have found, that this is cased by <space> in tje
text. So I have made this patch and it solved my problem. I am also not
sure, if it is correct
Index: rfc2047.c
===================================================================
RCS file: /home/roessler/cvs/mutt/rfc2047.c,v
retrieving revision 3.7
diff -u -3 -p -r3.7 rfc2047.c
--- rfc2047.c 19 Sep 2003 13:03:26 -0000 3.7
+++ rfc2047.c 10 Feb 2005 23:34:53 -0000
@@ -691,7 +691,7 @@ static const char *find_encoded_word (co
;
if (q[0] != '?' || !strchr ("BbQq", q[1]) || q[2] != '?')
continue;
- for (q = q + 3; 0x20 < *q && *q < 0x7f && *q != '?'; q++)
+ for (q = q + 3; 0x20 <= *q && *q < 0x7f && *q != '?'; q++)
;
if (q[0] != '?' || q[1] != '=')
{
cheers
dan