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

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



I suggest that further procmail discussion be re-routed to the procmail
list <procmail@xxxxxxxxxxxxxxxxxxxx>.

On Mon, 25 Oct 2004, Jason Price wrote:

> ### PROCMAIL STUFF
> 
> This works fairly well for me:
> 
> :0
> * (^TO_|^Sender:[ 	]+owner-)zsh
> zsh-list.spool

I think you may want ^TO rather than ^TO_ there.  ^TO_ is for matching an
address, not a word.  Also, the zsh lists have not set a Sender: header
for a very long time; rather, they have

Delivered-To: mailing list zsh-user@xxxxxxxxxx

(or zsh-workers, as appropriate).

> I have no idea what PWS or Bart are/were doing with their mail to break 
> that procmail recipe

Probably, sending you a personal copy, like I did with this message.

On Mon, 25 Oct 2004, s. keeling wrote:
> 
> Here's what I'm using now:
> 
>   :0
>   * 1^0 ^(TO_|Sender:[ 	]+owner-)zsh

This is broken, or at least useless.  The magic tokens are ^TO_ or ^TO 
(all the characters have to be consecutive).  You can't use TO_ or TO just 
anywhere.

On Tue, 26 Oct 2004, Nikolai Weibull wrote:

> > > What are the 1^0 supposed to do?
> 
> > That's "scoring" (man procmailsc).
> > It's how you build OR rules in procmail.
> 
> Again, my guess, but definitely a weird way of having to do it.

You don't HAVE to do it that way.  This works, too:

  :0
  * (^TO_|^Sender:[  ]+owner-)zsh\
   |^From:.*(schaefer@brasslantern\.com\
            |duvall@comfychair\.org\
            |pws@csr\.com\
            )\
   |^(Delivered\-To|Mailing\-List|Received):.*zsh\-\
   |^Newsgroups:.*comp\.shells\.zsh\
   |^Posted\-To:.*zsh

Just don't forget the backslashes at the ends of lines (and they must not 
have any spaces following them, before the newline).

> > All procmail recipes start with a beginning score of -1.

No, they start with a score of zero.  Only rules that accumulate a score
greater than zero trigger an action.



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