Subject: pkg/36882: news/newsfetch adds extra newlines in mbox headers
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <b1ff@fr33.b33r.net>
List: pkgsrc-bugs
Date: 09/02/2007 09:20:00
>Number:         36882
>Category:       pkg
>Synopsis:       news/newsfetch adds extra newlines in mbox headers
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 02 09:20:00 +0000 2007
>Originator:     Mathieu
>Release:        3.1.0_PATCH
>Organization:
>Environment:
>Description:
newsfetch splits lines bigger than its MAXBUFSIZE limit, which makes somewhat broken mbox outputs when that happens in a header. its limit is 500, which is too low nowadays. AFAIK, it should be at least 1000 (to allow for the usual 998 chars mail line limit plus the CR LF).

>How-To-Repeat:

>Fix:
--- nntp.c.orig 2000-11-12 21:01:49.000000000 -0500
+++ nntp.c      2007-09-02 02:11:47.000000000 -0400
@@ -23,7 +23,7 @@
 
 char *header;
 
-#define MAXBUFSIZE 500
+#define MAXBUFSIZE 1000
 char command_buf[MAXBUFSIZE + 1];
 
 /* lots of protos */