From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-dev+bounces-27279-garchives=archives.gentoo.org@gentoo.org>)
	id 1Ijzux-0005mK-KZ
	for garchives@archives.gentoo.org; Mon, 22 Oct 2007 16:14:16 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l9MGDPho015012;
	Mon, 22 Oct 2007 16:13:25 GMT
Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.177])
	by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l9MGBXdC012836
	for <gentoo-dev@lists.gentoo.org>; Mon, 22 Oct 2007 16:11:33 GMT
Received: by ik-out-1112.google.com with SMTP id c29so590170ika
        for <gentoo-dev@lists.gentoo.org>; Mon, 22 Oct 2007 09:11:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=beta;
        h=domainkey-signature:received:received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:sender;
        bh=zTFWLNwsuOgM++l4B8RR+tEsAHg3HgwKJn9yNAGcsho=;
        b=DTP3SfDjHJ/3tYxuAy5yJZ6TgPrh0xzwIVyCLdbKDTUOgNfqNb7vTksG3bFDBIX7BGxKLsm4DkMemL0+HzrmQep4Mk2ntFcBTuNYrH8dzU775N4fM4GljGGZly+6pzY2g4PkIcQDWLezbxuoZJIWpy46ApUa48EPjkL4k3abtw0=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=beta;
        h=received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:sender;
        b=Q3nwfxpcLG0ICbCcuLNNgpcdB6My3zvCaStH9nOJo1xwXGpTFkswOd//oAOVTZQnA2YtyFNf3eUYG/SrZZirwnv3fK+a7IhTxI9oAvD3aRWy6PY7cD7Aif8ZpbM7ZacwbRoT5hgmJd1HSmgyCTx7TaDd/EeNIOLZOBu8u5un0c8=
Received: by 10.86.70.8 with SMTP id s8mr3913946fga.1193069492815;
        Mon, 22 Oct 2007 09:11:32 -0700 (PDT)
Received: from ?192.168.1.2? ( [77.246.104.171])
        by mx.google.com with ESMTPS id 31sm10138828fkt.2007.10.22.09.11.30
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Mon, 22 Oct 2007 09:11:30 -0700 (PDT)
Subject: Re: [gentoo-dev] striping blank lines (was: stripping out the DO
	NOT REPLY from bugzie emails)
From: Peter Volkov <pva@gentoo.org>
To: gentoo-dev@lists.gentoo.org
In-Reply-To: <200709290705.32201.vapier@gentoo.org>
References: <46FD8EBA.10205@gentoo.org> <20070929095833.GA14360@gentoo.org>
	 <20070929103641.GG1606@curie-int.orbis-terrarum.net>
	 <200709290705.32201.vapier@gentoo.org>
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-f2fJyVwCXHsQDpE4m2xX"
Date: Mon, 22 Oct 2007 20:09:37 +0400
Message-Id: <1193069377.9505.56.camel@localhost>
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
Mime-Version: 1.0
X-Mailer: Evolution 2.12.1 
Sender: Peter Volkov <ptr.letter@gmail.com>
X-Archives-Salt: ad53bad7-c7b3-4f08-84dd-59ff6c5231d4
X-Archives-Hash: 7e93d823af592b9fffc2655b21566f8f


--=-f2fJyVwCXHsQDpE4m2xX
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

=D0=92 =D0=A1=D0=B1=D1=82, 29/09/2007 =D0=B2 07:05 -0400, Mike Frysinger =
=D0=BF=D0=B8=D1=88=D0=B5=D1=82:
> when comments get added, there are 5 blank lines between the bugzilla
> URI's and the start of actual content ...

This can be workarouned with another .procmailrc rule:

# Strip out excess empty lines
:0 Hfw
* ^From: bugzilla-daemon@gentoo.org
| awk '{ if ( $0 =3D=3D "" ) {el++;} else { if (el>0) print ""; el=3D0; pri=
nt $0 ;}}'

I'm not sure that this is the best approach but I did not found a way
how to do this with sed. If it's possible I'd like to know how, so I
could just add another -e 'script' to existing "DO NOT REPLY" striping
recipe.

--=20
Peter.

--=-f2fJyVwCXHsQDpE4m2xX
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: =?UTF-8?Q?=D0=AD=D1=82=D0=B0?=
	=?UTF-8?Q?_=D1=87=D0=B0=D1=81=D1=82=D1=8C?=
	=?UTF-8?Q?_=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D1=8F?=
	=?UTF-8?Q?_=D0=BF=D0=BE=D0=B4=D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=B0?=
	=?UTF-8?Q?_=D1=86=D0=B8=D1=84=D1=80=D0=BE=D0=B2=D0=BE=D0=B9?=
	=?UTF-8?Q?_=D0=BF=D0=BE=D0=B4=D0=BF=D0=B8=D1=81=D1=8C=D1=8E?=

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

iD8DBQBHHMsyz6tlgEWSarMRAiv3AKCHnQ82xLsg9eURyV1TMSVvwo2ysACeIyxy
egvL71IRWCnvoTtvpf8J6KU=
=x7hP
-----END PGP SIGNATURE-----

--=-f2fJyVwCXHsQDpE4m2xX--

-- 
gentoo-dev@gentoo.org mailing list