daily pastebin goal
11%
SHARE
TWEET

Untitled

a guest May 31st, 2017 549 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # vim: ft=sieve
  2.  
  3. require "imap4flags";
  4. require "fileinto";
  5. require "copy";
  6.  
  7. if address :domain :is ["from", "to", "cc", "bcc"] "frobtech.com" {
  8.   addflag "frobtech";
  9.  
  10.   if address :all :is "to" "report@frobtech.com" {
  11.     addflag "\\seen";
  12.     fileinto "Trash";
  13.   }
  14. }
  15.  
  16. if anyof (address :is "to" "meredith@quux.org",
  17.           header  :is "list-id" "<quux.yahoogroups.com>",
  18.           header  :is "list-id" "<quux.googlegroups.com>",
  19.           address :is "reply-to" "webmaster@quux.org") {
  20.   addflag "quux";
  21. }
  22.  
  23. if header :is "list-id" "<jobs.perl.org>" {
  24.   fileinto "Lists.perl-jobs";
  25. }
  26.  
  27. if header :matches "x-original-to" ["root", "postmaster", "mailer-daemon*"] {
  28.   fileinto "Alias.root";
  29. }
  30.  
  31. if anyof (address :is "from" ["deliverysupport@safeway.com",
  32.                               "service@chewy.com",
  33.                               "billpayer@customercenter.net"],
  34.           allof (address :is "from" "safeway@email.safeway.com",
  35.                  header :matches "subject" "Reminder: Delivery * today")) {
  36.   redirect :copy "xyzzy@gmail.com";
  37. }
  38.  
  39. if allof (address :is "from" "leasing@landlord.com",
  40.           header :is "subject" "Package Notification") {
  41.   redirect :copy "foo@gmail.com";
  42. }
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