On 14 May 2014, at 11:16 , Bart Schaefer
<barton(_dot_)schaefer(_at_)gmail(_dot_)com> wrote:
On Tue, May 13, 2014 at 10:13 PM, LuKreme <kremels(_at_)kreme(_dot_)com>
wrote:
: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.
I think you want :0ch so that formail gets only the header from procmail in
the first place.
I don’t want the headers from the email, I want the headers I set and the
$SMSTEXT.
Right now, this seems to be working
:0c
| (formail -brt -I"Subject: ${CLEANFROM}" \
-I"To: ${BOXCAR}" \
-I"From: kreme(_at_)kreme(_dot_)com"; \
echo $SMSTEXT) | $SENDMAIL -t
--
The King of Marigold was in the kitchen cooking breakfast for the Queen
The Queen was in the parlor playing piano for the children of the King
____________________________________________________________
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