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

Asked by Santiago Ward

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:
Last query:
Last reply:
Revision history for this message
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?

Revision history for this message
Santiago Ward (santiagoward2000) said :
#2

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

Revision history for this message
Santiago Ward (santiagoward2000) said :
#3

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

Revision history for this message
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).

Revision history for this message
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).