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 at univers-libre.net GnuPG : 3072D/724BC532
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 at 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
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 at univers-libre.net GnuPG : 3072D/724BC532