procmail
[Top] [All Lists]

Re: How to test this recipe?

1998-03-22 23:38:24
On Sun, 22 Mar 1998, Webmarquee Newslists wrote:



FROM=`formail -rt -xTo:`

:0c
* ^TOsubscribe-req(_at_)flagfootball(_dot_)com
| perl $HOME/www/cgi/elistmgr/conf_reqDB.cgi $FROM

      I have a recipe that is supposed to fire off a perl script. I have
checked the permissions, etc but when email arrives nothing happens. When
I run the script from the command line it works quite well. How would I
know where the thing is dying? Is there some kind of error var I could
look at?
 
Yes.  Add this to just before the filter:

OLDLOG=$LOGFILE
LOGFILE=somefile-you-can-find
VERBOSE=on

Then after the filter:

VERBOSE=off
LOGFILE=$OLDLOG

Tis will log everything the filter does.  If it shows nothing, then you
should expnd verbose logging to include everything done before the filter. 



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