[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
There may be cases when you need to use an external filter that
processes entire message (including headers). You cannot use
external-body-processor
, since it feeds only the
message body to the program. To overcome this difficulty, GNU Anubis
is shipped with ‘entire-msg.scm’ module. This module provides
Scheme function entire-msg-filter
, which is to be used in
such cases.
Feeds entire message to the given program. The output from the program replaces message headers and body.
Full pathname of the program to be executed.
Any additional arguments it may require.
Suppose you have a program /usr/libexec/myfilter
, that accepts
entire message as its input and produces on standard output a
modified version of this message. The program takes the name of a
directory for temporary files as its argument. The following example
illustrates how to invoke this program:
BEGIN GUILE guile-load-program entire-msg.scm END BEGIN RULE guile-process entire-msg-filter /usr/libexec/myfilter /tmp END
Another function defined in this module is openssl-filter
:
This function is provided for use with openssl
program. Openssl
binary attempts to rewind its input and
fails if the latter is a pipe, so openssl
cannot be used
with entire-msg-filter
. Instead, you should use
openssl-filter
. Its arguments are:
Path to openssl
binary.
Its arguments
See section Using S/MIME Signatures, for an example of use of this function.
[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on January 6, 2024 using texi2html 5.0.