Okay, I did use, KDescendantsProxyModel as it’s used in “OneMessageModel” for attachments. I don’t know if it’s right or not, but it is working. I do however need to wait until attachments are fetched - is there any way I could signalize that attachments are available?
Sincerely, Peter Bočan. > Dňa 28.9.2015 o 20:12, Jan Kundrát <[email protected]> napísal: > > On Monday, 28 September 2015 19:39:10 CEST, Peter Bočan wrote: >> Hello guys, I do wonder, how can I iterate through the attachments and >> download them? The core works smoothly and so I’m really happy that it just >> works :). > > Walk the tree of QModelIndex indexes, "somehow" find out which are > attachments (this is a hard problem because there are several funny clients > which ignore standards) and act on them. As a hint, grep the source tree for > word "Attachment" to find out how it's done in the Trojita's GUI. > > Cheers, > Jan > > -- > Trojitá, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/
