0. Have fancy header style enabled 1. Create a simple message with an attachment, save as draft 2. Forward that message as attachment, save the result as draft 3. Again Forward that message as attachment, enable encryption (and make sure "never encrypt/sign drafts" option is disabled), save as draft 4. View the message in the viewer and decrypt it. Result: The viewer gets into an endless updating loop. My guess is that the mementos of the temp nodes get deleted at some point (or the temp nodes themselves?). (The header formatter of the encapsulated message tries to create a memento and attach it to the current node (the encapsulated message)
Works for me in trunk.
I can still reproduce it. I think it is related to the contact photos displayed in the fancy header style, which are saved as a memento. Probably the mementos are not associated with the nodes long enough. To reproduce, the From addresses of all the mails need to be in the addressbook, and the contact in the address book needs to have a photo. I guess that complex structures with signatures and encryptions will also have a similar problem, as they also use mementos.
I can reproduce as well, with the contact photo.
Also, does not require a contact photo here. Even without it, i get into the same infinite loop.
SVN commit 1144451 by lfranchi: Fix endless loop on parsing encrypted messages with embedded messages. BUG: 236737 M +2 -2 headerstyle.cpp M +45 -0 nodehelper.cpp M +20 -0 nodehelper.h M +1 -1 objecttreeparser.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1144451