diff options
Diffstat (limited to 'doc/mailfromd.texi')
-rw-r--r-- | doc/mailfromd.texi | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/mailfromd.texi b/doc/mailfromd.texi index 51be5e3a..b9629c68 100644 --- a/doc/mailfromd.texi +++ b/doc/mailfromd.texi | |||
@@ -747,6 +747,24 @@ them as of functions in programming languages. Currently the following | |||
747 | expressions are implemented: | 747 | expressions are implemented: |
748 | 748 | ||
749 | @table @code | 749 | @table @code |
750 | @item dbmap @var{file} @var{atom} | ||
751 | @var{file} should be a literal string, @var{atom} an arbitrary | ||
752 | atom which evaluates to a valid string. This conditional returns | ||
753 | @code{true} if the key @var{atom} is present in the @acronym{DBM} file | ||
754 | @var{file}. If @var{atom} contains a @samp{@@} character, only the | ||
755 | part before this character will be used, thus allowing to check emails | ||
756 | against the aliases database: | ||
757 | |||
758 | @smallexample | ||
759 | @group | ||
760 | if not dbmap "/etc/mail/aliases" $f | ||
761 | @dots{} | ||
762 | fi | ||
763 | @end group | ||
764 | @end smallexample | ||
765 | |||
766 | Notice that @var{file} must not end in @samp{.db} suffix. | ||
767 | |||
750 | @item hostname @var{atom} | 768 | @item hostname @var{atom} |
751 | @cindex @code{hostname} | 769 | @cindex @code{hostname} |
752 | @var{atom} should be a string representing an IP address in | 770 | @var{atom} should be a string representing an IP address in |