Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] after-poll.rb variables
@ 2011-02-14  1:24 whodevil
  2011-02-14  2:08 ` Rich Lane
  0 siblings, 1 reply; 3+ messages in thread
From: whodevil @ 2011-02-14  1:24 UTC (permalink / raw)
  To: sup-talk

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
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sup-talk] after-poll.rb variables
  2011-02-14  1:24 [sup-talk] after-poll.rb variables whodevil
@ 2011-02-14  2:08 ` Rich Lane
  2011-02-14 13:31   ` Philippe LeCavalier
  0 siblings, 1 reply; 3+ messages in thread
From: Rich Lane @ 2011-02-14  2:08 UTC (permalink / raw)
  To: whodevil; +Cc: sup-talk

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
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sup-talk] after-poll.rb variables
  2011-02-14  2:08 ` Rich Lane
@ 2011-02-14 13:31   ` Philippe LeCavalier
  0 siblings, 0 replies; 3+ messages in thread
From: Philippe LeCavalier @ 2011-02-14 13:31 UTC (permalink / raw)
  To: Rich Lane; +Cc: sup-talk

Excerpts from Rich Lane's message of Sun Feb 13 21:08:52 -0500 2011:
> 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])

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
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-14 13:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-14  1:24 [sup-talk] after-poll.rb variables whodevil
2011-02-14  2:08 ` Rich Lane
2011-02-14 13:31   ` Philippe LeCavalier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox