18 Jan 2011 18:23
news_headers_to_display and folded headers
Dennis Preiser <onkelp <at> gmx.de>
2011-01-18 17:23:09 GMT
2011-01-18 17:23:09 GMT
Headers in news_headers_to_display are not properly unfolded. Beside headers like Subject:, which are displayed 'as is', some headers are altered. For example, the following From:-header: From: Dennis Preiser <foo <at> example.org> is displayed as: From: Dennis Preiser? <foo <at> example.org> '\n' is replaced by '?'. The same happens with Reply-To:. Attached patch adds unfold_header_to_display() to cook.c which does the unfolding for news_headers_to_display. At this point we cannot use rfc2046.c:unfold_header() because the leading '\t' of subsequent folded lines is not replaced with ' ' there. With this patch all headers in news_headers_to_display gets unfolded. I'm not shure whether this is necessary or not. Dennis --- tin-1.9.6_r3/src/cook.c 2011-01-17 21:28:56.000000000 +0100 +++ tin-1.9.6_r4/src/cook.c 2011-01-18 17:43:08.000000000 +0100 <at> <at> -60,6 +60,7 <at> <at> static t_bool header_wanted(const char * static t_part *new_uue(t_part **part, char *name); static void process_text_body_part(t_bool wrap_lines, FILE *in, t_part *part, int hide_uue); static void put_cooked(size_t buf_len, t_bool wrap_lines, int flags, const char *fmt, ...); +static void unfold_header_to_display(char *line);(Continue reading)
RSS Feed