GNU Mailutils Manual (split by node):   Section:   Chapter:FastBack: Programs   Up: maidag   FastForward: Libraries   Contents: Table of ContentsIndex: Function Index

3.11.5 Maidag Scripting

Maidag can use global or per-user mail filters to decide whether to deliver the message, and where to deliver it. As of Mailutils version 3.6, such mail filters may be written in the following languages:

Mail filters to use are specified using ‘script’ configuration statement. The following meta-symbols can be used in its argument:

~
%h

Expands to the recipient home directory.

%u

Expands to the recipient user name.

By default, the filename extension decides which scripting language will be used. User can alter the choice using ‘language’ configuration statement. For example:

language "python"
script "~/.maidag-py-filter"