bin-utils/addlabel.sh
2015-05-30 18:42:42 +02:00

9 lines
132 B
Bash
Executable File

#!/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