https://mailutils.org/usqay/index.php?title=Filter_chain&feed=atom&action=historyFilter chain - Revision history2024-03-28T09:40:06ZRevision history for this page on the wikiMediaWiki 1.35.13https://mailutils.org/usqay/index.php?title=Filter_chain&diff=442&oldid=prevGray: Created page with "A chain of filters applies each filter in turn. Its syntax is: <source lang="bnf"> <filter-chain> ::= <filter> | <filter-chain> "+" <filter> <filter> ::= <filter-spec> <ARG>*..."2016-11-09T12:06:58Z<p>Created page with "A chain of filters applies each filter in turn. Its syntax is: <source lang="bnf"> <filter-chain> ::= <filter> | <filter-chain> "+" <filter> <filter> ::= <filter-spec> <ARG>*..."</p>
<p><b>New page</b></p><div>A chain of filters applies each filter in turn. Its syntax is:<br />
<br />
<source lang="bnf"><br />
<filter-chain> ::= <filter> | <filter-chain> "+" <filter><br />
<filter> ::= <filter-spec> <ARG>* <br />
<filter-spec> ::= <WORD> | "~" <WORD><br />
</source><br />
<br />
The <<tt>filter-spec</tt>> is the name of any existing mailutils filter. The plus character plays the same role as pipe in shell, i.e. redirects output from the filter on its left side to the input of the one on its right side. This character was selected to facilitate the use of filter chains in the command line<ref>A dubious choice. Traditional pipe character would be more in place here. The same goes for tilde instead of the <tt>!</tt> sign. Perhaps this will change in future, but even so I'll have to preserve the backward compatibility.</ref>. The <tt>~</tt> character in front of filter name reverses the default mode. That means that if the default mode is ''encode'' the following chain:<br />
<br />
~crlf + base64<br />
<br />
will first convert every occurrence of CR LF characters to a single LF (decode mode of the [[CRLF_(filter)|crlf filter]]) and then encode the resulting data into BASE64.<br />
<br />
== Notes ==<br />
<references/></div>Gray