From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Tue, 12 Aug 2008 20:22:41 -0700 Subject: [sup-talk] safe index in the after-poll.rb ? In-Reply-To: <1218025176-sup-6853@daniel-laptop> References: <1218025176-sup-6853@daniel-laptop> Message-ID: <1218597645-sup-7784@entry> Reformatted excerpts from Daniel Neubacher's message of 2008-08-06: > 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 ? 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