diff options
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | Mailfromd NEWS -- history of user-visible changes. 2009-05-10 | 1 | Mailfromd NEWS -- history of user-visible changes. 2009-05-11 |
2 | Copyright (C) 2005, 2006, 2007, 2008, 2009 Sergey Poznyakoff | 2 | Copyright (C) 2005, 2006, 2007, 2008, 2009 Sergey Poznyakoff |
3 | See the end of file for copying conditions. | 3 | See the end of file for copying conditions. |
4 | 4 | ||
@@ -24,6 +24,23 @@ is not strictly necessary. However, keep in mind that due to the | |||
24 | specifics of MeTA1, the number of symbols that may be exported for | 24 | specifics of MeTA1, the number of symbols that may be exported for |
25 | each stage is limited (Mailfromd manual, section 11.1.2). | 25 | each stage is limited (Mailfromd manual, section 11.1.2). |
26 | 26 | ||
27 | * Reject and tempfail actions: Functional notation | ||
28 | |||
29 | The reply actions `reject' and `tempfail' allow functional notation, | ||
30 | i.e. their arguments can be supplied as to a function: | ||
31 | |||
32 | reject(550, 5.7.7, "IP address does not resolve") | ||
33 | |||
34 | An important feature of this notation is that all three arguments are | ||
35 | MFL expressions, which means that you can now compute the reply codes | ||
36 | at run time: | ||
37 | |||
38 | reject(550 + %n, "5.7." %x, "Transaction rejected") | ||
39 | |||
40 | An argument can be omitted, in which case the default value is used, e.g.: | ||
41 | |||
42 | reject(550 + %n, , "Transaction rejected") | ||
43 | |||
27 | * New functions | 44 | * New functions |
28 | 45 | ||
29 | A set of new functions is added that allow to access the headers | 46 | A set of new functions is added that allow to access the headers |