D12019: make sure to create unique filename in maildir resource

Daniel Vrátil noreply at phabricator.kde.org
Wed Apr 11 15:17:08 BST 2018


dvratil accepted this revision.
dvratil added a comment.
This revision is now accepted and ready to land.


  @knauss but the maildir is not multithreaded, is it, so mutex wouldn't fix anything.
  
  Technically nothing prevents the maildir resource from being fast (and unlucky wrt to randomness) enough to generate two identical filenames for two emails in different folders.
  
  If Martin is correct and the issue is indeed caused by the mailfilter moves, then the problem is obviously caused simply by Maildir::moveEntryTo() reusing the old filename when moving an email from folder A to folder B. By increasing the timestamp granularity we reduce the chance of such filename conflict in the future (it won't affect existing emails, so the problem can still occur on old emails).

REPOSITORY
  R44 KDE PIM Runtime

REVISION DETAIL
  https://phabricator.kde.org/D12019

To: mkoller, mlaurent, dvratil
Cc: knauss, winterz, dvratil, #kde_pim, dvasin, vkrause, mlaurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20180411/c3d0c149/attachment.html>


More information about the kde-pim mailing list