On Wed, Feb 16, 2005 at 02:24:16AM +0800, Bill Hacker wrote:
> >if "$h_X-Spam-Level:" contains "********************"
> >then
> > logfile /var/spool/spam/from-spam.txt
> > logwrite "$sender_address"
> >endif
> Too fatigued to try just now, but .....
> I am interested in time-stamping entries so as to remove those over an
> hour old, rather than all entries every hour regardless of age.
How about:
if "$h_X-Spam-Level:" contains "********************"
then
logfile /var/spool/spam/from-spam.txt
logwrite "$sender_address: $tod_epoch"
endif
Then using an lsearch lookup you can compare current time with logged
time.
Hmmm... how hard would it be to add dbmwrite capability.
Steve
----------------------------------------------------------------------
Steven A. Reisman <sar@???> P.O. Box 409
Press Enter LLP 421 N 2nd Street
715-426-2100 or 651-436-5254 River Falls, WI 54022
----------------------------------------------------------------------