From: david.guibert@gmail.com (David Guibert)
Subject: [sup-talk] Notification tools
Date: Fri, 15 May 2009 14:41:33 +0200 [thread overview]
Message-ID: <1242391055-sup-4644@orsine> (raw)
In-Reply-To: <1242331711-sup-4976@cabinet>
Hi,
From Marc Hartstein:
> Excerpts from Marcus Williams's message of Thu May 14 04:37:38 -0400 2009:
> > On 14.5.2009, Marc Hartstein wrote:
> > > Although, I just tried this (I seem to have had to append .to_s to each
> > > of the total_hits), and it works, but all my results are exactly 15
> > > greater than the relevant numbers I see if I go into the label menu with
> > > <L><Enter>. Any idea what might cause that?
> >
> > I think the Sup version will by default not include killed or deleted
> > messages so that might be whats causing it.
>
> Deleted Unread messages accounted for 5 of the 15, but there are no
> Killed, so the remaining 10 are still a mystery.
Spam.
I changed sup-biff to contain:
#!/bin/bash
ruby -I '~/src/sup/lib' <<EOF
require 'sup'
i = Redwood::Index.new
i.load
puts "total spam + unread: " + i.ferret.search("label:unread").total_hits.to_s
puts "total !spam + !deleted + unread: " + i.ferret.search("!label:spam !label:deleted +label:unread").total_hits.to_s
puts "inbox unread: " + i.ferret.search("!label:spam !label:deleted +label:inbox +label:unread").total_hits.to_s
puts "inbox total: " + i.ferret.search("!label:spam !label:deleted +label:inbox").total_hits.to_s
EOF
regards.
--
David
next prev parent reply other threads:[~2009-05-15 12:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-13 11:37 Henri Ducrocq
2009-05-13 18:54 ` William Morgan
[not found] ` <391beaa80905131723k4b59090bi5bd541d97d1a75f2@mail.gmail.com>
[not found] ` <1242261120-sup-2999@cabinet>
2009-05-14 1:52 ` William Morgan
[not found] ` <1242273707-sup-1213@cabinet>
2009-05-14 8:37 ` Marcus Williams
[not found] ` <1242331711-sup-4976@cabinet>
2009-05-15 12:41 ` David Guibert [this message]
2009-05-17 19:23 ` Henri Ducrocq
2009-05-18 18:44 ` William Morgan
2009-05-18 20:03 ` Henri Ducrocq
2009-05-18 18:31 ` William Morgan
2009-05-14 13:04 ` Nicolas Pouillard
2009-05-15 21:22 Henri Ducrocq
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=1242391055-sup-4644@orsine \
--to=david.guibert@gmail.com \
/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