[Kde-pim] Review Request: Replicate original parsed message preamble and epilogue when creating multi-part MIME messages.

Leo Franchi lfranchi at kde.org
Fri Jun 25 18:31:36 BST 2010


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/4457/
-----------------------------------------------------------

Review request for KDE PIM and Thomas McGuire.


Summary
-------

When parsing multipart-mixed MIME objects, KMime discards the preamble and epilogue. This is totally fine with regard to RFC2046, as they are optional and can be ignored. However, the simple act of reading messages with either of these two features modifies them, by stripping the epilogue/preamble. This makes cryptographically verifying embedded messages impossible, as they are modified by KMime.

With this patch, KMime will *only* generate a preamble or epilogue if it found one when parsing, in order to mirror the original mail more accurately.


Diffs
-----

  /trunk/KDE/kdepimlibs/kmime/kmime_content.cpp 1142721 
  /trunk/KDE/kdepimlibs/kmime/kmime_content_p.h 1142721 
  /trunk/KDE/kdepimlibs/kmime/kmime_parsers.cpp 1142721 
  /trunk/KDE/kdepimlibs/kmime/tests/auto/contenttest.cpp 1142721 

Diff: http://reviewboard.kde.org/r/4457/diff


Testing
-------

Modified unit tests to test both cases.


Thanks,

Leo

_______________________________________________
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