Mailinglist Archive: opensuse-security (520 mails)

< Previous Next >
Re: [suse-security] list moderation, message mangling (was: TIS FWTK)
  • From: MaD dUCK <madduck@xxxxxxxxxxx>
  • Date: Mon, 11 Dec 2000 22:36:24 -0500
  • Message-id: <20001211223624.A9113@xxxxxxxxxxx>
also sprach MaD dUCK (on Mon, 11 Dec 2000 10:26:39PM -0500):
> :0 fh
> * ^Sender.*owner-accu-general@accu\.org
> * ! ^Subject.*\[accu-general\]
> | sed -e "s/accu-general:/[accu-general]/gi"

and of all such filters in my .procmailrc, i chose the one that
doesn't do what i was talking about. this one replaces one style of
prefix with the one i prefer. what i was saying could be accomplished
by replacing the last line with:

> | sed -e "s/\(^Subject:\)/\1 [accu-general]/i"

also, the trailing gi is a gnu extension as volker kindly pointed out.
the g really isn't needed for we theoretically only replace "Subject:"
once per line per file. the i makes the match case-insensitive.


[greetings from the heart of the sun]# echo madduck@!#:1:s@\
may the bluebird of happiness twiddle your bits.

< Previous Next >
Follow Ups