Next: , Previous: Mailbox Quotas, Up: maidag


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 2.99.97, 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, a filename extension decide which scripting language will be used. User can alter the choice using ‘language’ configuration statement. For example:

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