Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: wmorgan-sup@masanjin.net (William Morgan)
Subject: [sup-talk] safe index in the after-poll.rb ?
Date: Tue, 12 Aug 2008 20:22:41 -0700	[thread overview]
Message-ID: <1218597645-sup-7784@entry> (raw)
In-Reply-To: <1218025176-sup-6853@daniel-laptop>

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 <wmorgan-sup at masanjin.net>


      reply	other threads:[~2008-08-13  3:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-06 12:24 Daniel Neubacher
2008-08-13  3:22 ` William Morgan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1218597645-sup-7784@entry \
    --to=wmorgan-sup@masanjin.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox