procmail
[Top] [All Lists]

Re: Including a shared recipe in .procmailrc

1996-10-26 12:38:03
Catherine Hampton asked,

| I know it is possible to include a set of shared recipes in 
| a procmail file.  But what is the syntax of the line to include
| these recipes?

Put

  INCLUDERC=/path/to/file

at the point in your main rcfile where you want procmail to read the shared
recipes.  Unless the included rcfile results in final delivery, procmail will
return to the next line in the main rcfile below the INCLUDERC assignment.

| And are there any special considerations/pitfalls
| in the format and commands in the recipe file?  Thanks!

Just make them as generic as possible.  Users may have to set some variables
before and after: for example, if the included rcfile assumes that certain
information will be in $THIS and it sets $THAT to the information the user
needs, the user has to assign $THIS before the INCLUDERC statement and then
do something with $THAT afterward.

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