procmail
[Top] [All Lists]

Re: Using 'procmail -m ...' (question)

2004-10-29 16:10:19
Toen wij William Park kietelden, kwam er dit uit:
Ruud H.G. van Tol:
Dallman Ross:

How about something like:

         :0:
         * whatever
         spam

         # if we are still here, quit with error exist status
         EXITCODE = 1     HOST


That's the whole recipe.

What good does it to have 'HOST' there, where procmail
is already at the end of the recipe?

It's Procmail version of exit(EXITCODE).  When HOST is not the same as
your machine's name (short hostname), then it exits.

Maybe you didn't understand my question, but that could have been
because I repeated 'recipe' where I meant 'rc-file'.

From man procmailrc:
the program  will  terminate,  but  will  not generate an error
(i.e., to the mailer it will seem that the  mail  has  been
delivered).

This would be equivalent, I think:

  DEFAULT = /dev/null

  :0:
  * whatever
  spam

  EXITCODE = 1


-- 
Grtz, Ruud


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>