procmail
[Top] [All Lists]

Re: Help with procmail recipe

2002-04-29 01:03:20
At 13:53 2002-04-29 +0800, francisv(_at_)dagupan(_dot_)com did say:
:0c
* ^TOsmsalert\(_at_)dagupan(_dot_)com
| ( email2sms | gnokii --sendsms <phone1>; sleep 10;\
    email2sms | gnokii --sendsms <phone2>; sleep 10;\
    email2sms | gnokii --sendsms <phone3> )
}

:0
/dev/null

I receive the contents of the e-mail on phone1 but the succeeding phone
numbers receive only the character "?"

Uh, do you figure you get THREE copies of your message on STDIN, or just the ONE, which is consumed by the first pipe process?

There's no need to use the 'c' flag if all you're going to do is discard the message. However, your solution lies in a different use of the 'c' flag:

:0cw
* ^TOsmsalert\(_at_)dagupan(_dot_)com
| email2sms | gnokii --sendsms <phone1>; sleep 10

:0Acw
| email2sms | gnokii --sendsms <phone2>; sleep 10

:0A
| email2sms | gnokii --sendsms <phone3>


---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>