Bug#261758: marked as done (vim: Procmail syntax doesn't support single-quoted strings)

Debian Bug Tracking System owner@bugs.debian.org
Tue, 22 Mar 2005 00:49:04 -0800


Your message dated Tue, 22 Mar 2005 09:40:17 +0100
with message-id <E1DDevx-0008LN-4F@localhost.localdomain>
and subject line the problem is fixed in current vim version
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 Jul 2004 00:42:45 +0000
>From pronovic@cedar-solutions.com Tue Jul 27 17:42:45 2004
Return-path: <pronovic@cedar-solutions.com>
Received: from c-66-41-43-41.mn.client2.attbi.com (cedar-solutions.com) [66.41.43.41] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BpcWr-0003pt-00; Tue, 27 Jul 2004 17:42:45 -0700
Received: from agamemnon ([192.168.0.102])
	by cedar-solutions.com with esmtp (Exim 3.35 #1 (Debian))
	id 1BpcWs-000540-00; Tue, 27 Jul 2004 19:42:46 -0500
Received: from pronovic by agamemnon with local (Exim 4.34)
	id 1BpcX0-0000eK-Q7; Tue, 27 Jul 2004 19:42:54 -0500
Date: Tue, 27 Jul 2004 19:42:54 -0500
From: Kenneth Pronovici <pronovic@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Bcc: "Kenneth J. Pronovici" <pronovic@debian.org>
Subject: vim: Procmail syntax doesn't support single-quoted strings
Message-ID: <20040728004254.GA2446@cedar-solutions.com>
Reply-To: Kenneth Pronovici <pronovic@debian.org>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="8X7/QrJGcKSMr1RN"
Content-Disposition: inline
User-Agent: Mutt/1.4i
X-Reportbug-Version: 2.61
Sender: Kenneth Pronovici <pronovic@cedar-solutions.com>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 


--8X7/QrJGcKSMr1RN
Content-Type: multipart/mixed; boundary="kXdP64Ggrk/fb43R"
Content-Disposition: inline


--kXdP64Ggrk/fb43R
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: vim
Version: 1:6.2-532+4
Severity: minor
Tags: patch

Hi!

The procmail syntax file (procmail.vim) doesn't seem to properly support
single-quoted strings, like in this bogofilter example:

   UNREADABLE=3D'[^?"]*big5|iso-2022-jp|ISO-2022-KR|euc-kr|gb2312|ks_c_5601=
-1987'
   :0:
   * 1^0 $ ^Subject:.*=3D\?($UNREADABLE)
   * 1^0 $ ^Content-Type:.*charset=3D"?($UNREADABLE)
   SPAM

Attached is a small patch to fix it.

KEN


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.25-1-386
Locale: LANG=3Den, LC_CTYPE=3Den_US (ignored: LC_ALL set to en_US)

Versions of packages vim depends on:
ii  dpkg                        1.10.21      Package maintenance system for=
 Deb
ii  libc6                       2.3.2.ds1-12 GNU C Library: Shared librarie=
s an
ii  libgpmg1                    1.19.6-12.1  General Purpose Mouse Library =
[lib
ii  libncurses5                 5.4-4        Shared libraries for terminal =
hand
ii  vim-common                  1:6.2-532+4  Vi IMproved - Common files

-- no debconf information

--=20
Kenneth J. Pronovici <pronovic@debian.org>

--kXdP64Ggrk/fb43R
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="procmail.vim.patch"
Content-Transfer-Encoding: quoted-printable

diff -Naur old/procmail.vim new/procmail.vim
--- old/procmail.vim	2004-07-27 19:31:25.000000000 -0500
+++ new/procmail.vim	2004-07-27 19:30:36.000000000 -0500
@@ -15,9 +15,10 @@
 syn match   procmailComment      "#.*$" contains=3DprocmailTodo
 syn keyword   procmailTodo      contained Todo TBD
=20
-syn region  procmailString       start=3D+"+  skip=3D+\\"+  end=3D+"+
+syn region  procmailStringSingle start=3D+'+  skip=3D+\\'+  end=3D+'+
+syn region  procmailStringDouble start=3D+"+  skip=3D+\\"+  end=3D+"+
=20
-syn region procmailVarDeclRegion start=3D"^\s*[a-zA-Z0-9_]\+\s*=3D"hs=3De-=
1 skip=3D+\\$+ end=3D+$+ contains=3DprocmailVar,procmailVarDecl,procmailStr=
ing
+syn region procmailVarDeclRegion start=3D"^\s*[a-zA-Z0-9_]\+\s*=3D"hs=3De-=
1 skip=3D+\\$+ end=3D+$+ contains=3DprocmailVar,procmailVarDecl,procmailStr=
ingSingle,procmailStringDouble
 syn match procmailVarDecl contained "^\s*[a-zA-Z0-9_]\+"
 syn match procmailVar "$[a-zA-Z0-9_]\+"
=20
@@ -56,7 +57,8 @@
   HiLink procmailVar		Identifier
   HiLink procmailVarDecl	Identifier
=20
-  HiLink procmailString String
+  HiLink procmailStringSingle String
+  HiLink procmailStringDouble String
=20
   delcommand HiLink
 endif

--kXdP64Ggrk/fb43R--

--8X7/QrJGcKSMr1RN
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBBvaO8On2ujzZUQQRAjGoAJ9mWzg71Jprgkl4ut5/x2lkoKnZSQCg0y+C
HaZotTYouRRPkJiC0Ne0Y1U=
=qbzj
-----END PGP SIGNATURE-----

--8X7/QrJGcKSMr1RN--

---------------------------------------
Received: (at 261758-done) by bugs.debian.org; 22 Mar 2005 08:40:37 +0000
>From madcoder@madism.org Tue Mar 22 00:40:35 2005
Return-path: <madcoder@madism.org>
Received: from olympe.madism.org (hermes.madism.org) [82.225.205.10] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DDewE-00033V-00; Tue, 22 Mar 2005 00:40:35 -0800
Received: from localhost.localdomain (hades.madism.org [192.168.0.10])
	by hermes.madism.org (Postfix) with ESMTP id 4B9AA24AB3
	for <261758-done@bugs.debian.org>; Tue, 22 Mar 2005 09:40:17 +0100 (CET)
Received: from madcoder by localhost.localdomain with local (Exim 4.50)
	id 1DDevx-0008LN-4F
	for 261758-done@bugs.debian.org; Tue, 22 Mar 2005 09:40:17 +0100
To: 261758-done@bugs.debian.org
Subject: the problem is fixed in current vim version
Message-Id: <E1DDevx-0008LN-4F@localhost.localdomain>
From: Pierre Habouzit <madcoder@madism.org>
Date: Tue, 22 Mar 2005 09:40:17 +0100
Delivered-To: 261758-done@bugs.debian.org
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=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 530058