User Tools

Site Tools


sieve-filter

Siehe auch http://de.wikipedia.org/wiki/Sieve oder http://wiki2.dovecot.org/Pigeonhole/Sieve/Examples.

Beispiel Sieve Filter:


# Sieve filter
require ["fileinto"];\\ 
if header :matches "From" ["*schuft@musterdomain*", "*moinmoin@*", "*logcheck@*"] {
  fileinto "default/schuft"; # passende emails werden in den Ordner "schuft" des standart Postfachs gelegt\\ 
}
elsif header :matches "List-id" ["*EINE LISTE*"] {
  fileinto "default/eine Liste"; # passende emails werden in den Ordner "eine Liste" des standart Postfachs gelegt\\  
  redirect "egon@musterdomain"; # passende emails werden zusätzlich an "egon@musterdomain" geschickt\\ 
}
else{
  keep;
}

—-

Beispiel vacation auto reply:


require ["fileinto", "vacation"];\\ 
# Move spam to spam folder\\ 
vacation\\ 
  # Reply at most once a day to a same sender\\ 
  :days 1\\ 
  :subject "Out of office reply"\\ 
  # List of additional recipient addresses which are included in the auto replying.\\ 
  # If a mail's recipient is not the envelope recipient and it's not on this list,\\ 
  # no vacation reply is sent for it.\\ 
  :addresses ["j.doe@company.dom", "john.doe@company.dom"]\\ 
"I'm out of office, please contact Joan Doe instead.
Best regards
John Doe";

—-

sieve-filter.txt · Last modified: 2026/04/03 19:24 by 127.0.0.1