Custom scripts on new mail / no new mail event #37

Closed
wants to merge 4 commits into
from

Projects

None yet

2 participants

@SeniorSpielbergo
Contributor

Hi,

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.

Kind regards,

David

@SeniorSpielbergo
Contributor

I forgot to mention that it is essential that the script is executable (chmod +x option).

@foudfou
Owner
foudfou commented May 24, 2012

I'll integrate your patch when I get a chance. Cheers.

@SeniorSpielbergo
Contributor

Cheer!
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.

@foudfou
Owner
foudfou commented May 24, 2012

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.

@SeniorSpielbergo
Contributor

Hi, thanks I will try that next week. At the moment I am not a home. I will report back.

@SeniorSpielbergo
Contributor

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.

@foudfou
Owner
foudfou commented May 30, 2012

Ok. I just merged. Thank you.

@foudfou foudfou closed this May 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment