Subject: [sup-talk] Delete email from Sup index

From: Romain Dessort <[email-masked]>
Date: Fri, 11 Feb 2011 14:08:29 +0100

Hi all,

I use Sup for a while to manage a huge quantity of emails (~1000 emails
per day, most of these are directly archived).  In parallel, I have a
cron job which remove (in my maildir) old emails and then do a sup-sync
to update Sup index each day.

But I notice Sup does not remove the correspondent entry from his index
after sup-sync (even if I use --discard option).
It is problematic for me because the Sup index contains now about
310,000 emails and the .sup/xapian/ directory takes about 4.4 GB disk
space !

Is there a way to really remove emails from Index (and not mark them as
'deleted') ?

Thanks for your help !
-- 
Romain Dessort
Jabber ID : [email-masked]
GnuPG : 3072D/724BC532
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Thorsten Fischer <[email-masked]>
Date: Fri, 11 Feb 2011 14:25:01 +0000

> Is there a way to really remove emails from Index (and not mark them as

I have been through exactly that about ten minutes ago to get rid of
>40k index entries in my sup setup. Good timing! ;)

What I did:

* stopped the periodic polling of my offlineimap, just in case, to keep
  the sources from changing.
* made a backup of my .sup/ folder, just in case.
* created a label dump file using sup-dump.
* deleted the .sup/xapian folder.
* run sup-sync with the --restore option, pointing to the dump file.

The index was re-created from the dump file, but only taking into
account the files that were currently available from the sources. Worked
like a charm. Better, in fact, since charms don't work at all. Ahem.

Yes, it would be great if there were a less convoluted way to do this.

Cheers,

t

-- 
Thorsten Fischer, BOWL Project Administrator
<[email-masked]>
Technische Universität Berlin, FG INET, TEL16, 18th floor
Ernst-Reuter-Platz 7, 10587 Berlin, Germany
Tel: +49 30 835358542, Fax: +49 391 53478347
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Romain Dessort <[email-masked]>
Date: Fri, 11 Feb 2011 19:36:32 +0100

> >40k index entries in my sup setup. Good timing! ;)

Yeah, but I receive too much cron output emails and other boring
automatic daily reports, so it's easy to reach this value ;).

> like a charm. Better, in fact, since charms don't work at all. Ahem.

Ok, this should be a good hack if I do this operation occasionally, but
I can hardly automated it…

But thank you anyway!