Re: xover fails with empty subject

Patrik Rådman <[email protected]>
Newsgroups gmane.network.sn
Message-ID <[email protected]>
Gabor Z. Papp <[email protected]> wrote:
> xover 456
> 224 XOVER follows
> 456     Mime-Version: 1.0       "Paul" <[email protected]>  Mon, 7 Oct 2002 16:56:20 +0100  <[email protected]>           4935    125     Xref: gzp1.gzp.hu list.tin-dev:456
> 
> 'Mime-Version: 1.0' is the next header to 'Subject: '.

The patch below should fix this. Please test.
(Also available at http://www.iki.fi/patrik/patches/sn-empty-subject.patch)


--- ../../../tmp/sn/art.c	Tue Nov 12 22:00:28 2002
+++ art.c	Fri Nov 15 03:35:00 2002
@@ -298,7 +298,7 @@
 {
    register char *cp = buf;
 
-   cp += strspn(cp, " \t\r\n\f");
+   cp += strspn(cp, " \t\f");   /* I don't think \r\n is needed here, since sn unfolds all headers */
    if (!*cp)
    {
       f->pointer = NULL;


-- 
  Patrik Rådman  ·  patrik at iki dot fi  ·  http://www.iki.fi/patrik/
                     "Now, where was I?"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.