Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Newbie zsh setup warts (history, pipes, export, ...).



* 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);}



Messages sorted by: Reverse Date, Date, Thread, Author