procmail
[Top] [All Lists]

Re: Filter question

1995-10-27 10:25:14
Albert was puzzled by:

The procmailrc man page says about the 'f' qualifier:

f Consider the pipe as a filter

This is a fine piece of UnixWizardSpeak, but what does it mean?

        It means that it does something to the letter but the
letter continues to be processed.  This means that the output
of the action line replaces the input of the action line as
the letter (header or body or both).  This is a common
programming technique in both shell scripts and lisp-like
languages.

                                                                Does the
output of the action line get passed to the next recipe, even if the current
recipe is delivering?

        The current recipe is _not_ delivering.  it cannot be.  It
is a filter.

                      If so, what is the difference with the 'c' qualifier?

        c dumps a copy to the pipe (if there is a pipe) and
ignores the output.  f replaces the input with the output.

Soren

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