[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Procmail setup problem



Incoming from Lorenzo Rossi:
> 
> Il gio, 2004-08-26 alle 21:47, s. keeling ha scritto:
> 
> > Solution to this is scoring:
> > 
> > :0:
> > * 1^0 ^To:.*debian-user
> > * 1^0 ^Cc:.*debian-user
> > ${HOME}/Mail/debian-user
> > 
> 
> What does it meen * 1^0 ^To:.*debian-user ??
>                     ^^^
> I'm a newb...

You say that like it's a bad thing.  :-)

Recipes start out with a negative score.  Generic patterns that match
add "1" to that score.  Once the score goes positive, the action
clause is executed.  So, for the above, a match on either triggers the
action (a non-match has no effect).  "man procmailsc" explains this.
If you want the action to trigger when both match, you can "seed" the
score:

:0:
* -2^0
* 1^0 ^To:.*debian-user
* 1^0 ^Cc:.*debian-user
debian-user

That "-2^0" will set the beginning score to -2.

> > I'm susbscribed to multiple debian-* lists.  This separates them all
> > out into separate folders:
> > 
> > # ------------------------------------
> > # debian-${MATCH}
> 
> Wow very powerfull! I like it...:)
> 
> You give me a lots of suggestions...
> Do you think my problems are mainly related to the configurations of
> rules?

I ran into a lot of problems when I began.  Multiple readings of "man
procmail*" helped a lot.  There's also the procmail-users mailing
list.  Go read through their archives if you can't afford to
subscribe.  There's many _very_ good websites out there to help you
with lots of examples.  Timo Salmi's is pretty helpful when you're new
to this.  So is Nancy McGough's (sp?).  If you read Usenet newsgroups,
comp.mail.misc is the place to go.

One suggestion you should take as gospel: make a copy, THEN change
your recipe.  It can be fairly difficult to figure out what's going on
when a recipe fails spectacularly.  If you've a backup, you can avoid
that problem.


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)               http://www.spots.ab.ca/~keeling 
- -



Reply to: