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

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



Incoming from Nikolai Weibull:
> * s. keeling <keeling@xxxxxxxxxxx> [Oct 26, 2004 12:56]:
> > 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).  It's how you build OR rules in
procmail.  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.

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.


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)    http://www.spots.ab.ca/~keeling      Please don't Cc: me.
- -



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