Revisiting kcheckmail now that my perl is slightly better than what it was when I wrote it.
Here are some improvement ideas that have sprung to mind:
Remove as many perl module depencies as possible.
Remove the config file option from script. The script is too simple to need a config file. Just tweak script variables instead, or pass arguments on the command line.
Add an option to monitor emails in biff mode. This is how it would work. Say you are interested in a particular email that matches a certain criteria (example From: email@example.com). Tell kcheckmail to alert you only for those emails and not worry about the rest. The reverse should also hold true. For example, don’t tell me about an email from google alerts, but tell me everything else.
Check email for X-SPAM and other popular spam headers and trash them. A usual Popup message should notify the user that the message has been trashed.
Verify spam against online rbls and either add a header or optionally trash them
Add logging / debugging capabilities.