Guest User

Untitled

a guest
Jun 14th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  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/"
Add Comment
Please, Sign In to add comment