citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

notmuch-update-mcat (1747B)


      1 #!/usr/bin/env bash
      2 
      3 notmuchcmd () {
      4   echo "notmuch" "$@"
      5   $(/home/jb55/bin/notmuch-work "$@")
      6 }
      7 
      8 # util
      9 notmuchcmd tag +to-me to:bill@monstercat.com and tag:inbox and not tag:to-me
     10 notmuchcmd tag +from-me from:bill@monstercat.com and tag:inbox and not tag:from-me
     11 
     12 # labels
     13 notmuchcmd tag +filed +royalties '(from:royalties@monstercat.com or to:royalties@monstercat.com)' and tag:inbox and not tag:royalties
     14 
     15 # noise
     16 notmuchcmd tag +events +noise to:events@monstercat.com and tag:inbox and not tag:events
     17 notmuchcmd tag +sentry +noise +error from:noreply@md.getsentry.com and tag:inbox and not tag:sentry
     18 notmuchcmd tag +bugsnag +noise +error from:bugsnag.com and tag:inbox and not tag:bugsnag
     19 notmuchcmd tag +slack +update +noise from:feedback@slack.com and tag:inbox and not tag:slack
     20 notmuchcmd tag +sendgrid +update +noise from:sendgrid.com and tag:inbox and not tag:sendgrid
     21 notmuchcmd tag +dev +clubhouse +update from:robot@clubhouse.io and tag:inbox and not tag:clubhouse
     22 notmuchcmd tag +noise +update from:"Clubhouse" and tag:inbox and not tag:clubhouse
     23 notmuchcmd tag +itunes +noise +update subject:"iTunes Weekly Upload Report" and tag:inbox and not tag:itunes
     24 notmuchcmd tag +noise subject:"spam report"
     25 
     26 # important stuff
     27 notmuchcmd tag +error from:systemd and subject:Failed and not tag:systemd and tag:inbox
     28 notmuchcmd tag +dev +github from:notifications@github.com and tag:inbox and not tag:github
     29 notmuchcmd tag +internal from:monstercat.com and not tag:internal and tag:inbox
     30 
     31 # notmuchcmd tag +flagged \
     32 #       tag:internal and \
     33 #       tag:to-me    and \
     34 #   not tag:flagged  and \
     35 #   not tag:noise    and \
     36 #   not tag:from-me  and tag:inbox
     37 
     38 # alerts
     39 notmuchcmd tag +flagged from:UPS or \(from:ari and from:monstercat\)