"Fossies" - the Fresh Open Source Software Archive

Member "ispconfig3_install/server/conf/sieve_filter.master" (8 Jun 2021, 2344 Bytes) of package /linux/privat/ISPConfig-3.2.5.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "sieve_filter.master": 3.2.4_vs_3.2.5.

    1 <tmpl_if name="sieve_script" op="==" value="before">
    2 # This sieve script is generated by ISPConfig, any changes made will be overwritten.
    3 # You can create and activate a per-user sieve script (manually or via managesieve),
    4 # which will execute after this.
    5 
    6 require ["fileinto", "mailbox", "regex", "date", "relational", "vacation", "imap4flags", "envelope", "subaddress", "copy", "reject"];
    7 
    8 <tmpl_if name="move_junk" op="==" value="y">
    9 # Move spam to spam folder
   10 if anyof (header :is ["X-Spam", "X-Spam-Flag"] "Yes", header :matches "X-Spam-Status" "Yes, *") {
   11   fileinto :create "Junk";
   12   # Stop here so that we do not reply on spams
   13   stop;
   14 }
   15 </tmpl_if>
   16 
   17 <tmpl_if name="cc">
   18 # Send a copy of email to
   19 <tmpl_loop name="ccloop">
   20 redirect :copy "<tmpl_var name='address'>";
   21 </tmpl_loop>
   22 </tmpl_if>
   23 
   24 <tmpl_var name='custom_mailfilter'>
   25 
   26 </tmpl_if>
   27 <tmpl_if name="sieve_script" op="==" value="after">
   28 # This sieve script is generated by ISPConfig, any changes made will be overwritten.
   29 # You can create and activate a per-user sieve script (manually or via managesieve),
   30 # which will execute before this.
   31 
   32 require ["fileinto", "mailbox", "regex", "date", "relational", "vacation", "imap4flags", "envelope", "subaddress", "copy", "reject"];
   33 
   34 <tmpl_if name="move_junk" op="==" value="a">
   35 # Move spam to spam folder
   36 if anyof (header :is ["X-Spam", "X-Spam-Flag"] "Yes", header :matches "X-Spam-Status" "Yes, *") {
   37   fileinto :create "Junk";
   38   # Stop here so that we do not reply on spams
   39   stop;
   40 }
   41 </tmpl_if>
   42 
   43 <tmpl_if name="autoresponder" op="==" value="y">
   44 #################################################################
   45 # Autoreply
   46 #################################################################
   47 
   48 # Move spam to spam folder
   49 if anyof (header :is ["X-Spam", "X-Spam-Flag"] "Yes", header :matches "X-Spam-Status" "Yes, *") {
   50   # Stop here so that we do not reply on spams
   51   stop;
   52 }
   53 
   54 <tmpl_if name="start_date">
   55 if currentdate :value "ge" "iso8601" "<tmpl_var name='start_date'>" {
   56 </tmpl_if>
   57 <tmpl_if name="end_date">
   58 if currentdate :value "le" "iso8601" "<tmpl_var name='end_date'>" {
   59 </tmpl_if>
   60 
   61 vacation  :days 1
   62   :subject "<tmpl_var name='autoresponder_subject'>"
   63   <tmpl_var name='addresses'>
   64   "<tmpl_var name='autoresponder_text'>";
   65 
   66 <tmpl_if name="end_date">
   67 }
   68 </tmpl_if>
   69 <tmpl_if name="start_date">
   70 }
   71 </tmpl_if>
   72 </tmpl_if>
   73 
   74 </tmpl_if>