Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Newbie zsh setup warts (history, pipes, export, ...).
- X-seq: zsh-users 8123
- From: Nikolai Weibull <zsh-users-list@xxxxxxxxxxxxx>
- To: mailing list zsh-users <zsh-users@xxxxxxxxxx>
- Subject: Re: Newbie zsh setup warts (history, pipes, export, ...).
- Date: Tue, 26 Oct 2004 17:54:16 +0200
- In-reply-to: <20041026151619.GE22674@xxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20041024230623.GA3675@xxxxxxxxxxxxxxxxxxx> <Pine.LNX.4.61.0410241803320.23496@xxxxxxxxxxxxxxxxxx> <20041025060804.GA20740@xxxxxxxxx> <20041025162529.GA10681@xxxxxxxxxxxxxxxxxxx> <20041025151633.A27126@xxxxxxxxxxxxxxxxxx> <20041026035758.GA17578@xxxxxxxxxxxxxxxxxxx> <20041026114817.GG9745@xxxxxxxxxxxxxxxxxx> <20041026151619.GE22674@xxxxxxxxxxxxxxxxxxx>
* s. keeling <keeling@xxxxxxxxxxx> [Oct 26, 2004 17:20]:
> > > Here's what I'm using now:
> > >
> > > :0
> > > * 1^0 ^(TO_|Sender:[ ]+owner-)zsh
> > > * 1^0 ^From:.*(schaefer@brasslantern\.com\
> > > |duvall@comfychair\.org\
> > > |pws@csr\.com\
> > > )
> > > * 1^0 ^(Delivered\-To|Mailing\-List|Received):.*zsh\-
> > > * 1^0 ^Newsgroups:.*comp\.shells\.zsh
> > > * 1^0 ^Posted\-To:.*zsh
> > > {
> > > LOG="zsh-users - "
> > > :0:
> > > IN.zsh-users
> > > }
> > >
> >
> > What are the 1^0 supposed to do?
> That's "scoring" (man procmailsc).
That was my guess.
> It's how you build OR rules in procmail.
Again, my guess, but definitely a weird way of having to do it. Thanks
for showing this, I can use this in a few places myself.
> If _any_ of those conditions match, it's a match. Without scoring,
> all of those would have to match (AND) for it to be a match.
Yes. It's sad that there isn't an easier way to do it.
> All procmail recipes start with a beginning score of -1. Any of those
> matching would add 1 to the score, thereby triggering the action
> clause.
Aha, OK.
nikolai
--
::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden :::
::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
- References:
- Newbie zsh setup warts (history, pipes, export, ...).
- Re: Newbie zsh setup warts (history, pipes, export, ...).
- Re: Newbie zsh setup warts (history, pipes, export, ...).
- Re: Newbie zsh setup warts (history, pipes, export, ...).
- Re: Newbie zsh setup warts (history, pipes, export, ...).
- Re: Newbie zsh setup warts (history, pipes, export, ...).
- Re: Newbie zsh setup warts (history, pipes, export, ...).
- Re: Newbie zsh setup warts (history, pipes, export, ...).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author