Tested and seems to still work. -- Merged revisions 940772,940775,940777,940816 via svnmerge from svn+ssh://tmcguire@svn.kde.org/home/kde/branches/KDE/4.2/kdepim ........ r940772 | tmcguire | 2009-03-18 10:32:23 +0100 (Wed, 18 Mar 2009) | 20 lines Backport r940441 by tmcguire from trunk to the 4.2 branch: Don't produce garbage when forwarding a mail with a filter. For this, I had to remove the code duplication in KMFilterActionForward::process() and use KMMessage::createForward() instead. This uncovered a bug in createForward (content type boundary was not saved) and a small bug in the template parser. Also, I added a KMMessage::dump() function to help with debugging mimelib related troubles. Not perfect yet, the way the template parser copies the message needs to be improved, right now, when forwarding a signed message, the signed text gets replaced with the template text, resulting in an invalid signature ... CCBUG: 174942 ........ r940775 | tmcguire | 2009-03-18 10:34:02 +0100 (Wed, 18 Mar 2009) | 11 lines Backport r940516 by tmcguire from trunk to the 4.2 branch: When replacing the text of a message after processing the template, don't try to just replace the first text/plain part, this will cause trouble with signatures and possibly many other situations. Instead, delete the content of the old message, and set the processed template text as the first body part. If the old message had attachments, re-add them to the new message. ........ r940777 | tmcguire | 2009-03-18 10:36:48 +0100 (Wed, 18 Mar 2009) | 9 lines Backport r940547 by tmcguire from trunk to the 4.2 branch: Make valgrind happy. This didn't find the cause of the problem I was searching for, though (inline forwarding runs out of memory because allocating insanley huge amounts of memory) ........ r940816 | tmcguire | 2009-03-18 11:52:19 +0100 (Wed, 18 Mar 2009) | 8 lines Backport r940565 by tmcguire from trunk to the 4.2 branch: Don't run out of memory when forwarding a mail with more than one attachment. The mimelib behavior here is very irritating... ........ svn path=/branches/kdepim/enterprise4/kdepim/; revision=940873wilder-work
parent
8e71cd6e56
commit
e6749e22c1
5 changed files with 150 additions and 94 deletions
Loading…
Reference in new issue