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
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])
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