Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Delete email from Sup index
@ 2011-02-11 13:08 Romain Dessort
  2011-02-11 14:25 ` Thorsten Fischer
  0 siblings, 1 reply; 3+ messages in thread
From: Romain Dessort @ 2011-02-11 13:08 UTC (permalink / raw)
  To: sup-talk

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 : romain@univers-libre.net
GnuPG : 3072D/724BC532
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sup-talk] Delete email from Sup index
  2011-02-11 13:08 [sup-talk] Delete email from Sup index Romain Dessort
@ 2011-02-11 14:25 ` Thorsten Fischer
  2011-02-11 18:36   ` Romain Dessort
  0 siblings, 1 reply; 3+ messages in thread
From: Thorsten Fischer @ 2011-02-11 14:25 UTC (permalink / raw)
  To: sup-talk

Excerpts from Romain Dessort's message of 2011-02-11 13:08:29 +0000:
> Is there a way to really remove emails from Index (and not mark them as
> 'deleted') ?

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
<thorsten@net.t-labs.tu-berlin.de>
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
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sup-talk] Delete email from Sup index
  2011-02-11 14:25 ` Thorsten Fischer
@ 2011-02-11 18:36   ` Romain Dessort
  0 siblings, 0 replies; 3+ messages in thread
From: Romain Dessort @ 2011-02-11 18:36 UTC (permalink / raw)
  To: Thorsten Fischer; +Cc: sup-talk

Excerpts from Thorsten Fischer's message of ven fév 11 15:25:01 +0100 2011:
> I have been through exactly that about ten minutes ago to get rid of
> >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 ;).

> 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.

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

But thank you anyway!
-- 
Romain Dessort
Jabber ID : romain@univers-libre.net
GnuPG : 3072D/724BC532
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-11 19:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-11 13:08 [sup-talk] Delete email from Sup index Romain Dessort
2011-02-11 14:25 ` Thorsten Fischer
2011-02-11 18:36   ` Romain Dessort

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox