Can I use the number of new emails in a script?

Asked by Santiago Ward on 2011-08-17

Hi!
I've been trying to write a small bash script that would add the number of new emails on Thunderbird's icon in my Cairo-Dock with Popper's "on new emails" event. Is there a way to get that number into my script?
Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Popper Edit question
Assignee:
No assignee Edit question
Solved by:
Santiago Ward
Solved:
2011-08-21
Last query:
2011-08-21
Last reply:
desmane (spmbx) said : #1

When a script for the event 'Click on summary entry' occurs, two arguments
will be passed to script: 'account name, number of emails'.

Unfortunately no arguments for "on new mails" though... Maybe in next update?

Oh, that's too bad. Anyway, thanks you!

In case anyone else is interested, I managed to hack a small script that does this by checking the popper.dat file. It goes like this:

wc -l /home/santi/.popper/popper.dat | cut --delimiter=' ' -f 1

Ralf Hersel (ralf.hersel) said : #4

I will add this to the wish list of version 0.30 which will be available in autumn (after Oneiric is released).

Ralf Hersel (ralf.hersel) said : #5

In version 0.30 I will pass the maximum of possible parameters to the shell scripts (for all 4 events).