procmail
[Top] [All Lists]

Re: Issues with formal and cut?

2014-05-17 22:54:04

On 15 May 2014, at 01:22 , Udi <uuddii(_at_)eng(_dot_)tau(_dot_)ac(_dot_)il> 
wrote:
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?

Hmm. I have not noticed duplicate emails.

However, my procmail skills have seriously atrophied over the years. I have 
very complicated recipes that have been running unattended for many years. 
Unattended means I haven’t looked at them and in some cases am not sure why I 
did what I did.

My recollection is that a copy that enters a pipe is considered delivered 
UNLESS there is a f flag.


-- 
I gotta straighten my face This mellow-thighed chick just put my spine
out of place


____________________________________________________________
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