<!DOCTYPE html PUBLIC "XSLT-compat"> <html lang="en-GB"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" type="text/css" href="../../../../common.css"> <meta name="author" content="The Exim Project. <http://www.exim.org/>"> <meta name="copyright" content="Copyright ©2010 The Exim Project. All rights reserved"> <meta name="description" content="Exim is a message transfer agent (MTA) developed at the University of Cambridge for use on Unix systems connected to the Internet."> <meta name="keywords" content="exim,smtp,mta,email"> <meta name="robots" content="noodp,noydir,index,follow"> <meta name="viewport" content="width=device-width"> <title>Exim's interfaces to mail filtering</title> <link rel="stylesheet" type="text/css" href="../../../../doc/index.css"> <link rel="canonical" href="http://www.exim.org/exim-html-current/doc/html/spec_html/filter.html"> </head> <body> <h1 id="header"><a href="../../../..">Exim Internet Mailer</a></h1> <div id="outer"> <ul id="nav_flow" class="nav"> <li><a href="../../../../index.html">Home</a></li> <li><a href="../../../../mirrors.html">Download</a></li> <li><a href="../../../../docs.html">Documentation</a></li> <li><a href="../../../../maillist.html">Mailing Lists</a></li> <li><a href="http://wiki.exim.org/">Wiki</a></li> <li><a href="http://www.exim.org/bugzilla/">Bugs</a></li> <li><a href="../../../../credits.html">Credits</a></li> <li class="search"><form action="http://www.google.com/search" method="get"> <span class="search_field_container"><input type="search" name="q" placeholder="Search Docs" class="search_field"></span><input type="hidden" name="hl" value="en"><input type="hidden" name="ie" value="UTF-8"><input type="hidden" name="as_qdr" value="all"><input type="hidden" name="q" value="site:www.exim.org"><input type="hidden" name="q" value="inurl:exim-html-current"> </form></li> </ul> <div id="inner"><div id="content"> <div id="info"> <h2>Exim's interfaces to mail filtering</h2> <p>Copyright © 2010 University of Cambridge<br>Revision 4.73 - 19 Nov 2010</p> </div> <div id="options" class="hidden"> <img src="../../../../doc/plus-12x12.png" width="12" height="12" class="expand"><img src="../../../../doc/minus-12x12.png" width="12" height="12" class="collapse">Expand/Collapse all Chapters</div> <div id="index"><ul id="chapters"> <li class="chapter"> <div class="button"></div> <span class="chapter_title">1. <a href="filter_ch01.html">Forwarding and filtering in Exim</a></span><ul class="sections"> <li class="section">1. <a class="section_title" href="filter_ch01.html#SEC00">Introduction</a> </li> <li class="section">2. <a class="section_title" href="filter_ch01.html#SEC01">Filter operation</a> </li> <li class="section">3. <a class="section_title" href="filter_ch01.html#SECTtesting">Testing a new filter file</a> </li> <li class="section">4. <a class="section_title" href="filter_ch01.html#SEC02">Installing a filter file</a> </li> <li class="section">5. <a class="section_title" href="filter_ch01.html#SEC03">Testing an installed filter file</a> </li> <li class="section">6. <a class="section_title" href="filter_ch01.html#SEC04">Details of filtering commands</a> </li> </ul> </li> <li class="chapter"> <div class="button"></div> <span class="chapter_title">2. <a href="filter_ch02.html">Sieve filter files</a></span><ul class="sections"> <li class="section">1. <a class="section_title" href="filter_ch02.html#SEC05">Recognition of Sieve filters</a> </li> <li class="section">2. <a class="section_title" href="filter_ch02.html#SEC06">Saving to specified folders</a> </li> <li class="section">3. <a class="section_title" href="filter_ch02.html#SEC07">Strings containing header names</a> </li> <li class="section">4. <a class="section_title" href="filter_ch02.html#SEC08">Exists test with empty list of headers</a> </li> <li class="section">5. <a class="section_title" href="filter_ch02.html#SEC09">Header test with invalid MIME encoding in header</a> </li> <li class="section">6. <a class="section_title" href="filter_ch02.html#SEC10">Address test for multiple addresses per header</a> </li> <li class="section">7. <a class="section_title" href="filter_ch02.html#SEC11">Semantics of keep</a> </li> <li class="section">8. <a class="section_title" href="filter_ch02.html#SEC12">Semantics of fileinto</a> </li> <li class="section">9. <a class="section_title" href="filter_ch02.html#SEC13">Semantics of redirect</a> </li> <li class="section">10. <a class="section_title" href="filter_ch02.html#SEC14">String arguments</a> </li> <li class="section">11. <a class="section_title" href="filter_ch02.html#SEC15">Number units</a> </li> <li class="section">12. <a class="section_title" href="filter_ch02.html#SEC16">RFC compliance</a> </li> </ul> </li> <li class="chapter"> <div class="button"></div> <span class="chapter_title">3. <a href="filter_ch03.html">Exim filter files</a></span><ul class="sections"> <li class="section">1. <a class="section_title" href="filter_ch03.html#SEC17">Format of Exim filter files</a> </li> <li class="section">2. <a class="section_title" href="filter_ch03.html#SEC18">Data values in filter commands</a> </li> <li class="section">3. <a class="section_title" href="filter_ch03.html#SECTfilterstringexpansion">String expansion</a> </li> <li class="section">4. <a class="section_title" href="filter_ch03.html#SEC19">Some useful general variables</a> </li> <li class="section">5. <a class="section_title" href="filter_ch03.html#SECTheadervariables">Header variables</a> </li> <li class="section">6. <a class="section_title" href="filter_ch03.html#SEC20">User variables</a> </li> <li class="section">7. <a class="section_title" href="filter_ch03.html#SEC21">Current directory</a> </li> <li class="section">8. <a class="section_title" href="filter_ch03.html#SECTsigdel">Significant deliveries</a> </li> <li class="section">9. <a class="section_title" href="filter_ch03.html#SEC222">Filter commands</a> </li> <li class="section">10. <a class="section_title" href="filter_ch03.html#SECTadd">The add command</a> </li> <li class="section">11. <a class="section_title" href="filter_ch03.html#SECTdeliver">The deliver command</a> </li> <li class="section">12. <a class="section_title" href="filter_ch03.html#SECTsave">The save command</a> </li> <li class="section">13. <a class="section_title" href="filter_ch03.html#SECTpipe">The pipe command</a> </li> <li class="section">14. <a class="section_title" href="filter_ch03.html#SECTmail">Mail commands</a> </li> <li class="section">15. <a class="section_title" href="filter_ch03.html#SECTlog">Logging commands</a> </li> <li class="section">16. <a class="section_title" href="filter_ch03.html#SECTfinish">The finish command</a> </li> <li class="section">17. <a class="section_title" href="filter_ch03.html#SECTtestprint">The testprint command</a> </li> <li class="section">18. <a class="section_title" href="filter_ch03.html#SECTfail">The fail command</a> </li> <li class="section">19. <a class="section_title" href="filter_ch03.html#SECTfreeze">The freeze command</a> </li> <li class="section">20. <a class="section_title" href="filter_ch03.html#SECTheaders">The headers command</a> </li> <li class="section">21. <a class="section_title" href="filter_ch03.html#SECTif">Obeying commands conditionally</a> </li> <li class="section">22. <a class="section_title" href="filter_ch03.html#SEC23">String testing conditions</a> </li> <li class="section">23. <a class="section_title" href="filter_ch03.html#SEC24">Numeric testing conditions</a> </li> <li class="section">24. <a class="section_title" href="filter_ch03.html#SEC25">Testing for significant deliveries</a> </li> <li class="section">25. <a class="section_title" href="filter_ch03.html#SEC26">Testing for error messages</a> </li> <li class="section">26. <a class="section_title" href="filter_ch03.html#SEC27">Testing a list of addresses</a> </li> <li class="section">27. <a class="section_title" href="filter_ch03.html#SECTpersonal">Testing for personal mail</a> </li> <li class="section">28. <a class="section_title" href="filter_ch03.html#SEC28">Alias addresses for the personal condition</a> </li> <li class="section">29. <a class="section_title" href="filter_ch03.html#SEC29">Details of the personal condition</a> </li> <li class="section">30. <a class="section_title" href="filter_ch03.html#SEC30">Testing delivery status</a> </li> <li class="section">31. <a class="section_title" href="filter_ch03.html#SECTmbox">Multiple personal mailboxes</a> </li> <li class="section">32. <a class="section_title" href="filter_ch03.html#SEC43">Ignoring delivery errors</a> </li> <li class="section">33. <a class="section_title" href="filter_ch03.html#SECTex">Examples of Exim filter commands</a> </li> </ul> </li> </ul></div> </div></div> <iframe id="branding" name="branding" src="../../../../branding/branding.html" height="0" frameborder="no" scrolling="no"></iframe><div id="footer">Website design by <a href="https://secure.grepular.com/">Mike Cardwell</a>, of <a href="http://cardwellit.com/">Cardwell IT Ltd.</a> </div> <div class="left_bar"></div> <div class="right_bar"></div> </div> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script><script type="text/javascript" src="../../../../common.js"></script><script type="text/javascript" src="../../../../doc/index.js"></script> </body> </html>