3 mailfrom=short+err@ucw.cz
4 rcptto=jan.kratochvil@sms.paegas.cz
8 hd=`sed -n -e '/^\$/=' -e '/^\$/q' <$t`
11 head -n $hd $t|sed -n \
12 -e 's/^Subject: *\(.*[^ ]\) *$/S:\1/p' \
13 -e 's/^From: *\(.*[^ ]\) *$/F:\1/p'
16 -e 's/^.*wr\(ote\|ites\):$//' \
18 `"|tr '\n' ' '|sed 's/\([^ ]\) *\( [^ ]\)/\1\2/g' \
19 |sed 's/^ *\([^ ].*\)/\1/'|sed 's/\(.*[^ ]\) *$/\1/') \
20 |head -c $maxlen >$t.2
22 (echo -n "EHLO ";hostname -f;echo "\
29 X-SMSNF-Notice: Generated by SMSNF, contact Jan Kratochvil <short@ucw.cz> when problems occur.
30 ";grep -v '^\.$' <$t.2;echo -e "\n.")|/usr/sbin/sendmail -bs &>/dev/null