Advertisement
Guest User

Untitled

a guest
Dec 11th, 2015
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. require [ "fileinto", "imap4flags", "vacation" ];
  2.  
  3. if address :contains "from" [ "jwiegley@gmail.com", "johnw@newartisans.com", "johnw@gnu.org" ] {
  4. setflag "\\Seen";
  5. }
  6.  
  7. # Keep logwatch logs out of the INBOX
  8. if address :contains "from" [ "logwatch@" ] {
  9. setflag "\\Seen";
  10. fileinto "list.misc";
  11. }
  12.  
  13. # Throw away junk or useless mail
  14. elsif allof (header :contains "From" [ "info@netflix.com", "discship@netflix.com"],
  15. header :contains "Subject" "How was the Picture Quality") {
  16. discard;
  17. }
  18.  
  19. elsif header :contains "Subject"
  20. [ "Undelivered Mail Returned to Sender"
  21. , "Delivery Status Notification (Failure)"
  22. ] {
  23. discard;
  24. }
  25.  
  26. # Mailing lists
  27. elsif header :contains ["To", "From", "Cc", "Sender"] "tarikh@bahai-library.com" { fileinto "list.bahai.tarjuman"; }
  28. elsif header :contains ["To", "From", "Cc", "Sender"] "tarjuman@bahai-library.com" { fileinto "list.bahai.tarjuman"; }
  29.  
  30. elsif header :contains "list-id" "<acl2-books.googlegroups.com>" { fileinto "list.acl2.books"; }
  31. elsif header :contains "list-id" "<acl2-help.utlists.utexas.edu>" { fileinto "list.acl2.help"; }
  32. elsif header :contains "list-id" "<acl2.utlists.utexas.edu>" { fileinto "list.acl2"; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement