Mailfromd |
|
General-Purpose Mail Filter |
Sergey Poznyakoff |
Mailfromd Manual (split by node): | ? |
Envelope modification functions add or delete recipient addresses from the message envelope. This allows MFL scripts to redirect messages to another addresses.
Add the e-mail address to the envelope.
Remove address from the envelope.
The following example code implements a simple alias-like capability:
prog envrcpt do string alias dbget(%aliasdb, $1, "NULL", 1) if %alias != "NULL" rcpt_delete($1) rcpt_add(%alias) fi done |
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.