Mailfromd NEWS -- history of user-visible changes. 2007-05-24
Copyright (C) 2005, 2006, 2007 Sergey Poznyakoff
See the end of file for copying conditions.
Please send mailfromd bug reports to <bug-mailfromd@gnu.org.ua>
Version 4.0.90
* National Language Support.
The program include National Language Support. Polish and Ukrainian
translations are available.
* NLS Functions
NLS functions allow to localize your filter scripts for a particular
language. The following functions are implemented: bindtextdomain,
dgettext, dngettext, textdomain, gettext, ngettext. In addition,
macros _() and N_() are also provided.
* Input files are preprocessed before compilation. Default preprocessor is
M4, but this can be changed (or disabled) at configuration time (see
`DEFAULT_PREPROCESSOR' variable and `--with-preprocessor' command
line option).
* New atom $#
Returns the number of the arguments passed to the function.
* New atom @parm
Returns the position of parameter `parm' in the function argument
list. It can be used, for example, to check whether an optional
argument value is passed to the function, e.g.:
func foo(string x; number n)
do
if $# > @n
/* `n' is passed */
...
The default preprocessor setup script provides a macro `define'
designed to be used for this purpose:
func foo(string x; number n)
do
if defined(n)
/* `n' is passed */
...
* sprintf
The built-in function `sprintf' is available with the same semantics
as its C counterpart.
* Discontinued support for deprecated feature:
** `&code' form to specify an exception code is discontinued.
** pragma options retry, io-retry, and connect-retry
* Bugfixes:
** Built-in listen ignored optional second argument.
** Debug specification incorrectly gave preverence to the global level
over the source level. This is fixed, so that `--debug=40,dns=10'
means level 10 for calls from `dns.c', and level 40 for all the rest.
Version 4.0, 2007-05-12
Note for users of 3.1.x: see also the notes for previous alpha
(3.1.9x) versions.
* SIGHUP handling
SIGHUP instructs `mailfromd' to restart itself.
* rc.mailfromd reload
The `reload' option given to `rc.mailfromd' instructs it to send
SIGHUP to the running instance of the program.
* mtasim
The `mtasim' utility is an MTA simulator for testing and debugging
mailfromd filter scripts. It supports stdio (-bs) and daemon (-bd)
modes, has GNU readline support and `expect' facility, which makes it
useful in automated test cases.
See the documentation, chapter `mtasim'.
* `begin'/`end' handlers
The `begin' and `end' special handlers may be used to
supply startup and cleanup code for the filter program.
The `begin' special handler is executed once for each
SMTP session, after the connection has been established but
before the first milter handler has been called. Similarly, an
`end' handler is executed exactly once, after the connection has
been clo
|