User Tools

Site Tools


exim4:sieve_filter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
exim4:sieve_filter [2016/11/14 14:41] peterexim4:sieve_filter [2020/07/15 09:30] (current) – external edit 127.0.0.1
Line 59: Line 59:
 </code> </code>
  
 +or
 +
 +<code>
 +# Sieve filter
 +require ["fileinto", "copy", "vacation"] ;
 +
 +#begin = forward =
 +#data=1~bmF1bWl4QGdteC5kZA==
 +redirect :copy "test@domain.de";
 +#end = forward =
 +
 +#begin = autoresponder =
 +#data=1~VGVzdC1CZXRyZWZmAFRlc3QtVGV4dQ==
 +vacation :days 1 :subject "Test-Betreff" "Test-Text";
 +#end = autoresponder =
 +
 +#begin = filters =
 +#sieve filter
 +
 +
 +#sieve_filter:1;0;2;Test;3;INBOX.Trash
 +if header :contains ["Subject"] "Test" {
 +fileinto "INBOX.Trash" ;
 +stop ;
 +}
 +
 +#end sieve filter
 +
 +#end = filters =
 +keep ;
 +</code>
  
 ===== Another approach ===== ===== Another approach =====
Line 65: Line 96:
  
   * Sieve files accessed from redirect routers need to be readable by the uid of the process that handles the SMTP connection, (e.g. Debian-exim)   * Sieve files accessed from redirect routers need to be readable by the uid of the process that handles the SMTP connection, (e.g. Debian-exim)
-  * While the Sieve RFC specifies that files use CRLF as linebreaks, Exim filters usually require the use of LF only.+  * While the [[http://tools.ietf.org/html/rfc5228|Sieve RFC]] specifies that files use CRLF as linebreaks, Exim filters usually require the use of LF only.
   * Exim requires that sieve filter files identify themselves with "# Sieve filter" which is not part of the Sieve spec.   * Exim requires that sieve filter files identify themselves with "# Sieve filter" which is not part of the Sieve spec.
  
Line 119: Line 150:
  
 ===== References ===== ===== References =====
 +
 +http://www.exim.org/exim-html-current/doc/html/spec_html/filter_ch02.html
  
 https://debian-administration.org/users/lee/weblog/43 https://debian-administration.org/users/lee/weblog/43
 +
 +https://github.com/Exim/exim/blob/master/doc/doc-txt/README.SIEVE
 +
 +https://tty1.net/blog/2011/sieve-tutorial_en.html
exim4/sieve_filter.1479134512.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki