Subject: [sup-talk] Inbox mode loads all the messages

From: [email-masked] (Israel Herraiz)
Date: Tue, 09 Sep 2008 12:45:27 +0200

Hi all,

my inbox view is loading all the messages. It is quite strange,
because those messages do not have the "inbox" label. If I archive
them, save the changes, quit sup, and start sup, it will load all
the messages again.

If I search "label:inbox", it finds all the messages, even those that
do not have the "inbox" label.

I am using the Git version of sup, and I have not made any changes
neither a pull since the last time sup worked correctly. I have
updated ruby however (1.8.7 2008-06-20 patchlevel 22). But I updated
it some days ago, and it has been working correctly during some days.

I am probably have too many labels (108). I don't know if I have
reached some kind of limit :-).

Any hint about what is going on with my sup?

Cheers,
Israel

---

From: [email-masked] (William Morgan)
Date: Wed, 10 Sep 2008 13:29:44 -0700

> them, save the changes, quit sup, and start sup, it will load all

Very weird. Do searches for other labels work correctly? What about
searches for regular words?

> reached some kind of limit :-).

There's no label limit. Ferret treats them as regular words so it should
be able to scale to, like, trillions.

You could try creating a small set of emails and starting a fresh Sup on
it (set the environment variable SUP_BASE to a new directory and Sup
will use that as its configuration dir instead of ~/.sup),and seeing if
Sup exhibits the same behavior on that. That would at least narrow it
down to something having happened to your system (new Ruby, new and
incompatible Ferret, etc.). 
-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (Israel Herraiz)
Date: Wed, 10 Sep 2008 23:40:46 +0200

> searches for regular words?

Some searches work well, some others not. Those that do not work show
all the same messages incorrectly shown in the inbox. It seems like
those messages would be "persistent", and they are shown everywhere.

> be able to scale to, like, trillions.

Ok. Good to know.

> incompatible Ferret, etc.). 

I killed all those messages. That removed them from the inbox,
although they persisted in the searches.

I had all the messages in two mboxes file. One of about 500 MB (inbox), and
another one of 1 GB (mbox). I moved all the messages to one file (~1.5
GB), and after that I ran sup-sync with --all-sources and -as-is and
some other options I don't remember. However, the same behavior
persisted.

So I decided to access the index directly from ruby. I recovered all
the killed messages, added them the inbox label, saved the index,
removed the killed and inbox labels, saved again, and now it is
working.

Probably it is an issue with Ferret. Or maybe it is because my email
volume. Unfortunately, I did not keep the non-working index. If I find
the same issue again, I will try to make a copy of the index just in
case you want to try to reproduce the bug.

Thanks anyway for your comments.

Cheers,
Israel