daily pastebin goal
87%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox"
  2. VHOME=`/home/vpopmail/bin/vuserinfo -d $EXT@$HOST`
  3. RESPOND_THRESHOLD=2.0
  4.  
  5. if (/^X-Spam-Flag: *Yes/)
  6. {
  7.         `test -d $VHOME/Maildir/.Spam`
  8.         if ( $RETURNCODE == 1 )
  9.         {
  10.                 `/usr/local/bin/maildirmake $VHOME/Maildir/.Spam`
  11.                 `echo INBOX.Spam >> Maildir/courierimapsubscribed`
  12.         }
  13.         to "Maildir/.Spam/"
  14. }
  15.  
  16. `test -f $VHOME/vacation/message`
  17. if ( $RETURNCODE == 0 )
  18. {
  19.    if (!/^List-Unsubscribe:.*/:h )
  20.    {
  21.       /X-Spam-Score: (\d+)/
  22.       if ($MATCH1 < $RESPOND_THRESHOLD)
  23.       {
  24.          cc "|/usr/bin/autorespond 86400 3 $VHOME/vacation/message $VHOME/vacation"
  25.       }
  26.    }
  27. }
  28.  
  29. to "Maildir/"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top