.procmailrc 504 B

12345678910111213141516171819
  1. SHELL=/bin/sh
  2. LOGFILE=$HOME/.procmail.log
  3. LOG=""
  4. VERBOSE=yes
  5. MAILDIR=$HOME/Maildir
  6. DEFAULT=Maildir/
  7. :0c:
  8. * ^TO_anna@fugadalcontrollo.org
  9. {
  10. PGP_OK=`gpg --decrypt --auto-key-retrieve 1>/dev/null && echo 1`
  11. :0
  12. * ? test -n "$PGP_OK"
  13. | (formail -rI"From: anna@fugadalcontrollo.org" -I "Subject: [fugadalcontrollo] Grande, grazie della mail") | msmtp -a default -t
  14. :0
  15. | (formail -rI"From: anna@fugadalcontrollo.org" -I "Subject: [fugadalcontrollo] No! Così ci beccano") | msmtp -a default -t
  16. }