From: short <> Date: Tue, 10 Jul 2001 18:27:36 +0000 (+0000) Subject: obsoleted, replaced by CGW - a Concurrent GateWay X-Git-Tag: rh71~69 X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=db325e8c60a4ebd056d4442e8e6cc4d64579ec22 obsoleted, replaced by CGW - a Concurrent GateWay --- diff --git a/bin/smsnf b/bin/smsnf deleted file mode 100755 index 28123f8..0000000 --- a/bin/smsnf +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -maxlen=200 -mailfrom=short+err@ucw.cz -rcptto=jan.kratochvil@sms.paegas.cz - -t=/tmp/smsnf.$$ -head -qc 4k >$t -hd=`sed -n -e '/^\$/=' -e '/^\$/q' <$t` - -(echo -n "` -head -n $hd $t|sed -n \ --e 's/^Subject: *\(.*[^ ]\) *$/S:\1/p' \ --e 's/^From: *\(.*[^ ]\) *$/F:\1/p' -echo B: -tail +$hd $t|sed -n \ --e 's/^.*wr\(ote\|ites\):$//' \ --e '/^[^>]/p' -`"|tr '\n' ' '|sed 's/\([^ ]\) *\( [^ ]\)/\1\2/g' \ -|sed 's/^ *\([^ ].*\)/\1/'|sed 's/\(.*[^ ]\) *$/\1/') \ -|head -c $maxlen >$t.2 - -(echo -n "EHLO ";hostname -f;echo "\ -ONEX -MAIL FROM: $mailfrom -RCPT TO: $rcptto -DATA -From: @. -To: $rcptto -X-SMSNF-Notice: Generated by SMSNF, contact Jan Kratochvil when problems occur. -";grep -v '^\.$' <$t.2;echo -e "\n.")|/usr/sbin/sendmail -bs &>/dev/null -rm -f $t $t.2