[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Bug#31889: applying kmail filter created duplicates and corrupted mailbox
From:       Ingo =?iso-8859-1?q?Kl=F6cker?= <ingo.kloecker () epost ! de>
Date:       2001-09-04 20:30:26
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Freitag, 31. August 2001 13:20, richard@leyton.org wrote:
> I setup a new filter on a rather large folder, and applied it. Kmail
> crashed in the process. After a restart, and attempting to reapply
> the filter, kmail died again reporting no disk space errors.
> Subsequently had difficulty getting into the folder to see what was
> going on.
>
> Checked disk space, sure enough it'd run out. Odd, as I had 400Mb
> free earlier... On investigating I found that the Folder I was
> applying the filter on had grown excessively and munched all the disk
> space. Cranked up read-only mutt against the folder, and found that
> each message had been duplicated one or more times in most cases
> (some seemed to be on their own). typically the really large messages
> had been reproduced most times.
>
> Backed up the dodgy mailbox, cranked up mutt against it, and deleted
> all the big duplicates, placing the "repaired" (36mb) mailbox back in
> place of the 400mb one. I still have a *lot* of duplicates, and am
> bracing myself to having to write a perl script to clear out the many
> many duplicates i have with the mbox module.
>
> Mailbox is rather important, hence the  cludgy recovery. wondered if
> this had been seen before. happy to provide more information if
> possible.

Even if the source folder and the target folder are the same during a 
move filter action the message is re-appended at the end of the folder. 
Therefore this will cause a duplication of this message.
This explains some of the duplicates. But it doesn't explain why your 
folder grew so excessively. Please backup the folder and try if you can 
reproduce this excessive growth.

BTW, if messages in a folder seem to be corrupted you should remove the 
corresponding .foldername.index file. Then KMail will recalculate this 
index file. Duplicate and already deleted messages might (re-)appear if 
the folder wasn't compacted recently.

Regards,
Ingo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7lTniGnR+RTDgudgRArjPAKDAtVNIIaCbeCRJv2bVulqaq0L0PQCgw6i6
bXhUGJ/fBFQcywLI2RtiYq0=
=bvww
-----END PGP SIGNATURE-----
_______________________________________________
Kmail Developers mailing list
Kmail@mail.kde.org
http://mail.kde.org/mailman/listinfo/kmail

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic