|
Editor's note:
The information in this node may be obsolete or otherwise inaccurate. This message will disappear, once this node revised. |
GNU Mailutils is shipped with a set of external Sieve actions. These actions are compiled as loadable modules and must be required prior to use (see Require Statement).
Synopsis:require "moderator" moderator args;
Description: This action is a moderator robot for Mailman-driven mail archives. A Mailman moderation request is a MIME message consisting of the following three parts:
N Content-Type Description 1 text/plain Introduction for the human reader. 2 message/rfc822 Original submission. 3 message/rfc822 Mailman control message. Replying to part 3 (keeping the subject intact) instructs Mailman to discard the original submission.
Replying to part 3 while adding an `Approved:' header with the list password in it approves the submission.
The
moderatoraction spawns an inferior Sieve machine and filters the original submission (part 2) through it. If the inferior machine marks the message as deleted, the action replies to the control message, thereby causing the submission to be discarded. The ‘From:’ address of the reply can be modified using:addresstag. After discarding the message,moderatormarks it as deleted, unless it is given:keeptag.The argument of
:sourcetag, if given, specifies the Sieve source file to be used on the message. If:tagis not present,moderatorwill create and use a copy of the existing Sieve machine.The action checks the message structure: it will bail out if the message does not have exactly 3 MIME parts, or if parts 2 and 3 are not of ‘message/rfc822’ type. It is the responsibility of the caller to make sure the message is actually a valid Mailman moderation request (see the example below).
Example:if allof(header :is "Sender" "mailman-bounces@gnu.org", header :is "X-List-Administrivia" "yes") { moderator :source "~/.sieve/mailman.sv"; }
Synopsis:require "pipe"; if pipe args { ... }
Description: Thepipeaction sends executes a command specified by its argument and sends the entire message to its standard input. The command argument supplies the command line.The envelope of the message is included, if the
:envelopetag is given.
Example: The example below uses the maidag utility (see maidag) to forward the message to user ‘gray’ on the machine ‘mail.gnu.org’.require "pipe"; pipe "/usr/sbin/maidag --url smtp://gray@mail.gnu.org"
Syntax:require "vacation"; vacation args;
Description: Thevacationaction returns a message with reply-text to the sender. It is intended to inform the sender that the recipient is not currently reading his mail.If the
:subjecttag is given, its argument sets the subject of the message. Otherwise, the subject is formed by prefixing original subject with ‘Re:’, or prefix, given with the:reply_prefixtag. Before prefixing, any original prefixes matching extended regular expression expr (:reply_regextag) are stripped from the subject line. If:reply_regexis not specified, the default regexp is ‘^re: *’.The
:aliasestag instructsvacationto handle messages for any address in addrlist in the same manner as those received for the user's principal email.Before processing,
vacationcompares the sender address with its address exclusion list. Elements of this list are extended case-insensitive regular expressions. If the sender address matches any of these expressions, the message will not be replied. The default exclusion list is:.*-REQUEST@.* .*-RELAY@.* .*-OWNER@.* ^OWNER-.* ^postmaster@.* ^UUCP@.* ^MAILER@.* ^MAILER-DAEMON@.*New entries can be added to this list using
:addressestag.The
:daystag sets the reply interval. A reply is sent to each sender once in ndays days. GNU Sieve keeps track of sender addresses and dates in a DBM file .vacation stored in the user's home directory. This tag is available only if Mailutils is compiled with DBM support.