2022-08-19 09:59:02 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-08-19 10:49:28 +00:00
|
|
|
if [ $# -lt 1 ]; then
|
|
|
|
echo $0 ordernum [num-cables] [otherinfo]
|
2022-08-19 09:59:02 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
ordernum=$1; shift
|
2022-08-19 10:49:28 +00:00
|
|
|
|
|
|
|
if [ $# -ge 1 ]; then
|
|
|
|
numcables=$1; shift
|
|
|
|
else
|
|
|
|
numcables=1
|
|
|
|
fi
|
|
|
|
|
2022-08-19 09:59:02 +00:00
|
|
|
other="$@"
|
2022-08-19 10:49:28 +00:00
|
|
|
date=$(date -R)
|
2022-08-19 09:59:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
f=nico.schottelius
|
|
|
|
f2=ungleich.ch
|
2022-08-19 10:49:28 +00:00
|
|
|
fall=${f}@${f2}
|
|
|
|
|
|
|
|
cat <<EOF | /usr/sbin/sendmail ${fall}
|
|
|
|
From: Nico Schottelius <${fall}>
|
|
|
|
To: digitec <d2b@digitec.ch>
|
|
|
|
Subject: Falsches Stromkabel Bestellung ${ordernum}
|
|
|
|
Date: ${date}
|
|
|
|
|
|
|
|
Hallo Digitec,
|
|
|
|
|
|
|
|
die Bestellung ${ordernum} kam mit einem Schuko-Anschlusskabel anstatt
|
|
|
|
Schweizer Stecker. Bitte ${numcables} Adapter nachliefern.
|
|
|
|
|
|
|
|
Gruss,
|
2022-08-19 09:59:02 +00:00
|
|
|
|
2022-08-19 10:49:28 +00:00
|
|
|
Nico Schottelius
|
2022-08-19 09:59:02 +00:00
|
|
|
|
|
|
|
EOF
|