Your message dated Fri, 29 Apr 2005 10:32:16 -0400
with message-id <[EMAIL PROTECTED]>
and subject line Bug#306859: fixed in lurker 1.2-6
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 28 Apr 2005 23:32:23 +0000
>From [EMAIL PROTECTED] Thu Apr 28 16:32:23 2005
Return-path: <[EMAIL PROTECTED]>
Received: from cpe.atm0-0-0-2421032.0x3ef2dbfa.arcnxx7.customer.tele.dk
(host.kl-teknik.com) [62.242.219.250]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1DRIUY-0007RG-00; Thu, 28 Apr 2005 16:32:22 -0700
Received: from homer.thepenguininvasion.dk
(0x5358aaae.abnxx12.adsl-dhcp.tele.dk [::ffff:83.88.170.174])
(AUTH: PLAIN [EMAIL PROTECTED])
by host.kl-teknik.com with esmtp; Fri, 29 Apr 2005 01:32:19 +0200
id 00017604.42717286.00002EEB
From: Frederik Dannemare <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: lurker incorrectly parses mutt-generated subject headers
Date: Fri, 29 Apr 2005 01:32:31 +0200
User-Agent: KMail/1.7.2
MIME-Version: 1.0
Content-Type: Multipart/Mixed;
boundary="Boundary-00=_PKXcCMrRSToYt9b"
Message-Id: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.5 required=4.0 tests=BAYES_30,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
--Boundary-00=_PKXcCMrRSToYt9b
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Package: lurker
Version: 1.2-5
Severity: normal
Tag: patch
Hi,
lurker incorrectly parses mutt-generated subject headers. See the thread
on <http://terpstra.ca/lurker/thread/20050428.232012.b0cb614d.en.html>
for more info where Wesley W. Terpstra also supplies me with a patch to
fix the issue. I have tested the patch and it works.
I have attached Wesley's patch to this report.
Please consider applying to 1.2 before Sarge deep-freezes.
Thanks,
--
Frederik Dannemare | http://sentinel.dk | http://linuxworlddomination.dk
http://qa.debian.org/developer.php?login=Frederik+Dannemare
http://www.ubuntulinux.org/wiki/FrederikDannemare
Key fingerprint = 30CF 7AD3 17D9 1A63 A730 ECA6 0D4C 2C97 9D9A 238E
--Boundary-00=_PKXcCMrRSToYt9b
Content-Type: text/x-diff;
charset="us-ascii";
name="space-fix.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="space-fix.patch"
Index: CharsetEscape.cpp
===================================================================
RCS file: /cvsroot/lurker/lurker/common/CharsetEscape.cpp,v
retrieving revision 1.11
diff -u -r1.11 CharsetEscape.cpp
--- CharsetEscape.cpp 23 Jun 2003 15:28:10 -0000 1.11
+++ CharsetEscape.cpp 28 Apr 2005 22:20:58 -0000
@@ -166,25 +166,32 @@
#endif
CharsetEscape code(default_coding);
+ bool sawCodeWord = false;
- string::size_type b = 0, c, e, s;
+ string::size_type b = 0, c, e, s, n;
while ((c = str.find("=?", b)) != string::npos)
{
- code.write(out, str.c_str() + b, c - b);
-
if ((e = str.find('?', c+2)) != string::npos &&
(s = str.find('?', e+1)) != string::npos &&
s == e + 2 &&
- (b = str.find("?=", s+1)) != string::npos &&
+ (n = str.find("?=", s+1)) != string::npos &&
str.find_first_of(" \t", c) > b)
{ // valid escape
+ if (!sawCodeWord || // guaranteed not npos: (c has = )
+ str.find_first_not_of(" \r\n\t", b) < c)
+ {
+ code.write(out, str.c_str() + b, c - b);
+ }
+
+ sawCodeWord = true;
+
c += 2;
string charset(str, c, e - c);
char encoding = str[e+1];
s += 1;
- DwString in(str.c_str() + s, b-s);
+ DwString in(str.c_str() + s, n-s);
DwString decode;
- b += 2;
+ b = n+2;
if (encoding == 'Q' || encoding == 'q')
{
@@ -198,18 +205,24 @@
DwDecodeQuotedPrintable(in, decode);
}
- if (encoding == 'B' || encoding == 'b')
+ else if (encoding == 'B' || encoding == 'b')
{
DwDecodeBase64(in, decode);
}
+ else
+ {
+ decode = "<--corrupt-->";
+ }
CharsetEscape subcode(charset.c_str());
subcode.write(out, decode.c_str(), decode.length());
}
else
{ // not valid escape
- code.write(out, "=?", 2);
+ code.write(out, str.c_str() + b, c+2 - b);
b = c+2;
+
+ sawCodeWord = false;
}
}
--Boundary-00=_PKXcCMrRSToYt9b--
---------------------------------------
Received: (at 306859-close) by bugs.debian.org; 29 Apr 2005 14:43:56 +0000
>From [EMAIL PROTECTED] Fri Apr 29 07:43:56 2005
Return-path: <[EMAIL PROTECTED]>
Received: from newraff.debian.org [208.185.25.31] (mail)
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1DRWih-00060m-00; Fri, 29 Apr 2005 07:43:55 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
id 1DRWXQ-0003qQ-00; Fri, 29 Apr 2005 10:32:16 -0400
From: Jonas Meurer <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.55 $
Subject: Bug#306859: fixed in lurker 1.2-6
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Fri, 29 Apr 2005 10:32:16 -0400
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
X-CrossAssassin-Score: 2
Source: lurker
Source-Version: 1.2-6
We believe that the bug you reported is fixed in the latest version of
lurker, which is due to be installed in the Debian FTP archive:
lurker_1.2-6.diff.gz
to pool/main/l/lurker/lurker_1.2-6.diff.gz
lurker_1.2-6.dsc
to pool/main/l/lurker/lurker_1.2-6.dsc
lurker_1.2-6_i386.deb
to pool/main/l/lurker/lurker_1.2-6_i386.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Jonas Meurer <[EMAIL PROTECTED]> (supplier of updated lurker package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Fri, 29 Apr 2005 15:47:28 +0200
Source: lurker
Binary: lurker
Architecture: source i386
Version: 1.2-6
Distribution: unstable
Urgency: low
Maintainer: Jonas Meurer <[EMAIL PROTECTED]>
Changed-By: Jonas Meurer <[EMAIL PROTECTED]>
Description:
lurker - Archive tool for mailing lists with search engine
Closes: 298958 306859
Changes:
lurker (1.2-6) unstable; urgency=low
.
* patch lurker/CharsetEscape.cpp: lurker parsed mutt-generated
subject headers incorrectly (closes: #306859)
* add a note in NEWS.Debian to inform admins about the fact that
they have to regenerate lurkers database to apply the parsing
fix.
* updated french debconf templates, thanks to Eric (closes: #298958)
Files:
853dbe9b536effb09e911c363e8bc45f 592 mail optional lurker_1.2-6.dsc
f8b2a0fe90e6de1d07c0ed8575cf8ab6 23225 mail optional lurker_1.2-6.diff.gz
cc4070915d5a706de90c1f1c456d460a 510698 mail optional lurker_1.2-6_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCcj3ud6lUs+JfIQIRAs2wAJ9tiRjmU5muOeaPOhKMnWLRUyRLGQCePZ0l
7G4S3UFa0Y1HSnWWlpj0sZs=
=SeLU
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]