procmail
[Top] [All Lists]

Re: possibly useful for vonage users

2006-04-20 11:00:52
On Thu, 20 Apr 2006 04:50:56 -0600 Google Kreme <gkreme(_at_)gmail(_dot_)com> 
wrote:

On 19 Apr 2006, at 22:50 , Gerald V. Livingston II wrote:

     :0c
     |(echo "Subject: Voicemail";\
     echo $VMDATE;\
     echo $VMFROM;\
     )|/usr/sbin/sendmail -oi 
AAAXXXNNNN(_at_)messaging(_dot_)sprintpcs(_dot_)com
   }

I put this in:
    :0c
    |(echo "Subject: $PHONE VM $DATE"; echo;)|/usr/sbin/sendmail -io - 
t 123465789(_at_)tmomail(_dot_)net

and I get this:

procmail: Executing "(echo "Subject: $PHONE VM $DATE"; echo;)|/usr/ 
sbin/sendmail -io -t 123465789(_at_)tmomail(_dot_)net"
procmail: Error while writing to "(echo "Subject: $PHONE VM $DATE";  
echo;)|/usr/sbin/sendmail -io -t 123465789(_at_)tmomail(_dot_)net"
procmail: Assigning "LASTFOLDER=(echo "Subject: $PHONE VM $DATE";  
echo;)|/usr/sbin/sendmail -io -t 123465789(_at_)tmomail(_dot_)net"

However, I ALSO get the sms message delivered to my phone.

(the second echo is evidently required on my sendmail replacement to  
include the balnk line separating the headers)

I remember creating that recipe and I had to use the multiline echo
statements to get it to stop issuing errors. Something about the way echo
terminates lines. And it won't work all on one line. 

Gerald

____________________________________________________________
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

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