nsbin/maildirnotmuchdump

10 lines
127 B
Bash
Executable File

#!/bin/sh
set -e
file=.notmuch/dump.xz
cd ~/Maildir
notmuch dump | xz > "$file"
git commit -m "Update notmuch dump" "$file"