procmail
[Top] [All Lists]

Re: Issues with formal and cut?

2014-05-15 02:22:27


On 14/05/14 20:16, Bart Schaefer 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.

No need for  f   flag?

And  LuKreme,  what are you doing with the copy?   Is it possible that you
get output from another module in your rc file?

--udi

____________________________________________________________
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