Dennis Preiser | 18 Jan 2011 18:23
Picon
Picon

news_headers_to_display and folded headers

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)

Urs Janßen | 30 Jan 2011 02:50

[PATCH] cmd. line switch to force IPv4 / IPv6 connection

I noticed that there is no way to force IPv4 connection if compiled with
IPv6 support. This is usefull when the server has an IPv6 address
and AAAA record but is not reachable via IPv6 cause of routing
problems or the like.

diff -Nur doc/tin.1 doc/tin.1
--- doc/tin.1	2011-01-29 20:20:59.699519750 +0100
+++ doc/tin.1	2011-01-30 02:29:16.244390499 +0100
 <at>  <at>  -26,6 +26,7  <at>  <at> 
 .RB \|\| \-s
 .IR News_dir \|]
 .RB [\| \-cuvZ \|]
+.RB [\| \-4 \||\| \-6 \|]
 .RB [\| \-N \||\| \-M
 .IR address \|]
 .RB [\| \-o \||\| \-w \|]\|]
 <at>  <at>  -100,6 +101,12  <at>  <at> 
 .\"
 .SH OPTIONS
 .TP 12
+.B \-4
+Force connecting via IPv4 to the remote NNTP server.
+.TP
+.B \-6
+Force connecting via IPv6 to the remote NNTP server.
+.TP
 .B \-a
 Toggle ANSI color (default is off).
 .TP
diff -Nur include/extern.h include/extern.h
(Continue reading)


Gmane