[Bug 286043] possible data loss due to filtering (headers or body of email get lost)

Oldřich Jedlička oldium.pro at seznam.cz
Sun Jan 15 22:32:44 GMT 2012


https://bugs.kde.org/show_bug.cgi?id=286043





--- Comment #9 from Oldřich Jedlička <oldium pro seznam cz>  2012-01-15 22:32:44 ---
There is a code that "smells" to me - I don't know what is Session or KJob, so
this might not be prefect analysis:

1. kdepim-runtime/resources/shared/filestore/itemmovejob.cpp in constructor of
ItemMoveJob calls session->addJob(this).

2. kdepim-runtime/resources/mixedmaildir/mixedmaildirresource.cpp, method
itemMoved:

2a) it calls mStore->moveItem, which creates ItemMoveJob, which adds the job
instance to session in the constructor.

2b) it connects to the job's slots.

Is there some confidence that the job doesn't finish before the step 2b is
executed? I _guess_ this is multi-threaded application, and from the
information that the job isn't explicitly started I _think_ it is done by the
session (asynchronously). So it might finish before the signal/slot is
connected, so the slot isn't called.

Is there any KMail/Akonadi developer to verify this finding? Thanks.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list