On sobota 17. března 2018 14:22:41 CET, Matthieu Hazon wrote:
As the architecture of Trojitá is a bit complex, I need your help to get into it. Basically, I would like to use the IMAP module (alone if possible). For now, I'm able to create an ImapAccess object (which I believe is the entry point of the IMAP module, am I right?) but I'm a bit lost in what to do after that so currently my questions are:
- What is the right workflow to sync emails?
- How do I get notified of incoming emails/changes etc. ?

Hi,
the API which the IMAP code offers is based on Qt's MVC pattern. Basically, the code exposrt a tree view of the entire IMAP account (that's the src/Imap/Model/Model.cpp), and there are proxies which "filter" this model to provide a view of mail folders, e-mails in one mailbox, message threading, etc. For more details, see [1] (pages 54-61). We also have Doxygen-based ref documentation [2] which might help a bit.

With kind regards,
Jan

[1] http://trojita.flaska.net/msc-thesis.pdf
[2] https://api.kde.org/extragear-api/pim-apidocs/trojita/html/index.html

--
Trojitá, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/

Reply via email to