[Kde-pim] Collapsing of the quoted text in plaintext e-mails

Jan Kundrát jkt at flaska.net
Fri Feb 1 16:56:19 GMT 2013


Hi,
I've added support for quote collapsing into Trojitá, an IMAP e-mail client which recently become a part of the KDE. The code is available under the GPLv2/v3/later-if-KDE-eV-approves license, is pure Qt, ships with unit tests and does *not* require JavaScript in the HTML viewer, instead relying on CSS hackery (I definitely don't want to ever become a web developer).

Before I added this feature, I looked at KMail's code, saw that collapsing quotes requires a full reload of the message, there's no fancy preview of the collapsed part and that the funcitonality is rather limited. If you're interested in how my version looks like, the screenshots are at [1], the code lives in the kde:trojita.git's src/Composer/PlainTextFormatter.cpp, src/Gui/SimplePartWidget.cpp and tests/tests/test_Composer_responses/test_Composer_responses.cpp. You'll need an unreleased version of Trojita (like the nightly builds at [2]) if you want to give it a try to see how it works in practice.

If you're interested, please feel free to use the code (and if the license is not enough, I'm open to making changes).

On a related topic, I'm at FOSDEM this weekend (not making it to the beer event today, though) and would like to meet the KDEPIM guys. Is there anything planned for the Saturday evening that I could join?

With kind regards,
Jan

[1] http://article.gmane.org/gmane.mail.trojita.general/252
[2] http://software.opensuse.org/download.html?project=home:jkt-gentoo:trojita&package=trojita-nightly

-- 
Trojitá, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/
_______________________________________________
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