Trac Spam Sucks
Recently the Kid trac application has been under attack by spammers. At this time upgrading to the newest version and using the spam blocker plugin is not possible. So in the mean time I have written a script to help me delete the spam.
Running the script could be dangerous. There is always the possibility that you will delete real valid posts. To minimize the risk I make sure that I run it soom after the spam appears.
You simply run the script from the command line and pass it ticket ids or wiki page names as arguments.
./kill-last-wiki-spam WikiPage 100 109 OtherPageThe script will loop through the arguments and process them. Since code is more precise than language I'll let you read it to find out how it works.