Support encrypted mails forwarding
ClosedPublic

Authored by rnicole on Mar 2 2018, 10:49 AM.

Details

Summary

Some notes:

  • What we do is: if the mail is encrypted, decrypt it and copy its content into a new message (with plaintext, html and attachments, if any), and use this message as attachment for forwarding
  • The isEncrypted function from KMime doesn't seem to detect every kind of encrypted mails. AFAIK this structure is not detected:
    • multipart/mixed
      • text/plain
      • application/pgp-encrypted (attachement, named "ATT00001")
      • application/octet-stream (attachment named "encrypted.asc")

Diff Detail

Repository
R162 Kube
Lint
Lint Skipped
Unit
Unit Tests Skipped
This revision was not accepted when it landed; it landed in state Needs Review.Mar 2 2018, 11:19 AM
This revision was automatically updated to reflect the committed changes.
rnicole updated this revision to Diff 28413.Mar 2 2018, 3:17 PM

Now works with messages that have attachments, and do the proper encoding.
Also, now with some tests

Note: the encoding is not tested for now

rnicole updated this revision to Diff 28999.Mar 8 2018, 11:08 AM

Rebase on develop because of merge conflict in "framework/src/domain/mime/mimetreeparser/tests/CMakeLists.txt"