bin-utils/addlabel.sh

9 lines
132 B
Bash
Raw Permalink Normal View History

2015-05-30 16:42:42 +00:00
#!/bin/sh
FORMAIL=/usr/local/bin/formail
if [ -n "$1" ]; then
grep -v "X-Label:.*$1" | $FORMAIL -fA "X-Label: $1"
else
exit 1
fi