Handle forwards as aliases with local copy
parent
41b1666609
commit
18834de56e
@ -1,13 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Get the mail content
|
||||
FILENAME=/tmp/forward-$$
|
||||
cat > $FILENAME <&0
|
||||
|
||||
# Actually send the emails
|
||||
IFS=',' read -ra RECIPIENTS <<< "$1"
|
||||
for RECIPIENT in "${RECIPIENTS[@]}"; do
|
||||
sendmail -S smtp $RECIPIENT < $FILENAME
|
||||
done
|
||||
|
||||
rm $FILENAME
|
Loading…
Reference in New Issue