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

Re: Killfiling people with procmail or exim (Was: Re: Gnome problems in unstable)



On Sun, Apr 20, 2003 at 08:53:28PM -0400, Wayne Topa wrote:
> Jamie Lawrence(jal@jal.org) is reported to have said:
> > On Sat, 19 Apr 2003, ScruLoose wrote:
> > 
> > > In the meantime, I think I'll look into how to plonk somebody via my
> > > exim filter .forward file.  Shouldn't be too hard.
> > 
> > Can't help you with exim, don't use it. But if should you start employing
> > procmail, it is easy:
<SNIP>
> 
> This works for me in exim.
> 
> if  $h_From:  contains  "Hell.Surfers@"
> then
>     seen
>     finish
> endif

Short, sweet, to-the-point.  I like it.
I think I'm a little confused about the logic of the exim filter
process, though...
What I've been using to sort my mail (list-specific inboxes, etc) runs
something like this:

if (condition)
then (seen save some-place)
endif

if not delivered
then
   if (other-condition)
   then (seen save some-other-place)
   endif
endif

etc.

Now, your usage of "seen finish" inside an if-then statement seems to
imply that if I slap "finish" (or "seen finish") on the end of each
delivery action, I won't need to do the "if not delivered" test at the
beginning of each condition...
ie, as soon as it finds a rule that matches, it'll do the delivery, and
then "finish" will tell exim to NOT look for any further matches, just
forget this message and start processing the next one...
Is that correct?
(Sorry if this is in the docs... exim's docs are plenty comprehensive,
but I have a helluvatime finding answers in there.)

> :-) HTH, YMMV, HAND :-)

'HAND'?  I don't know that one.
-- 
,-----------------------------------------------------------------------------.
>       -ScruLoose-       |     Check out the coolest radio station ever:     <
>      Please do not      |               www.radioparadise.com               <
>     reply off-list.     |                                                   <
`-----------------------------------------------------------------------------'

Attachment: pgpm4Rg5Iq1sf.pgp
Description: PGP signature


Reply to: