On 12 May 2014, at 12:20 , LuKreme <kremels(_at_)kreme(_dot_)com> wrote:
I have this line at the start of my .procmailrc
SMSTEXT=`/usr/local/bin/formail -I "" | /usr/bin/cut -c1,140`
LOG="SMSTEXT: ${SMSTEXT}$NL”
that should be cut -c1-140.
However, I am still getting unexpected results later on when I try to sent the
140 characters as an SMS:
:0c
| (formail -b -I"Subject: SMS" \
-I"To: ${SMS}" \
-I"From: ${LUSER}"; \
echo $SMSTEXT) | $SENDMAIL -t
instead of getting the SMS text, I get the whole message. I suspect that flags
for formail are incorrect, but it’s been so long since I used it.
--
There's no such thing as too much chocolate.
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail