Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Create an online spam trap counter' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create an online spam trap counter
Authored by: kirkmc on Jan 13, '04 04:23:12AM

I don't see the point in using bandwidth for something like this. Just create a file, say, spamcount.txt and put it in your Documents folder. Then create an AppleScript as follows:

do shell script "echo >> 1 ~/Documents/spamcount.txt"

This adds a 1 on a new line.

Add this script to a junk mail rule in Mail or Entourage, then, to find the total number of spams, just run this command:

wc -l ~/Documents/spamcount.txt

in the Terminal.



[ Reply to This | # ]