KMail, flashing LEDs and the problems therein.
I'm using KMail 3.1.3 running on Mandrake 9.2, and I've got a filter set up to notify me of incoming mail via a sound and an application called "ledcontrol" which starts the scroll-lock LED flashing when I've got new mail. It works just great.
The problem is that the LED doesn't stop blinking until a command is send to ledcontrol via command line. I can't figure out an elegant way of doing this without having to literally open a term window and execute the command each time.
Here are some other options I have considered:
1) create a cron job to check the ~/mail/inbox/new folder every couple minutes, and if no files exist (meaning I've read all new mail), it executes the command to kill the LED. Problem is that KMail doesn't appear to put unread messages in this folder, and shoves everything into /cur instead. Frankly, I don't know what the /new folder is even for.
2) Figure out some other measurable difference between read and unread maildir files for a cron job, similar to 1).
3) Create a key shortcut in KMail to execute the ledcontrol command. KMail doesn't seem to offer key shortcuts for anything but KMail internal commands, unless I'm missing the obvious.
4) Something else I haven't thought of yet.
Any advice? I am very picky about it being simple (the ideal is automatic, like option 1), which I understand limits my possibilities.
Thanks for any help you can offer.