In your message dated Thu, 27 Apr 2006 12:17:34 -0400 (EDT), Krzys said
that ...
I did like what I see so I wanted to use this in my rc script but I am getting
this following error in my procmail.log file
procmail: Error while writing to "(echo "Subject: $CALLN $DATE"; \
echo;)|/usr/sbin/sendmail -io -t 6465522772(_at_)tmomail(_dot_)net"
Is the " at the end in the RC script? It shouldn't be
Any idea why it would not work?
Thanks
Chris
On Thu, 27 Apr 2006, Google Kreme wrote:
# Phone will be in the form (555) 222-1234 (see previous Vonage
related posts)
PHONE = "($ACODE) $XCHANG-$PNUM"
CALLN = $PHONE
CALLID=$HOME/.vonange.callers
ISLISTED=`grep -i "^$PHONE" $CALLID`
:0
* ISLISTED ?? ^[^,]+,[ ]+\/.*
{ CALLN=$MATCH }
:0
* ! $CALLN ^^^^
{
:0fw
| formail -i "Subject: $CALLN"
:0c
* ! $PHONE ?? ^\(555\) 333-4444
|(echo "Subject: $CALLN $DATE"; \
echo;)|/usr/sbin/sendmail -io -t 5553334444(_at_)tmomail(_dot_)net
}
% cat .vonage_callers
(555) 222-1234, Test Name
(333) 444-1243, Another Test Name
etc.
Seems to work.
Of course, if you want both the phone and the caller name, you can do
that too.
--
"Give a man a fire and he's warm for a day, but set fire to him and
he's warm for the rest of his life."
____________________________________________________________
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
!DSPAM:122,4450dbb850502048025564!
____________________________________________________________
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
--
Best Regards,
Tim Rice
---------------
Phuket Thailand
____________________________________________________________
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