Subject: [sup-talk] safe index in the after-poll.rb ?

From: [email-masked] (Daniel Neubacher)
Date: Wed, 06 Aug 2008 14:24:01 +0200

Hello there,
i've build me a after-poll hook to display the unread mail count in my
window manager:
system ("echo 0 widget_tell mystatusbar mails text
\\|#{num_inbox_total_unread}\\| | awesome-client")

This is working, but only when the index is safed. When i read some
mails and do not safe the index the count doesnt give me the right
amount of unread mails back. So is there a way to save the index
automaticly after polling my mails ?

thanks in advance
Daniel Neubacher

---

From: [email-masked] (William Morgan)
Date: Tue, 12 Aug 2008 20:22:41 -0700

> automaticly after polling my mails ?

Let's see... this is untested, but in your after-poll hook you
could try something like:

  BufferManager.buffers.each { |name, b| b.save if b.is_a? ThreadIndexMode }
-- 
William <wmorgan-sup at masanjin.net>