Package: slrn
Version: 0.9.8.1pl2~cvs20070125-1
Severity: normal
Tags: patch

If the first References reference would cause the line to wrap (ie. 
longer than 78 characters), slrn wraps it such that it doesn't parse 
correctly according to the rules:

eg:

References:
 <[EMAIL PROTECTED]>

This breaks threading in many other newsreaders.

See the following for some examples
http://groups.google.com/group/news.software.readers/browse_thread/thread/795d03dde2b2188e

The patch is to prevent slrn from wrapping References headers.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (99, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.23-hrt1 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages slrn depends on:
ii  debconf [debconf-2.0]         1.5.17     Debian configuration management sy
ii  debianutils                   2.28       Miscellaneous utilities specific t
ii  libc6                         2.7-3      GNU C Library: Shared libraries
ii  libcanlock2                   2b-4       library for creating and verifying
ii  libgnutls13                   2.0.4-1    the GNU TLS library - runtime libr
ii  libslang2                     2.1.3-2    The S-Lang programming library - r
--- src/mime.c~	2007-01-26 20:38:23.000000000 +0000
+++ src/mime.c	2007-12-03 18:59:36.597715657 +0000
@@ -1670,7 +1670,9 @@
    if (!slrn_case_strncmp ((unsigned char *) s,
 			   (unsigned char *) "Newsgroups: ", 12) ||
        !slrn_case_strncmp ((unsigned char *) s,
-			   (unsigned char *) "Followup-To: ", 13))
+			   (unsigned char *) "Followup-To: ", 13) ||
+       !slrn_case_strncmp ((unsigned char *) s,
+			   (unsigned char *) "References: ", 12))
      return NULL; /* folding?*/
    
    if (!slrn_case_strncmp ((unsigned char *) s,

Reply via email to