[Kde-pim] Data loss: kmail2 must not use existing [Folder-xy] settings on random new folders

Kevin Krammer kevin.krammer at gmx.at
Mon Dec 12 12:52:09 GMT 2011


On Monday, 2011-12-12, Sven Burmeister wrote:
> Hello everyone!
> 
> What just happened to me.
> 
> I removed a kmail-folders resource pointing to ~/Mail and added a maildir-
> resource pointing to ~/Mail.
> 
> I did this via systemsettings i.e. kmail was closed.
> 
> When I restarted kmail and refreshed the folders I suddenly saw that kmail
> had deleted ~6000 mails off my sent folder which was part of that new
> resource.
> 
> I had not set any expiration settings for tha folder, neither when it was
> accessed via the kmail-folders resource nor the maildir resource.
> 
> Having a look at kmail2rc I see that it contains lots of [Folder-xy]
> including expiration settings.
> 
> So my guess and this happens with filters as well, is that kmail just
> assigns a new number to the new folders of the new resource and keeps the
> settings if that number already existed.
> 
> This must never ever happen!

Absolutely!

And it should not have happend. The database should not have given out the 
same id twice.
Could it be that MySQL now requires a new setting to not reuse unique ids?

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20111212/95b1805c/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list