diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-06-30 15:03:24 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-06-30 15:03:24 +0000 |
commit | f41c2cbd210a989e5de01c18446c61a464904e10 (patch) | |
tree | b0406c28148bce94844518e8cee7b69d740c7533 | |
parent | cece453761eb1c867dc64c334c4370fd4501843a (diff) | |
download | mailfromd-v_1_0.tar.gz mailfromd-v_1_0.tar.bz2 |
Updatev_1_0
git-svn-id: file:///svnroot/mailfromd/branches/v_1_0@245 7a8a7f39-df28-0410-adc6-e0d955640f24
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | doc/mailfromd.texi | 18 |
2 files changed, 22 insertions, 1 deletions
@@ -7,3 +7,3 @@ * src/gram.y: Implement functions, function calls and new - conditional `validuser' + conditionals `validuser' and `dbmap' * src/lex.l: Likewise @@ -13,2 +13,5 @@ (function_lookup,function_install): New function + (node_type): New type node_type_dbmap + (struct dbmap_node): New data type + (struct node): New member `map'. * src/main.c: Use enum instead of defines for long option codes. diff --git a/doc/mailfromd.texi b/doc/mailfromd.texi index 51be5e3a..b9629c68 100644 --- a/doc/mailfromd.texi +++ b/doc/mailfromd.texi @@ -749,2 +749,20 @@ expressions are implemented: @table @code +@item dbmap @var{file} @var{atom} + @var{file} should be a literal string, @var{atom} an arbitrary +atom which evaluates to a valid string. This conditional returns +@code{true} if the key @var{atom} is present in the @acronym{DBM} file +@var{file}. If @var{atom} contains a @samp{@@} character, only the +part before this character will be used, thus allowing to check emails +against the aliases database: + +@smallexample +@group +if not dbmap "/etc/mail/aliases" $f + @dots{} +fi +@end group +@end smallexample + +Notice that @var{file} must not end in @samp{.db} suffix. + @item hostname @var{atom} |