[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sup-talk] after-poll.rb variables
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