citadel

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

notmuch-am (182B)


      1 #!/usr/bin/env bash
      2 
      3 mbox=$(mktemp)
      4 notmuch show --format=mbox "$1" > "$mbox"
      5 msgid=$(grep -i ^message-id "$mbox" | cut -d" " -f2 | head -n1)
      6 b4 am "$msgid" -m "$mbox"
      7 rm -f "$mbox"