Gentoo Archives: gentoo-dev

From: Peter Volkov <pva@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] striping blank lines (was: stripping out the DO NOT REPLY from bugzie emails)
Date: Mon, 22 Oct 2007 16:14:16
Message-Id: 1193069377.9505.56.camel@localhost
In Reply to: Re: [gentoo-dev] stripping out the DO NOT REPLY from bugzie emails by Mike Frysinger
1 В Сбт, 29/09/2007 в 07:05 -0400, Mike Frysinger пишет:
2 > when comments get added, there are 5 blank lines between the bugzilla
3 > URI's and the start of actual content ...
4
5 This can be workarouned with another .procmailrc rule:
6
7 # Strip out excess empty lines
8 :0 Hfw
9 * ^From: bugzilla-daemon@g.o
10 | awk '{ if ( $0 == "" ) {el++;} else { if (el>0) print ""; el=0; print $0 ;}}'
11
12 I'm not sure that this is the best approach but I did not found a way
13 how to do this with sed. If it's possible I'd like to know how, so I
14 could just add another -e 'script' to existing "DO NOT REPLY" striping
15 recipe.
16
17 --
18 Peter.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] striping blank lines (was: stripping out the DO NOT REPLY from bugzie emails) Elias Probst <mail@×××××××××××.eu>