Clawsmail has it too: "Support for a command to be issued on new mail arrival"
http://www.claws-mail.org/plugin.php?plugin=notification
(also to an lcd, see pics in link)
Attaching op_leds. It is a binary that can change led lights in userspace...
would take a few moments to slap this together...
Open Clawsmail, goto "Configuration", "Plugins", there load "notification" (not the acpinotifier).
Then goto "Configuration", "Preferences", on the bottom left, there is the Plugins section. Select command, and you can make a script run.
The script only gets incomming email notifications. There should be a disable method, I have not found yet (other than doing a timeout inside the script to disable the led light, it would be on until reboot). Also ledlights stay on when in sleepmode.
edit: Found one, if you add a notification popup, you can track for the existance of such popup and disable the light when the popup is not there anymore.
Anyway. The script (which needs to be coded) calls op_leds, which needs the following changes before it works:
// sudo chown root:users op_leds
// sudo chmod 4750 op_leds
I have no idea how to wait for a windows activate notification (such as de-traying clawsmail). (not happy to poll xwininfo without even having wmctrl)
http://derickrethans.nl/xfce-and-keyboard.html
What are your thoughts so far?
op_leds.zip