From mboxrd@z Thu Jan 1 00:00:00 1970 From: ismo@iki.fi (Ismo Puustinen) Date: Sun, 16 Dec 2007 01:27:59 +0200 Subject: [sup-talk] Feature suggestion for hooks Message-ID: <1197760360-sup-5935@arlanda> 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