configuration/local/bin/spam

16 lines
336 B
Plaintext
Raw Normal View History

2019-08-27 19:56:05 +02:00
#!/bin/sh
mid="id:$1"
file="$(notmuch show "$mid" | sed -n '1s/.*filename:\([^ ]*\).*/\1/p')"
temp="$(mktemp)"
cat > "$temp" <<HERE
References: <$1>
HERE
alot compose --sender felix.vanderjeugt@ugent.be \
--template="$temp" \
--subject spam \
--to spam@ugent.be \
--attach "$file"