On 2017-02-22 (17:32 MST), @lbutlr <kremels(_at_)kreme(_dot_)com> wrote:
{
MSGTEXT=`/usr/local/bin/formail -I ""
}
Well, that’s embarrassing.
ANYWAY, I have a different problem. This is the whole rc file (called via
INCLUDERC)
MOBILE="trigger(_at_)recipe(_dot_)ifttt(_dot_)com"
MOFROM=“alert(_at_)example(_dot_)com"
MSGTEXT=""
SMSTEXT=""
VERBOSE=ON
:0c
{
:0
* ^Content-Transfer-Encoding: base64
{
MSGTEXT=`/usr/local/bin/formail -I ""| /usr/local/bin/gbase64 -d`
}
:0E
{
MSGTEXT=`/usr/local/bin/formail -I "" `
}
LOG="${MSGTEXT} before sed${NL}"
:0
{
MSGTEXT=`echo $MSGTEXT | sed 's/-.*8859-1// ' | dd bs=1 count=150`
}
LOG="${MSGTEXT} after sed${NL}"
SMSTEXT=":: $MSGTEXT ::"
LOG=$"About to send to ${MOBILE} \"${SMSTEXT}\"${NL}"
:0fw
| (formail -rt -I"Subject: ${LISTNAME} ${SUBJECT}" \
-I"From: ${MOFROM}" \
-I"To: ${MOBILE}" ; \
echo $SMSTEXT) | $SENDMAIL -t
:0
.trapped/
}
LOG="END OF SMS_PROCMAIL${NL}"
VERBOSE=OFF
Two things happen with this. First, the message is not sent with the From
header I set and two, and empty (as in 0 byte) “messages” falls through to be
written in .trapped.
Frankly, it’s been too long since I really hammered on procmail much, and most
of what I knew has evaporated.
--
Apple broke AppleScripting signatures in Mail.app, so no random signatures.
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)rwth-aachen(_dot_)de
https://mailman.rwth-aachen.de/mailman/listinfo/procmail