procmail
[Top] [All Lists]

help with a simple counter file

2003-08-26 13:56:47
Hey everyone.  I have a neat little counter idea I'd like to
implement.

I recently set up a honeypot email address, and have the following in
my .procmailrc:

:0
* FOLDER ?? ^^trap^^
{
  # Report spam
  :0
  | /usr/local/bin/spamassassin -r
  HOST
}

The honeypot addresses in question are aliased to the trap folder,
which doesn't exist, since anything to these addresses are to be
reported and tossed anyway.

What I'd like to do, however, is append a single character to a
~/.honeypot_hits file, so that a simple ls -l of that file will tell
me how many hits I've gotten there, along with the time the last one
came in.

I'm assuming a file lock will be needed, which is fine, but I'm not
sure what is the best way to go about this.

Any suggestions?

TIA
Lou
-- 
Louis LeBlanc               leblanc(_at_)keyslapper(_dot_)org
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org                     ԿԬ

Nothing so needs reforming as other people's habits.
    -- Mark Twain

_______________________________________________
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>