automate training the spam filter
This commit is contained in:
parent
30985b7dfc
commit
4a5c200404
15
local/bin/spam
Executable file
15
local/bin/spam
Executable file
@ -0,0 +1,15 @@
|
||||
#!/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"
|
Loading…
Reference in New Issue
Block a user