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
_______________________________________________
sup-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-talk