I had a look at the links you gave me and implemented the possebility to add two scripts in the preferences.
The first one is run on new mail events and the other one if all mails are read.
If you want you can pull these changes, but you might want to have a look at the syntax because it is the first time I used java script.
You also might want to change the arrangement of the textboxes in the preferences. I could not find any better way to arrange them.
added new textboxes for new / no new mail scripts and functions stubs…
… for update methods
added default values and prefs are stored and restored
added functions to run scripts on new / no new mail... should be working
run "no new script only" if old msg count > 0
I forgot to mention that it is essential that the script is executable (chmod +x option).
I'll integrate your patch when I get a chance. Cheers.
I am discussing with somebody else about improvements on my idea (#33). Maybe you want to join in and add your thoughts if you have got the time.
Hi, I integrated your patch and reworked it a bit (see new branch SeniorSpielbergo-master). In particular, I kept one trigger/script instead of two. But since the trigger now receives the new message count in argument, I guess you should be able to handle the branching in a single script (i.e. if arg == 0; then lightDown; else if arg > 0 then lightUp; else error). Tell me how it goes.
Hi, thanks I will try that next week. At the moment I am not a home. I will report back.
Hi I had a look at your changes. It looks like it is working and I think you can merge this in the master branch.
This way it is easier to work with scripts especially when others are really interested in the message count.
Thanks for your help on this.
Ok. I just merged. Thank you.