Subject: [sup-talk] after-poll.rb variables

From: whodevil <[email-masked]>
Date: Sun, 13 Feb 2011 17:24:50 -0800

I'm trying to write a hook that will update the status bar 
of my screen session with the number of unread emails in my 
inbox. I've worked out the logistics on how to get this into 
the status bar. My issue is that when the hook executes, 
num_inbox only returns the number of new messages it found 
during that poll period. While this can be useful, it doesn't 
fit my need. I'm wondering if someone know if there is a way 
to get the total unread messages in the inbox from within the 
after-poll hook?

Thanks,
Whodevil
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Rich Lane <[email-masked]>
Date: Sun, 13 Feb 2011 21:08:52 -0500

Excerpts from whodevil's message of 2011-02-13 20:24:50 -0500:
> I'm wondering if someone know if there is a way to get the total
> unread messages in the inbox from within the after-poll hook?

Index.num_results_for(labels: [:inbox, :unread])
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Philippe LeCavalier <[email-masked]>
Date: Mon, 14 Feb 2011 08:31:05 -0500

> Index.num_results_for(labels: [:inbox, :unread])

This thread made me wonder...
Wouldn't it be handy if after-poll reported the labels before-add-poll.rb assigns?
-- 
Thanks,
Phil
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk