[Kde-pim] Addressing the "ignore thread" functionality in kmail

Thomas McGuire mcguire at kde.org
Thu Mar 11 19:10:39 GMT 2010


Hi,

On Thursday 11 March 2010 15:28:38 Adrian von Bidder wrote:
> Heyho!
> 
> For several versions, the "Ignore Thread" function in kmail has been
> cmpletely broken (KDE bug 186853.)
> 
> As of 4.4.1 (using the beta Debian packages), this is still not fixed.
> 
> (1) is anybody working on this?

No.

> (2) can anyobdy get me started on where I should look?  I'm using
> distributed IMAP if it makes any difference.

Ok, here are some code locations for the KDE 4.4 branch:
The "Ignore Thread" action is created in kdepim/kmail/kmmainwidget.cpp, 
KMMainWidget::setupActions(). It is connected to 
KMMainWidget::slotSetThreadStatusIgnored(), which calls 
KMMainWidget::setCurrentThreadStatus(). This will eventually create a 
KMSetStatusCommand. In KMSetStatusCommand::execute(), the message status is 
finally set to ignored, with KMFolder::setStatus(), which eventually calls 
KMMsgBase::set/toggleStatus().

The above is simply setting the status for the message. The message list is 
responsible for skipping ignored threads. The message list is automatically 
updated when the status changed, in StorageModel::slotMessageHeaderChanged() 
and StorageModel::updateMessageItemData() in 
kdepim/kmail/messagelist/storagemodel.cpp.
The rest of the message list is KMail-independent and in kdepim/messagelist. 
The most important file there is model.cpp, which seems to do a bit of ignored 
status handling.

Possibly ignored message handling is in other places as well, I don't know.

KMail in that version uses a binary index file to write and read status 
information from/to, in KMFolderIndex. Maybe the status information it is not 
written to the index correctly.
I don't know yet on which level this bug is, though.

Hope that helps a bit with getting started.

Good luck! Please see us in the #kontact IRC channel if you have any questions 
or problems.

Regards,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20100311/ef59fc7e/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