Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: ismo@iki.fi (Ismo Puustinen)
Subject: [sup-talk] Feature suggestion for hooks
Date: Sun, 16 Dec 2007 01:27:59 +0200	[thread overview]
Message-ID: <1197760360-sup-5935@arlanda> (raw)

Hi,

I have a small script that works as a biff-like new mail indicator. 
The script would need as input the amount of unread mail in the 
inbox. The problem is that the after-poll hook apparently has no 
way of knowing how much unread mail there currenly is -- it only 
knows the number added during this poll. I think that after-poll 
is the only non-interactive place where the number of total unread 
mail might change. Would it be possible to add that number as an 
internal variable to be accessible from the after-poll hook? 

An even better option might be to add these computationally 
intensive operations to an internal API that would be callable from 
the hooks. This way the variables would not need to be computed 
if the hook didn't need them. 

-- 
Ismo Puustinen <ismo at iki.fi>


             reply	other threads:[~2007-12-15 23:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-15 23:27 Ismo Puustinen [this message]
2007-12-19  4:36 ` William Morgan

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=1197760360-sup-5935@arlanda \
    --to=ismo@iki.fi \
    /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