X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/c4ceed07f17f67af7d96e7fd27c92eb374e62e19..7bdac8a13cc021ac78709b449ed4e0404bcf642a:/doc/doc-docbook/filter.xfpt diff --git a/doc/doc-docbook/filter.xfpt b/doc/doc-docbook/filter.xfpt index f235a278d..87c268203 100644 --- a/doc/doc-docbook/filter.xfpt +++ b/doc/doc-docbook/filter.xfpt @@ -8,6 +8,7 @@ .include stdflags .include stdmacs +.include ./local_params .docbook . ///////////////////////////////////////////////////////////////////////////// @@ -44,6 +45,13 @@ .endmacro . =========================================================================== +. Copyright year. Update this (only) when changing content. + +.macro copyyear +2023 +.endmacro + +. =========================================================================== . ///////////////////////////////////////////////////////////////////////////// . ///////////////////////////////////////////////////////////////////////////// @@ -59,15 +67,18 @@ Exim's interfaces to mail filtering Exim filtering -23 November 2009 + +.fulldate + PhilipHazel PH - 4.80 - 17 May 2012 +.versiondatexml PH -2010University of Cambridge + +.copyyear + The Exim Maintainers .literal off @@ -77,8 +88,8 @@ .chapter "Forwarding and filtering in Exim" "CHAPforandfilt" This document describes the user interfaces to Exim's in-built mail filtering -facilities, and is copyright © University of Cambridge 2007. It -corresponds to Exim version 4.80. +facilities, and is copyright © The Exim Maintainers ©year(). It +corresponds to Exim version &version(). @@ -274,9 +285,9 @@ in RFC 3028, which should be read in conjunction with these notes. The Exim Sieve implementation offers the core as defined by RFC 3028, comparison tests, the subaddress parameter, the &*copy*&, &*envelope*&, &*fileinto*&, &*notify*&, and &*vacation*& extensions, but not the &*reject*& -extension. Exim does not support message delivery notifications (MDNs), so -adding it just to the Sieve filter (as required for &*reject*&) makes little -sense. +extension. +Exim did not support message delivery notifications (MDNs) when Sieve handling +was introduced, so &*reject*& (which need them) could not be supported. In order for Sieve to work properly in Exim, the system administrator needs to make some adjustments to the Exim configuration. These are described in the @@ -344,10 +355,14 @@ contains an additional address besides the one the test checks for. .section "Semantics of keep" "SEC11" -The &(keep)& command is equivalent to +.new +The &(keep)& command is by default equivalent to .code fileinto "inbox"; .endd +but, when called from a redirect router, the destination can be set +by using the &%sieve_inbox%& option on the router. +.wen It saves the message and resets the implicit keep flag. It does not set the implicit keep flag; there is no command to set it once it has been reset. @@ -1178,7 +1193,9 @@ been obeyed, the &(logwrite)& command can be used to write to it: &`e.g. logwrite "$tod_log $message_id processed"`& .endd It is possible to have more than one &(logfile)& command, to specify writing to -different log files in different circumstances. Writing takes place at the end +different log files in different circumstances. +A previously opened log is closed on a subsequent &(logfile)& command. +Writing takes place at the end of the file, and a newline character is added to the end of each string if there isn't one already there. Newlines can be put in the middle of the string by using the &"\n"& escape sequence. Lines from simultaneous deliveries may get @@ -1330,7 +1347,7 @@ A &"contains"& test does a partial string match, having expanded both strings. .endd For a &"matches"& test, after expansion of both strings, the second one is -interpreted as a regular expression. Exim uses the PCRE regular expression +interpreted as a regular expression. Exim uses the PCRE2 regular expression library, which provides regular expressions that are compatible with Perl. The match succeeds if the regular expression matches any part of the first