aboutsummaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS44
1 files changed, 42 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 90975a06..d44443ac 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-Mailfromd NEWS -- history of user-visible changes. 2008-09-15
+Mailfromd NEWS -- history of user-visible changes. 2008-09-16
Copyright (C) 2005, 2006, 2007, 2008 Sergey Poznyakoff
See the end of file for copying conditions.
@@ -19,6 +19,8 @@ It can be converted to a usual string using the `body_string' function
* Changes to MFL
+** Function aliases
+
Functions can have several names. Alternative function names, or
aliases, are introduced by `alias' statement, placed between the
function declaration and return type declaration, e.g.:
@@ -32,6 +34,30 @@ done
Any number of aliases is allowed.
+** Functions with variable number of arguments
+
+Ellipsis as the last argument in a list of formal arguments to a
+function indicates that this function takes a variable number of
+arguments. For example:
+
+ func foo (string a ; string b, ...)
+
+Actual arguments passed in a list of variable arguments have string
+data type. A special construct is provided to access these arguments:
+
+ $(expr)
+
+where expr is any valid MFL expression, evaluating to a number. This
+construct returns exprth argument from the variable argument list.
+
+FIXME: Document it.
+
+** getopt and varptr
+
+New function `getopt' is provided.
+
+FIXME: Document it.
+
* New MFL functions
** body_string
@@ -93,6 +119,20 @@ the end of the string. Thus:
substring("mailfrom",4,-1) => "from"
substring("mailfrom",4,-2) => "fro"
+* New operation mode.
+
+When given `--run' command line option, mailfromd looks for a function
+named `main' and invokes it, passing the rest of command line as its
+arguments. The function `main' must be declared as:
+
+ func main(...) returns number
+
+The return value from this function is used as the exit code.
+
+Command line arguments may be processed using `getopt' builtin function.
+
+FIXME: Document it.
+
* New programs:
** smap.
@@ -172,7 +212,7 @@ Quarantines the message using the given reason.
* mtasim
-New command line options `--usage' and `--group' allow to specify user
+New command line options `--user' and `--group' allow to specify user
name and a list of additional groups when the program is run with
`root' privileges.

Return to:

Send suggestions and report system problems to the System administrator.