6.6.2. procmail 配置

这里有一个 procmail(1) 的 “$HOME/.procmailrc“ 文件的类似配置例子。

  1. MAILDIR=$HOME/Maildir
  2. DEFAULT=$MAILDIR/Inbox/
  3. LOGFILE=$MAILDIR/Maillog
  4. # clearly bad looking mails: drop them into X-trash and exit
  5. :0
  6. * 1^0 ^X-Advertisement
  7. * 1^0 ^Subject:.*BUSINESS PROPOSAL
  8. * 1^0 ^Subject:.*URGENT.*ASISSTANCE
  9. * 1^0 ^Subject: *I NEED YOUR ASSISTANCE
  10. X-trash/
  11. # Delivering mailinglist messages
  12. :0
  13. * 1^0 ^Precedence:.*list
  14. * 1^0 ^Precedence:.*bulk
  15. * 1^0 ^List-
  16. * 1^0 ^X-Distribution:.*bulk
  17. {
  18. :0
  19. * 1^0 ^Return-path:.*debian-devel-admin@debian.or.jp
  20. jp-debian-devel/
  21. :0
  22. * ^Resent-Sender.*debian-user-request@lists.debian.org
  23. debian-user/
  24. :0
  25. * ^Resent-Sender.*debian-devel-request@lists.debian.org
  26. debian-devel/
  27. :0
  28. * ^Resent-Sender.*debian-announce-request@lists.debian.org
  29. debian-announce
  30. :0
  31. mailing-list/
  32. }
  33. :0
  34. Inbox/