From f49110087067a011b698afa90bfcfd43232bee1f Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 23 May 2017 20:46:55 +0200 Subject: Imported tests --- .../src/domain/mimetreeparser/otp/CMakeLists.txt | 3 +- .../mimetreeparser/otp/autotests/CMakeLists.txt | 47 ++ .../otp/autotests/attachmenttest.cpp | 68 +++ .../otp/autotests/cryptohelpertest.cpp | 144 ++++++ .../otp/autotests/cryptohelpertest.h | 42 ++ .../otp/autotests/data/alternative-notext.mbox | 22 + .../autotests/data/alternative-notext.mbox.html | 17 + .../autotests/data/alternative-notext.mbox.tree | 2 + .../otp/autotests/data/alternative.mbox | 34 ++ .../otp/autotests/data/alternative.mbox.html | 17 + .../otp/autotests/data/alternative.mbox.tree | 2 + .../forward-openpgp-signed-encrypted.mbox.html | 84 ++++ .../data/details/openpgp-encoded.mbox.html | 38 ++ .../details/openpgp-encrypted+signed.mbox.html | 55 +++ ...tachment-and-non-encrypted-attachment.mbox.html | 80 ++++ .../details/openpgp-encrypted-attachment.mbox.html | 69 +++ ...gp-encrypted-non-encrypted-attachment.mbox.html | 72 +++ ...ncrypted-partially-signed-attachments.mbox.html | 102 ++++ .../openpgp-inline-charset-encrypted.mbox.html | 50 ++ .../data/details/openpgp-inline-signed.mbox.html | 38 ++ .../openpgp-signed-base64-mailman-footer.mbox.html | 81 ++++ ...npgp-signed-encrypted-two-attachments.mbox.html | 91 ++++ .../details/openpgp-signed-encrypted.mbox.html | 58 +++ .../openpgp-signed-mailinglist+old.mbox.html | 97 ++++ .../details/openpgp-signed-mailinglist.mbox.html | 68 +++ .../openpgp-signed-two-attachments.mbox.html | 74 +++ ...gned-forward-openpgp-signed-encrypted.mbox.html | 111 +++++ .../data/details/smime-opaque-enc+sign.mbox.html | 60 +++ .../data/details/smime-opaque-sign.mbox.html | 43 ++ .../data/details/smime-signed-encrypted.mbox.html | 58 +++ .../data/encapsulated-with-attachment.mbox | 53 +++ .../data/encapsulated-with-attachment.mbox.html | 51 ++ .../data/encapsulated-with-attachment.mbox.tree | 10 + .../data/forward-openpgp-signed-encrypted.mbox | 69 +++ .../forward-openpgp-signed-encrypted.mbox.html | 81 ++++ .../forward-openpgp-signed-encrypted.mbox.tree | 9 + ...tachment-and-non-encrypted-attachment.mbox.html | 61 +++ .../openpgp-encrypted-attachment.mbox.html | 58 +++ ...gp-encrypted-non-encrypted-attachment.mbox.html | 61 +++ ...ncrypted-partially-signed-attachments.mbox.html | 84 ++++ .../openpgp-encrypted-two-attachments.mbox.html | 34 ++ .../data/headeronly/openpgp-signed-apple.mbox.html | 50 ++ ...npgp-signed-encrypted-two-attachments.mbox.html | 58 +++ ...igned-mailinglist+additional-children.mbox.html | 52 +++ .../openpgp-signed-no-protocol.mbox.html | 28 ++ .../openpgp-signed-two-attachments.mbox.html | 41 ++ .../data/headeronly/smime-signed-apple.mbox.html | 50 ++ .../hidden/encapsulated-with-attachment.mbox.html | 43 ++ ...tachment-and-non-encrypted-attachment.mbox.html | 61 +++ .../hidden/openpgp-encrypted-attachment.mbox.html | 58 +++ .../data/hidden/openpgp-encrypted-noData.mbox.html | 10 + ...gp-encrypted-non-encrypted-attachment.mbox.html | 61 +++ ...ncrypted-partially-signed-attachments.mbox.html | 84 ++++ .../openpgp-encrypted-two-attachments.mbox.html | 34 ++ .../data/hidden/openpgp-signed-apple.mbox.html | 50 ++ ...npgp-signed-encrypted-two-attachments.mbox.html | 58 +++ ...igned-mailinglist+additional-children.mbox.html | 44 ++ .../hidden/openpgp-signed-no-protocol.mbox.html | 28 ++ .../openpgp-signed-two-attachments.mbox.html | 41 ++ .../data/hidden/smime-signed-apple.mbox.html | 50 ++ .../mimetreeparser/otp/autotests/data/html.mbox | 31 ++ .../otp/autotests/data/html.mbox.html | 17 + .../otp/autotests/data/html.mbox.tree | 2 + .../otp/autotests/data/htmlonly.mbox | 21 + .../otp/autotests/data/htmlonly.mbox.html | 12 + .../otp/autotests/data/htmlonly.mbox.tree | 2 + .../otp/autotests/data/htmlonlyexternal.mbox | 21 + ...ncrypted-partially-signed-attachments.mbox.html | 92 ++++ .../openpgp-encrypted-two-attachments.mbox.html | 50 ++ ...npgp-signed-encrypted-two-attachments.mbox.html | 74 +++ .../openpgp-signed-two-attachments.mbox.html | 57 +++ .../inlined/encapsulated-with-attachment.mbox.html | 58 +++ ...tachment-and-non-encrypted-attachment.mbox.html | 90 ++++ .../inlined/openpgp-encrypted-attachment.mbox.html | 74 +++ ...gp-encrypted-non-encrypted-attachment.mbox.html | 74 +++ .../data/inlined/openpgp-signed-apple.mbox.html | 63 +++ ...igned-mailinglist+additional-children.mbox.html | 67 +++ .../data/inlined/smime-signed-apple.mbox.html | 63 +++ .../data/inlinepgpencrypted-appendix.mbox | 33 ++ .../data/inlinepgpencrypted-appendix.mbox.html | 36 ++ .../data/inlinepgpencrypted-appendix.mbox.tree | 4 + .../autotests/data/inlinepgpencrypted-error.mbox | 55 +++ .../data/inlinepgpencrypted-error.mbox.html | 24 + .../data/inlinepgpencrypted-error.mbox.tree | 3 + .../otp/autotests/data/inlinepgpencrypted.mbox | 29 ++ .../autotests/data/inlinepgpencrypted.mbox.html | 26 ++ .../data/inlinepgpencrypted.mbox.inProgress.html | 24 + .../autotests/data/inlinepgpencrypted.mbox.tree | 3 + .../otp/autotests/data/mailheader.css | 512 +++++++++++++++++++++ .../otp/autotests/data/no-content-type.mbox | 7 + .../otp/autotests/data/no-content-type.mbox.html | 14 + .../otp/autotests/data/no-content-type.mbox.tree | 3 + .../otp/autotests/data/openpgp-encoded.mbox | 33 ++ .../otp/autotests/data/openpgp-encoded.mbox.html | 35 ++ .../otp/autotests/data/openpgp-encoded.mbox.tree | 4 + .../autotests/data/openpgp-encrypted+signed.mbox | 46 ++ .../data/openpgp-encrypted+signed.mbox.html | 52 +++ .../data/openpgp-encrypted+signed.mbox.tree | 5 + .../data/openpgp-encrypted-applemail.mbox | 52 +++ .../data/openpgp-encrypted-applemail.mbox.html | 39 ++ .../data/openpgp-encrypted-applemail.mbox.tree | 7 + ...ed-attachment-and-non-encrypted-attachment.mbox | 115 +++++ ...tachment-and-non-encrypted-attachment.mbox.html | 77 ++++ ...tachment-and-non-encrypted-attachment.mbox.tree | 11 + .../data/openpgp-encrypted-attachment.mbox | 57 +++ .../data/openpgp-encrypted-attachment.mbox.html | 66 +++ .../data/openpgp-encrypted-attachment.mbox.tree | 8 + .../data/openpgp-encrypted-enigmail1.6.mbox | 48 ++ .../data/openpgp-encrypted-enigmail1.6.mbox.html | 34 ++ .../data/openpgp-encrypted-enigmail1.6.mbox.tree | 5 + .../autotests/data/openpgp-encrypted-noData.mbox | 17 + .../data/openpgp-encrypted-noData.mbox.html | 19 + .../data/openpgp-encrypted-noData.mbox.tree | 4 + ...openpgp-encrypted-non-encrypted-attachment.mbox | 114 +++++ ...gp-encrypted-non-encrypted-attachment.mbox.html | 69 +++ ...gp-encrypted-non-encrypted-attachment.mbox.tree | 9 + ...pgp-encrypted-partially-signed-attachments.mbox | 91 ++++ ...ncrypted-partially-signed-attachments.mbox.html | 99 ++++ ...ncrypted-partially-signed-attachments.mbox.tree | 12 + .../data/openpgp-encrypted-two-attachments.mbox | 42 ++ .../openpgp-encrypted-two-attachments.mbox.html | 64 +++ .../openpgp-encrypted-two-attachments.mbox.tree | 9 + .../otp/autotests/data/openpgp-encrypted.mbox | 36 ++ .../otp/autotests/data/openpgp-encrypted.mbox.html | 31 ++ .../data/openpgp-encrypted.mbox.inProgress.html | 24 + .../otp/autotests/data/openpgp-encrypted.mbox.tree | 4 + .../data/openpgp-inline-charset-encrypted.mbox | 40 ++ .../openpgp-inline-charset-encrypted.mbox.html | 47 ++ ...p-inline-charset-encrypted.mbox.inProgress.html | 24 + .../openpgp-inline-charset-encrypted.mbox.tree | 4 + .../data/openpgp-inline-signed-broken.mbox | 26 ++ .../otp/autotests/data/openpgp-inline-signed.mbox | 26 ++ .../autotests/data/openpgp-inline-signed.mbox.html | 35 ++ .../openpgp-inline-signed.mbox.inProgress.html | 22 + .../autotests/data/openpgp-inline-signed.mbox.tree | 3 + .../openpgp-inline-wrong-charset-encrypted.mbox | 34 ++ ...penpgp-inline-wrong-charset-encrypted.mbox.html | 47 ++ ...penpgp-inline-wrong-charset-encrypted.mbox.tree | 4 + .../otp/autotests/data/openpgp-signed-apple.mbox | 129 ++++++ .../autotests/data/openpgp-signed-apple.mbox.html | 58 +++ .../data/openpgp-signed-apple.mbox.inProgress.html | 49 ++ .../autotests/data/openpgp-signed-apple.mbox.tree | 3 + .../data/openpgp-signed-base64-mailman-footer.mbox | 117 +++++ .../openpgp-signed-base64-mailman-footer.mbox.html | 78 ++++ .../openpgp-signed-base64-mailman-footer.mbox.tree | 7 + .../openpgp-signed-encrypted-two-attachments.mbox | 52 +++ ...npgp-signed-encrypted-two-attachments.mbox.html | 88 ++++ ...npgp-signed-encrypted-two-attachments.mbox.tree | 10 + .../autotests/data/openpgp-signed-encrypted.mbox | 47 ++ .../data/openpgp-signed-encrypted.mbox.html | 55 +++ .../data/openpgp-signed-encrypted.mbox.tree | 5 + ...pgp-signed-mailinglist+additional-children.mbox | 126 +++++ ...igned-mailinglist+additional-children.mbox.html | 60 +++ ...igned-mailinglist+additional-children.mbox.tree | 10 + .../data/openpgp-signed-mailinglist+old.mbox | 67 +++ .../data/openpgp-signed-mailinglist+old.mbox.html | 94 ++++ .../data/openpgp-signed-mailinglist+old.mbox.tree | 13 + .../autotests/data/openpgp-signed-mailinglist.mbox | 121 +++++ .../data/openpgp-signed-mailinglist.mbox.html | 65 +++ ...openpgp-signed-mailinglist.mbox.inProgress.html | 56 +++ .../data/openpgp-signed-mailinglist.mbox.tree | 7 + .../autotests/data/openpgp-signed-no-protocol.mbox | 35 ++ .../data/openpgp-signed-no-protocol.mbox.html | 36 ++ .../data/openpgp-signed-no-protocol.mbox.tree | 5 + .../data/openpgp-signed-two-attachments.mbox | 54 +++ .../data/openpgp-signed-two-attachments.mbox.html | 71 +++ .../data/openpgp-signed-two-attachments.mbox.tree | 9 + .../signed-forward-openpgp-signed-encrypted.mbox | 92 ++++ ...gned-forward-openpgp-signed-encrypted.mbox.html | 105 +++++ ...gned-forward-openpgp-signed-encrypted.mbox.tree | 10 + .../otp/autotests/data/smime-cert.mbox | 24 + .../otp/autotests/data/smime-cert.mbox.html | 10 + .../otp/autotests/data/smime-cert.mbox.tree | 2 + .../data/smime-encrypted-octet-stream.mbox | 23 + .../data/smime-encrypted-octet-stream.mbox.html | 31 ++ .../data/smime-encrypted-octet-stream.mbox.tree | 4 + .../otp/autotests/data/smime-encrypted.mbox | 22 + .../otp/autotests/data/smime-encrypted.mbox.html | 31 ++ .../data/smime-encrypted.mbox.inProgress.html | 24 + .../otp/autotests/data/smime-encrypted.mbox.tree | 4 + .../otp/autotests/data/smime-opaque-enc+sign.mbox | 37 ++ .../autotests/data/smime-opaque-enc+sign.mbox.html | 57 +++ .../autotests/data/smime-opaque-enc+sign.mbox.tree | 5 + .../otp/autotests/data/smime-opaque-sign.mbox | 25 + .../otp/autotests/data/smime-opaque-sign.mbox.html | 40 ++ .../data/smime-opaque-sign.mbox.inProgress.html | 22 + .../otp/autotests/data/smime-opaque-sign.mbox.tree | 4 + .../smime-opaque-signed-encrypted-attachment.mbox | 50 ++ .../otp/autotests/data/smime-signed-apple.mbox | 197 ++++++++ .../autotests/data/smime-signed-apple.mbox.html | 58 +++ .../data/smime-signed-apple.mbox.inProgress.html | 49 ++ .../autotests/data/smime-signed-apple.mbox.tree | 3 + .../otp/autotests/data/smime-signed-encrypted.mbox | 38 ++ .../data/smime-signed-encrypted.mbox.html | 55 +++ .../data/smime-signed-encrypted.mbox.tree | 5 + .../otp/autotests/data/text+html-maillinglist.mbox | 163 +++++++ .../data/text+html-maillinglist.mbox.html | 38 ++ .../data/text+html-maillinglist.mbox.tree | 5 + .../otp/autotests/kdepim_add_gpg_crypto_test.cmake | 61 +++ .../kdepim_generate_crypto_test_wrapper.cmake | 45 ++ .../otp/autotests/nodehelpertest.cpp | 275 +++++++++++ .../mimetreeparser/otp/autotests/nodehelpertest.h | 45 ++ .../mimetreeparser/otp/autotests/setupenv.cpp | 34 ++ .../domain/mimetreeparser/otp/autotests/setupenv.h | 175 +++++++ .../mimetreeparser/otp/autotests/testcsshelper.cpp | 106 +++++ .../mimetreeparser/otp/autotests/testcsshelper.h | 50 ++ .../domain/mimetreeparser/otp/autotests/util.cpp | 34 ++ .../src/domain/mimetreeparser/otp/autotests/util.h | 43 ++ 208 files changed, 10117 insertions(+), 1 deletion(-) create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/CMakeLists.txt create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/attachmenttest.cpp create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/cryptohelpertest.cpp create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/cryptohelpertest.h create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/alternative-notext.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/alternative-notext.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/alternative-notext.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/alternative.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/alternative.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/alternative.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/details/forward-openpgp-signed-encrypted.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encoded.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encrypted+signed.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encrypted-attachment.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encrypted-non-encrypted-attachment.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encrypted-partially-signed-attachments.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-inline-charset-encrypted.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-inline-signed.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-base64-mailman-footer.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-encrypted-two-attachments.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-encrypted.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-mailinglist+old.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-mailinglist.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-two-attachments.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/details/signed-forward-openpgp-signed-encrypted.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/details/smime-opaque-enc+sign.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/details/smime-opaque-sign.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/details/smime-signed-encrypted.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/encapsulated-with-attachment.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/encapsulated-with-attachment.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/encapsulated-with-attachment.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/forward-openpgp-signed-encrypted.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/forward-openpgp-signed-encrypted.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/forward-openpgp-signed-encrypted.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-encrypted-attachment.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-encrypted-non-encrypted-attachment.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-encrypted-partially-signed-attachments.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-encrypted-two-attachments.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-signed-apple.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-signed-encrypted-two-attachments.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-signed-mailinglist+additional-children.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-signed-no-protocol.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-signed-two-attachments.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/smime-signed-apple.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/hidden/encapsulated-with-attachment.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-attachment.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-noData.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-non-encrypted-attachment.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-partially-signed-attachments.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-two-attachments.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-signed-apple.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-signed-encrypted-two-attachments.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-signed-mailinglist+additional-children.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-signed-no-protocol.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-signed-two-attachments.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/hidden/smime-signed-apple.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/html.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/html.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/html.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/htmlonly.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/htmlonly.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/htmlonly.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/htmlonlyexternal.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/iconic/openpgp-encrypted-partially-signed-attachments.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/iconic/openpgp-encrypted-two-attachments.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/iconic/openpgp-signed-encrypted-two-attachments.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/iconic/openpgp-signed-two-attachments.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/inlined/encapsulated-with-attachment.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/inlined/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/inlined/openpgp-encrypted-attachment.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/inlined/openpgp-encrypted-non-encrypted-attachment.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/inlined/openpgp-signed-apple.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/inlined/openpgp-signed-mailinglist+additional-children.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/inlined/smime-signed-apple.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-appendix.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-appendix.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-appendix.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-error.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-error.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-error.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted.mbox.inProgress.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/mailheader.css create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/no-content-type.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/no-content-type.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/no-content-type.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encoded.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encoded.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encoded.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted+signed.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted+signed.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted+signed.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-applemail.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-applemail.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-applemail.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-enigmail1.6.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-enigmail1.6.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-enigmail1.6.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-noData.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-noData.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-noData.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-non-encrypted-attachment.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-non-encrypted-attachment.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-non-encrypted-attachment.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-partially-signed-attachments.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-partially-signed-attachments.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-partially-signed-attachments.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-two-attachments.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-two-attachments.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-two-attachments.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted.mbox.inProgress.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-charset-encrypted.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-charset-encrypted.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-charset-encrypted.mbox.inProgress.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-charset-encrypted.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-signed-broken.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-signed.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-signed.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-signed.mbox.inProgress.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-signed.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-wrong-charset-encrypted.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-wrong-charset-encrypted.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-wrong-charset-encrypted.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-apple.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-apple.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-apple.mbox.inProgress.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-apple.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-base64-mailman-footer.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-base64-mailman-footer.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-base64-mailman-footer.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted-two-attachments.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted-two-attachments.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted-two-attachments.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+additional-children.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+additional-children.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+additional-children.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+old.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+old.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+old.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist.mbox.inProgress.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-no-protocol.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-no-protocol.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-no-protocol.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-two-attachments.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-two-attachments.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-two-attachments.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/signed-forward-openpgp-signed-encrypted.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/signed-forward-openpgp-signed-encrypted.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/signed-forward-openpgp-signed-encrypted.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-cert.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-cert.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-cert.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted-octet-stream.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted-octet-stream.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted-octet-stream.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted.mbox.inProgress.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-enc+sign.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-enc+sign.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-enc+sign.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-sign.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-sign.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-sign.mbox.inProgress.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-sign.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-signed-encrypted-attachment.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-apple.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-apple.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-apple.mbox.inProgress.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-apple.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-encrypted.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-encrypted.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-encrypted.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/text+html-maillinglist.mbox create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/text+html-maillinglist.mbox.html create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/data/text+html-maillinglist.mbox.tree create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/kdepim_add_gpg_crypto_test.cmake create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/kdepim_generate_crypto_test_wrapper.cmake create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/nodehelpertest.cpp create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/nodehelpertest.h create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/setupenv.cpp create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/setupenv.h create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/testcsshelper.cpp create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/testcsshelper.h create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/util.cpp create mode 100644 framework/src/domain/mimetreeparser/otp/autotests/util.h (limited to 'framework') diff --git a/framework/src/domain/mimetreeparser/otp/CMakeLists.txt b/framework/src/domain/mimetreeparser/otp/CMakeLists.txt index baa6decd..f480fa21 100644 --- a/framework/src/domain/mimetreeparser/otp/CMakeLists.txt +++ b/framework/src/domain/mimetreeparser/otp/CMakeLists.txt @@ -54,7 +54,6 @@ set(libmimetreeparser_SRCS attachmentstrategy.cpp #HTML Writer queuehtmlwriter.cpp - # htmlwriter/filehtmlwriter.cpp attachmenttemporaryfilesdirs.cpp ) @@ -69,3 +68,5 @@ target_link_libraries(kube_otp Qt5::Gui ) install(TARGETS kube_otp DESTINATION ${LIB_INSTALL_DIR}) + +add_subdirectory(autotests) diff --git a/framework/src/domain/mimetreeparser/otp/autotests/CMakeLists.txt b/framework/src/domain/mimetreeparser/otp/autotests/CMakeLists.txt new file mode 100644 index 00000000..3f344c82 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/CMakeLists.txt @@ -0,0 +1,47 @@ +include_directories(../) +include_directories(${CMAKE_CURRENT_BINARY_DIR}) + +set(AUTOMOC ON) + +set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}) +add_definitions( -DMAIL_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/data" ) + +include(${CMAKE_CURRENT_SOURCE_DIR}/kdepim_add_gpg_crypto_test.cmake) + +# convenience macro to add qtest unit tests +macro(add_mimetreeparser_unittest _source) + get_filename_component(_name ${_source} NAME_WE) + ecm_add_test(${_source} util.cpp setupenv.cpp + TEST_NAME ${_name} + NAME_PREFIX "mimetreeparser-" + LINK_LIBRARIES kube_otp Qt5::Test KF5::Mime Gpgmepp + ) +endmacro () + +macro(add_mimetreeparser_class_unittest _source _additionalSource) + get_filename_component(_name ${_source} NAME_WE) + ecm_add_test(${_source} ${_additionalSource} + TEST_NAME ${_name} + NAME_PREFIX "mimetreeparser-" + LINK_LIBRARIES kube_otp Qt5::Test KF5::Mime Gpgmepp + ) +endmacro () + +macro(add_mimetreeparser_crypto_unittest _source) + set(_test ${_source} util.cpp) + get_filename_component(_name ${_source} NAME_WE) + add_executable( ${_name} ${_test} setupenv.cpp) + ecm_mark_as_test(mimetreeparser-${_name}) + target_link_libraries( ${_name} + kube_otp + Qt5::Test + KF5::Mime + Gpgmepp + ) + add_gpg_crypto_test(${_name} mimetreeparser-${_name}) +endmacro () + +#FIXME +add_mimetreeparser_crypto_unittest(attachmenttest.cpp) +add_mimetreeparser_unittest(nodehelpertest.cpp) +#add_mimetreeparser_class_unittest( cryptohelpertest.cpp "../src/viewer/cryptohelper.cpp") diff --git a/framework/src/domain/mimetreeparser/otp/autotests/attachmenttest.cpp b/framework/src/domain/mimetreeparser/otp/autotests/attachmenttest.cpp new file mode 100644 index 00000000..44e40a45 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/attachmenttest.cpp @@ -0,0 +1,68 @@ +/* + Copyright (c) 2015 Volker Krause + + This library is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published by + the Free Software Foundation; either version 2 of the License, or (at your + option) any later version. + + This library is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public + License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. +*/ +#include "objecttreeparser.h" +#include "util.h" + +#include "setupenv.h" + +#include + +using namespace MimeTreeParser; + +class AttachmentTest : public QObject +{ + Q_OBJECT +private Q_SLOTS: + void initTestCase(); + void testEncryptedAttachment_data(); + void testEncryptedAttachment(); +}; + +QTEST_MAIN(AttachmentTest) + +void AttachmentTest::initTestCase() +{ + MimeTreeParser::Test::setupEnv(); +} + +void AttachmentTest::testEncryptedAttachment_data() +{ + QTest::addColumn("mbox"); + QTest::newRow("encrypted") << "openpgp-encrypted-two-attachments.mbox"; + QTest::newRow("signed") << "openpgp-signed-two-attachments.mbox"; + QTest::newRow("signed+encrypted") << "openpgp-signed-encrypted-two-attachments.mbox"; + QTest::newRow("encrypted+partial signed") << "openpgp-encrypted-partially-signed-attachments.mbox"; +} + +void AttachmentTest::testEncryptedAttachment() +{ + QFETCH(QString, mbox); + auto msg = readAndParseMail(mbox); + NodeHelper nodeHelper; + Test::TestObjectTreeSource testSource(nullptr); + testSource.setAllowDecryption(true); + ObjectTreeParser otp(&testSource, &nodeHelper); + otp.parseObjectTree(msg.data()); + + auto attachments = msg->attachments(); + auto encAtts = nodeHelper.attachmentsOfExtraContents(); + QCOMPARE(attachments.size() + encAtts.size(), 2); +} + +#include "attachmenttest.moc" diff --git a/framework/src/domain/mimetreeparser/otp/autotests/cryptohelpertest.cpp b/framework/src/domain/mimetreeparser/otp/autotests/cryptohelpertest.cpp new file mode 100644 index 00000000..251e657d --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/cryptohelpertest.cpp @@ -0,0 +1,144 @@ +/* Copyright 2015 Sandro Knauß + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License or (at your option) version 3 or any later version + accepted by the membership of KDE e.V. (or its successor approved + by the membership of KDE e.V.), which shall act as a proxy + defined in Section 14 of version 3 of the license. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ +#include "cryptohelpertest.h" + +#include "cryptohelper.h" + +#include + +using namespace MimeTreeParser; + +void CryptoHelperTest::testPMFDEmpty() +{ + QCOMPARE(prepareMessageForDecryption("").count(), 0); +} + +void CryptoHelperTest::testPMFDWithNoPGPBlock() +{ + const QByteArray text = "testblabla"; + const QList blocks = prepareMessageForDecryption(text); + QCOMPARE(blocks.count(), 1); + QCOMPARE(blocks[0].text(), text); + QCOMPARE(blocks[0].type(), NoPgpBlock); +} + +void CryptoHelperTest::testPGPBlockType() +{ + const QString blockText = QStringLiteral("text"); + const QString preString = QStringLiteral("before\n"); + for (int i = 1; i <= PrivateKeyBlock; ++i) { + QString name; + switch (i) { + case PgpMessageBlock: + name = QStringLiteral("MESSAGE"); + break; + case MultiPgpMessageBlock: + name = QStringLiteral("MESSAGE PART"); + break; + case SignatureBlock: + name = QStringLiteral("SIGNATURE"); + break; + case ClearsignedBlock: + name = QStringLiteral("SIGNED MESSAGE"); + break; + case PublicKeyBlock: + name = QStringLiteral("PUBLIC KEY BLOCK"); + break; + case PrivateKeyBlock: + name = QStringLiteral("PRIVATE KEY BLOCK"); + break; + } + QString text = QLatin1String("-----BEGIN PGP ") + name + QLatin1String("\n") + blockText; + QList blocks = prepareMessageForDecryption(preString.toLatin1() + text.toLatin1()); + QCOMPARE(blocks.count(), 1); + QCOMPARE(blocks[0].type(), UnknownBlock); + + text += QLatin1String("\n-----END PGP ") + name + QLatin1String("\n"); + blocks = prepareMessageForDecryption(preString.toLatin1() + text.toLatin1()); + QCOMPARE(blocks.count(), 2); + QCOMPARE(blocks[1].text(), text.toLatin1()); + QCOMPARE(blocks[1].type(), static_cast(i)); + } +} + +void CryptoHelperTest::testDeterminePGPBlockType() +{ + const QString blockText = QStringLiteral("text"); + for (int i = 1; i <= PrivateKeyBlock; ++i) { + QString name; + switch (i) { + + case PgpMessageBlock: + name = QStringLiteral("MESSAGE"); + break; + case MultiPgpMessageBlock: + name = QStringLiteral("MESSAGE PART"); + break; + case SignatureBlock: + name = QStringLiteral("SIGNATURE"); + break; + case ClearsignedBlock: + name = QStringLiteral("SIGNED MESSAGE"); + break; + case PublicKeyBlock: + name = QStringLiteral("PUBLIC KEY BLOCK"); + break; + case PrivateKeyBlock: + name = QStringLiteral("PRIVATE KEY BLOCK"); + break; + } + const QString text = QLatin1String("-----BEGIN PGP ") + name + QLatin1String("\n") + blockText + QLatin1String("\n"); + const Block block = Block(text.toLatin1()); + QCOMPARE(block.text(), text.toLatin1()); + QCOMPARE(block.type(), static_cast(i)); + } +} + +void CryptoHelperTest::testEmbededPGPBlock() +{ + const QByteArray text = QByteArray("before\n-----BEGIN PGP MESSAGE-----\ncrypted - you see :)\n-----END PGP MESSAGE-----\nafter"); + const QList blocks = prepareMessageForDecryption(text); + QCOMPARE(blocks.count(), 3); + QCOMPARE(blocks[0].text(), QByteArray("before\n")); + QCOMPARE(blocks[1].text(), QByteArray("-----BEGIN PGP MESSAGE-----\ncrypted - you see :)\n-----END PGP MESSAGE-----\n")); + QCOMPARE(blocks[2].text(), QByteArray("after")); +} + +void CryptoHelperTest::testClearSignedMessage() +{ + const QByteArray text = QByteArray("before\n-----BEGIN PGP SIGNED MESSAGE-----\nsigned content\n-----BEGIN PGP SIGNATURE-----\nfancy signature\n-----END PGP SIGNATURE-----\nafter"); + const QList blocks = prepareMessageForDecryption(text); + QCOMPARE(blocks.count(), 3); + QCOMPARE(blocks[0].text(), QByteArray("before\n")); + QCOMPARE(blocks[1].text(), QByteArray("-----BEGIN PGP SIGNED MESSAGE-----\nsigned content\n-----BEGIN PGP SIGNATURE-----\nfancy signature\n-----END PGP SIGNATURE-----\n")); + QCOMPARE(blocks[2].text(), QByteArray("after")); +} + +void CryptoHelperTest::testMultipleBlockMessage() +{ + const QByteArray text = QByteArray("before\n-----BEGIN PGP SIGNED MESSAGE-----\nsigned content\n-----BEGIN PGP SIGNATURE-----\nfancy signature\n-----END PGP SIGNATURE-----\nafter\n-----BEGIN PGP MESSAGE-----\ncrypted - you see :)\n-----END PGP MESSAGE-----\n"); + const QList blocks = prepareMessageForDecryption(text); + QCOMPARE(blocks.count(), 4); + QCOMPARE(blocks[0].text(), QByteArray("before\n")); + QCOMPARE(blocks[1].text(), QByteArray("-----BEGIN PGP SIGNED MESSAGE-----\nsigned content\n-----BEGIN PGP SIGNATURE-----\nfancy signature\n-----END PGP SIGNATURE-----\n")); + QCOMPARE(blocks[2].text(), QByteArray("after\n")); + QCOMPARE(blocks[3].text(), QByteArray("-----BEGIN PGP MESSAGE-----\ncrypted - you see :)\n-----END PGP MESSAGE-----\n")); +} + +QTEST_APPLESS_MAIN(CryptoHelperTest) diff --git a/framework/src/domain/mimetreeparser/otp/autotests/cryptohelpertest.h b/framework/src/domain/mimetreeparser/otp/autotests/cryptohelpertest.h new file mode 100644 index 00000000..71ae086f --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/cryptohelpertest.h @@ -0,0 +1,42 @@ +/* Copyright 2009 Thomas McGuire + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License or (at your option) version 3 or any later version + accepted by the membership of KDE e.V. (or its successor approved + by the membership of KDE e.V.), which shall act as a proxy + defined in Section 14 of version 3 of the license. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ +#ifndef CRYPTOHELPERTEST_H +#define CRYPTOHELPERTEST_H + +#include + +namespace MimeTreeParser +{ + +class CryptoHelperTest : public QObject +{ + Q_OBJECT + +private Q_SLOTS: + void testPMFDEmpty(); + void testPMFDWithNoPGPBlock(); + void testPGPBlockType(); + void testDeterminePGPBlockType(); + void testEmbededPGPBlock(); + void testClearSignedMessage(); + void testMultipleBlockMessage(); +}; + +} +#endif diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/alternative-notext.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/alternative-notext.mbox new file mode 100644 index 00000000..86026437 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/alternative-notext.mbox @@ -0,0 +1,22 @@ +Return-Path: +Date: Wed, 8 Jun 2016 20:34:44 -0700 +From: Konqi +To: konqi@kde.org +Subject: A random subject with a empty text alternative contenttype +MIME-Version: 1.0 +Content-Type: multipart/alternative; + boundary="----=_Part_12345678_12345678" + + +------=_Part_12345678_12345678 +Content-Transfer-Encoding: 7Bit +Content-Type: text/html; charset="windows-1252" + + + +

Some HTML text

+ + +------=_Part_12345678_12345678-- diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/alternative-notext.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/alternative-notext.mbox.html new file mode 100644 index 00000000..41db4eab --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/alternative-notext.mbox.html @@ -0,0 +1,17 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/alternative-notext.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/alternative-notext.mbox.tree new file mode 100644 index 00000000..0de07281 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/alternative-notext.mbox.tree @@ -0,0 +1,2 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::AlternativeMessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/alternative.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/alternative.mbox new file mode 100644 index 00000000..a2c58591 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/alternative.mbox @@ -0,0 +1,34 @@ +Return-Path: +Date: Wed, 8 Jun 2016 20:34:44 -0700 +From: Konqi +To: konqi@kde.org +Subject: A random subject with alternative contenttype +MIME-Version: 1.0 +Content-Type: multipart/alternative; + boundary="----=_Part_12345678_12345678" + + +------=_Part_12345678_12345678 +Content-Type: text/plain; charset=utf-8 +Content-Transfer-Encoding: quoted-printable + +If you can see this text it means that your email client couldn't display o= +ur newsletter properly. +Please visit this link to view the newsletter on our website: http://www.go= +g.com/newsletter/ + +=2D GOG.com Team + + +------=_Part_12345678_12345678 +Content-Transfer-Encoding: 7Bit +Content-Type: text/html; charset="windows-1252" + + + +

Some HTML text

+ + +------=_Part_12345678_12345678-- diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/alternative.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/alternative.mbox.html new file mode 100644 index 00000000..2fe886f1 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/alternative.mbox.html @@ -0,0 +1,17 @@ + + + + +
+ + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/alternative.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/alternative.mbox.tree new file mode 100644 index 00000000..0de07281 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/alternative.mbox.tree @@ -0,0 +1,2 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::AlternativeMessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/details/forward-openpgp-signed-encrypted.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/details/forward-openpgp-signed-encrypted.mbox.html new file mode 100644 index 00000000..9a81f103 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/details/forward-openpgp-signed-encrypted.mbox.html @@ -0,0 +1,84 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encoded.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encoded.mbox.html new file mode 100644 index 00000000..65d5f95e --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encoded.mbox.html @@ -0,0 +1,38 @@ + + + + +
+ +
+ + + + + + + + + + +
+ + + + + + + +
Message was signed on 12/21/15 3:46 PM with unknown key 0xE68031D299A6527C.
The validity of the signature cannot be verified.
Status:No public key to verify the signature
+ Hide Details +
+
+
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam viverra nec consectetur ante hendrerit. Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ut gravida lorem. Ut turpis felis, pulvinar a semper sed, adipiscing id dolor. Pellentesque auctor nisi id magna consequat sagittis. Curabitur dapibus enim sit amet elit pharetra tincidunt feugiat nisl imperdiet. Ut convallis libero in urna ultrices accumsan. Donec sed odio eros. Donec viverra mi quis quam pulvinar at malesuada arcu rhoncus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In rutrum accumsan ultricies. Mauris vitae nisi at sem facilisis semper ac in est.
+
+
End of signed message
+
+
+ + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encrypted+signed.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encrypted+signed.mbox.html new file mode 100644 index 00000000..96361c30 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encrypted+signed.mbox.html @@ -0,0 +1,55 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.html new file mode 100644 index 00000000..cc6bf03e --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.html @@ -0,0 +1,80 @@ + + + + +
+ + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encrypted-attachment.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encrypted-attachment.mbox.html new file mode 100644 index 00000000..61bf5d28 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encrypted-attachment.mbox.html @@ -0,0 +1,69 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encrypted-non-encrypted-attachment.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encrypted-non-encrypted-attachment.mbox.html new file mode 100644 index 00000000..8d8bde0d --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encrypted-non-encrypted-attachment.mbox.html @@ -0,0 +1,72 @@ + + + + +
+ + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encrypted-partially-signed-attachments.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encrypted-partially-signed-attachments.mbox.html new file mode 100644 index 00000000..1716b841 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-encrypted-partially-signed-attachments.mbox.html @@ -0,0 +1,102 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-inline-charset-encrypted.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-inline-charset-encrypted.mbox.html new file mode 100644 index 00000000..c2fa2fee --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-inline-charset-encrypted.mbox.html @@ -0,0 +1,50 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-inline-signed.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-inline-signed.mbox.html new file mode 100644 index 00000000..00a9dc5b --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-inline-signed.mbox.html @@ -0,0 +1,38 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-base64-mailman-footer.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-base64-mailman-footer.mbox.html new file mode 100644 index 00000000..c10cecd8 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-base64-mailman-footer.mbox.html @@ -0,0 +1,81 @@ + + + + +
+ +
+ + + + +
+
+ + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-encrypted-two-attachments.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-encrypted-two-attachments.mbox.html new file mode 100644 index 00000000..2c02a22c --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-encrypted-two-attachments.mbox.html @@ -0,0 +1,91 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-encrypted.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-encrypted.mbox.html new file mode 100644 index 00000000..d3a7a0ce --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-encrypted.mbox.html @@ -0,0 +1,58 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-mailinglist+old.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-mailinglist+old.mbox.html new file mode 100644 index 00000000..e7da94db --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-mailinglist+old.mbox.html @@ -0,0 +1,97 @@ + + + + +
+ + +
+ + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-mailinglist.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-mailinglist.mbox.html new file mode 100644 index 00000000..f5b20b6d --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-mailinglist.mbox.html @@ -0,0 +1,68 @@ + + + + +
+ + +
+ + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-two-attachments.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-two-attachments.mbox.html new file mode 100644 index 00000000..1432aa44 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/details/openpgp-signed-two-attachments.mbox.html @@ -0,0 +1,74 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/details/signed-forward-openpgp-signed-encrypted.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/details/signed-forward-openpgp-signed-encrypted.mbox.html new file mode 100644 index 00000000..b960f318 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/details/signed-forward-openpgp-signed-encrypted.mbox.html @@ -0,0 +1,111 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/details/smime-opaque-enc+sign.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/details/smime-opaque-enc+sign.mbox.html new file mode 100644 index 00000000..d6345a7c --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/details/smime-opaque-enc+sign.mbox.html @@ -0,0 +1,60 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/details/smime-opaque-sign.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/details/smime-opaque-sign.mbox.html new file mode 100644 index 00000000..248b93ff --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/details/smime-opaque-sign.mbox.html @@ -0,0 +1,43 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/details/smime-signed-encrypted.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/details/smime-signed-encrypted.mbox.html new file mode 100644 index 00000000..6e811632 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/details/smime-signed-encrypted.mbox.html @@ -0,0 +1,58 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/encapsulated-with-attachment.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/encapsulated-with-attachment.mbox new file mode 100644 index 00000000..885b9d1b --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/encapsulated-with-attachment.mbox @@ -0,0 +1,53 @@ +From: Thomas McGuire +Subject: Fwd: Test with attachment +Date: Wed, 5 Aug 2009 10:58:27 +0200 +MIME-Version: 1.0 +Content-Type: Multipart/Mixed; + boundary="Boundary-00=_zmUeKB+A8hGfCVZ" + + +--Boundary-00=_zmUeKB+A8hGfCVZ +Content-Type: text/plain; + charset="iso-8859-15" +Content-Transfer-Encoding: 7bit +Content-Disposition: inline + +This is the first encapsulating message. + +--Boundary-00=_zmUeKB+A8hGfCVZ +Content-Type: message/rfc822; + name="forwarded message" +Content-Transfer-Encoding: 7bit +Content-Description: Thomas McGuire : Test with attachment +Content-Disposition: inline + +From: Thomas McGuire +Subject: Test with attachment +Date: Wed, 5 Aug 2009 10:57:58 +0200 +MIME-Version: 1.0 +Content-Type: Multipart/Mixed; + boundary="Boundary-00=_WmUeKQpGb0DHyx1" + +--Boundary-00=_WmUeKQpGb0DHyx1 +Content-Type: text/plain; + charset="us-ascii" +Content-Transfer-Encoding: 7bit +Content-Disposition: inline + + + + +This is the second encapsulated message. + +--Boundary-00=_WmUeKQpGb0DHyx1 +Content-Type: text/plain; + name="attachment.txt" +Content-Transfer-Encoding: 7bit +Content-Disposition: attachment; + filename="attachment.txt" + +This is an attachment. + +--Boundary-00=_WmUeKQpGb0DHyx1-- + +--Boundary-00=_zmUeKB+A8hGfCVZ-- diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/encapsulated-with-attachment.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/encapsulated-with-attachment.mbox.html new file mode 100644 index 00000000..aa3d1090 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/encapsulated-with-attachment.mbox.html @@ -0,0 +1,51 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/encapsulated-with-attachment.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/encapsulated-with-attachment.mbox.tree new file mode 100644 index 00000000..050414a2 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/encapsulated-with-attachment.mbox.tree @@ -0,0 +1,10 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::EncapsulatedRfc822MessagePart + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::AttachmentMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::AttachmentMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/forward-openpgp-signed-encrypted.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/forward-openpgp-signed-encrypted.mbox new file mode 100644 index 00000000..1c166940 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/forward-openpgp-signed-encrypted.mbox @@ -0,0 +1,69 @@ +From test@kolab.org Wed, 08 Sep 2010 17:52:37 +0200 +From: OpenPGP Test +Subject: Fwd: OpenPGP signed and encrypted +Date: Wed, 08 Sep 2010 17:52:37 +0200 +User-Agent: KMail/4.6 pre (Linux/2.6.34-rc2-2-default; KDE/4.5.60; x86_64; ; ) +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="nextPart2148910.9CGjQOYhYJ" +Content-Transfer-Encoding: 7Bit + + +--nextPart2148910.9CGjQOYhYJ +Content-Transfer-Encoding: 7Bit +Content-Type: text/plain; charset="us-ascii" + +bla bla bla +--nextPart2148910.9CGjQOYhYJ +Content-Type: message/rfc822 +Content-Disposition: inline; filename="forwarded message" +Content-Description: OpenPGP Test : OpenPGP signed and encrypted + +From: OpenPGP Test +To: test@kolab.org +Subject: OpenPGP signed and encrypted +Date: Tue, 07 Sep 2010 18:08:44 +0200 +User-Agent: KMail/4.6 pre (Linux/2.6.34-rc2-2-default; KDE/4.5.60; x86_64; ; ) +MIME-Version: 1.0 +Content-Type: multipart/encrypted; boundary="nextPart25203163.0xtB501Z4V"; protocol="application/pgp-encrypted" +Content-Transfer-Encoding: 7Bit + + +--nextPart25203163.0xtB501Z4V +Content-Type: application/pgp-encrypted +Content-Disposition: attachment + +Version: 1 +--nextPart25203163.0xtB501Z4V +Content-Type: application/octet-stream +Content-Disposition: inline; filename="msg.asc" + +-----BEGIN PGP MESSAGE----- +Version: GnuPG v2.0.15 (GNU/Linux) + +hQEMAwzOQ1qnzNo7AQf7BFYWaGiCTGtXY59bSh3LCXNnWZejblYALxIUNXOFEXbm +y/YA95FmQsy3U5HRCAJV/DY1PEaJz1RTm9bcdIpDC3Ab2YzSwmOwV5fcoUOB2df4 +KjX19Q+2F3JxpPQ0N1gHf4dKfIu19LH+CKeFzUN13aJs5J4A5wlj+NjJikxzmxDS +kDtNYndynPmo9DJQcsUFw3gpvx5HaHvx1cT4mAB2M5cd2l+vN1jYbaWb0x5Zq41z +mRNI89aPieC3rcM2289m68fGloNbYvi8mZJu5RrI4Tbi/D7Rjm1y63lHgVV6AN88 +XAzRiedOeF99LoTBulrJdtT8AAgCs8nCetcWpIffdtLpAZiZkzHmYOU7nqGxqpRk +OVeUTrCn9DW2SMmHjaP4IiKnMvzEycu5F4a72+V1LeMIhMSjTRTq+ZE2PTaqH59z +QsMn7Nb6GlOICbTptRKNNtyJKO7xXlpT7YtvNKnCyEOkH2XrYH7GvpYCiuQ0/o+7 +SxV436ZejiYIg6DQDXJCoa2DXimGp0C10Jh0HwX0BixpoNtwEjkGRYcX6P/JzkH0 +oBood4Ly+Tiu6iVDisrK3AVGYpIzCrKkE9qULTw4R/jFKR2tcCqGb7Fxtk2LV7Md +3S+DyOKrvKQ5GNwbp9OE97pwk+Lr1JS3UAvj5f6BR+1PVNcC0i0wWkgwDjPh1eGD +enMQmorE6+N0uHtH2F4fOxo/TbbA3+zhI25kVW3bO03xyUl/cmQZeb52nvfOvtOo +gSb2j6bPkzljDMPEzrtJjbFtGHJbPfUQYJgZv9OE2EQIqpg6goIw279alBq6GLIX +pkO+dRmztzjcDyhcLxMuQ4cTizel/0J/bU7U6lvwHSyZVbT4Ev+opG5K70Hbqbwr +NZcgdWXbSeesxGM/oQaMeSurOevxVl+/zrTVAek61aRRd1baAYqgi2pf2V7y4oK3 +qkdxzmoFpRdNlfrQW65NZWnHOi9rC9XxANIwnVn3kRcDf+t2K4PrFluI157lXM/o +wX91j88fazysbJlQ6TjsApO9ETiPOFEBqouxCTtCZzlUgyVG8jpIjdHWFnagHeXH ++lXNdYjxnTWTjTxMOZC9ySMpXkjWdFI1ecxVwu6Ik6RX51rvBJAAXWP75yUjPKJ4 +rRi5oQl/VLl0QznO7lvgMPtUwgDVNWO/r7Kn9B387h9fAJZ/kWFAEDW2yhAzABqO +rCNKDzBPgfAwCnikCpMoCbOL7SU8BdbzQHD8/Lkv4m0pzliHQ/KkGF710koBzTmF +N7+wk9pwIuvcrEBQj567 +=GV0c +-----END PGP MESSAGE----- + +--nextPart25203163.0xtB501Z4V-- + +--nextPart2148910.9CGjQOYhYJ-- diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/forward-openpgp-signed-encrypted.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/forward-openpgp-signed-encrypted.mbox.html new file mode 100644 index 00000000..7632ec39 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/forward-openpgp-signed-encrypted.mbox.html @@ -0,0 +1,81 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/forward-openpgp-signed-encrypted.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/forward-openpgp-signed-encrypted.mbox.tree new file mode 100644 index 00000000..324156db --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/forward-openpgp-signed-encrypted.mbox.tree @@ -0,0 +1,9 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::EncapsulatedRfc822MessagePart + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::SignedMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.html new file mode 100644 index 00000000..73c4d2d7 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.html @@ -0,0 +1,61 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-encrypted-attachment.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-encrypted-attachment.mbox.html new file mode 100644 index 00000000..d5e4550e --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-encrypted-attachment.mbox.html @@ -0,0 +1,58 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-encrypted-non-encrypted-attachment.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-encrypted-non-encrypted-attachment.mbox.html new file mode 100644 index 00000000..73c4d2d7 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-encrypted-non-encrypted-attachment.mbox.html @@ -0,0 +1,61 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-encrypted-partially-signed-attachments.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-encrypted-partially-signed-attachments.mbox.html new file mode 100644 index 00000000..ebad7354 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-encrypted-partially-signed-attachments.mbox.html @@ -0,0 +1,84 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-encrypted-two-attachments.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-encrypted-two-attachments.mbox.html new file mode 100644 index 00000000..4cdeaa63 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-encrypted-two-attachments.mbox.html @@ -0,0 +1,34 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-signed-apple.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-signed-apple.mbox.html new file mode 100644 index 00000000..330b02a1 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-signed-apple.mbox.html @@ -0,0 +1,50 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-signed-encrypted-two-attachments.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-signed-encrypted-two-attachments.mbox.html new file mode 100644 index 00000000..83b7a66c --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-signed-encrypted-two-attachments.mbox.html @@ -0,0 +1,58 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-signed-mailinglist+additional-children.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-signed-mailinglist+additional-children.mbox.html new file mode 100644 index 00000000..25b1ad04 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-signed-mailinglist+additional-children.mbox.html @@ -0,0 +1,52 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-signed-no-protocol.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-signed-no-protocol.mbox.html new file mode 100644 index 00000000..bdac52b6 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-signed-no-protocol.mbox.html @@ -0,0 +1,28 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-signed-two-attachments.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-signed-two-attachments.mbox.html new file mode 100644 index 00000000..027097f7 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/openpgp-signed-two-attachments.mbox.html @@ -0,0 +1,41 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/smime-signed-apple.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/smime-signed-apple.mbox.html new file mode 100644 index 00000000..9554bb39 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/headeronly/smime-signed-apple.mbox.html @@ -0,0 +1,50 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/encapsulated-with-attachment.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/encapsulated-with-attachment.mbox.html new file mode 100644 index 00000000..42f5ecd7 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/encapsulated-with-attachment.mbox.html @@ -0,0 +1,43 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.html new file mode 100644 index 00000000..73c4d2d7 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.html @@ -0,0 +1,61 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-attachment.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-attachment.mbox.html new file mode 100644 index 00000000..d5e4550e --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-attachment.mbox.html @@ -0,0 +1,58 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-noData.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-noData.mbox.html new file mode 100644 index 00000000..166812fe --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-noData.mbox.html @@ -0,0 +1,10 @@ + + + + +
+ +
+
+ + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-non-encrypted-attachment.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-non-encrypted-attachment.mbox.html new file mode 100644 index 00000000..73c4d2d7 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-non-encrypted-attachment.mbox.html @@ -0,0 +1,61 @@ + + + + +
+ + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-partially-signed-attachments.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-partially-signed-attachments.mbox.html new file mode 100644 index 00000000..ebad7354 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-partially-signed-attachments.mbox.html @@ -0,0 +1,84 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-two-attachments.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-two-attachments.mbox.html new file mode 100644 index 00000000..4cdeaa63 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-encrypted-two-attachments.mbox.html @@ -0,0 +1,34 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-signed-apple.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-signed-apple.mbox.html new file mode 100644 index 00000000..330b02a1 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-signed-apple.mbox.html @@ -0,0 +1,50 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-signed-encrypted-two-attachments.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-signed-encrypted-two-attachments.mbox.html new file mode 100644 index 00000000..83b7a66c --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-signed-encrypted-two-attachments.mbox.html @@ -0,0 +1,58 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-signed-mailinglist+additional-children.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-signed-mailinglist+additional-children.mbox.html new file mode 100644 index 00000000..1f0da385 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-signed-mailinglist+additional-children.mbox.html @@ -0,0 +1,44 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-signed-no-protocol.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-signed-no-protocol.mbox.html new file mode 100644 index 00000000..bdac52b6 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-signed-no-protocol.mbox.html @@ -0,0 +1,28 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-signed-two-attachments.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-signed-two-attachments.mbox.html new file mode 100644 index 00000000..027097f7 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/openpgp-signed-two-attachments.mbox.html @@ -0,0 +1,41 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/smime-signed-apple.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/smime-signed-apple.mbox.html new file mode 100644 index 00000000..9554bb39 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/hidden/smime-signed-apple.mbox.html @@ -0,0 +1,50 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/html.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/html.mbox new file mode 100644 index 00000000..eebd4283 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/html.mbox @@ -0,0 +1,31 @@ +From foo@example.com Thu, 26 May 2011 01:16:54 +0100 +From: Thomas McGuire +Subject: HTML test +Date: Thu, 26 May 2011 01:16:54 +0100 +Message-ID: <1501334.pROlBb7MZF@herrwackelpudding.localhost> +X-KMail-Transport: GMX +X-KMail-Fcc: 28 +X-KMail-Drafts: 7 +X-KMail-Templates: 9 +User-Agent: KMail/4.6 beta5 (Linux/2.6.34.7-0.7-desktop; KDE/4.6.41; x86_64; git-0269848; 2011-04-19) +MIME-Version: 1.0 +Content-Type: multipart/alternative; boundary="nextPart8606278.tpV19BTJKu" +Content-Transfer-Encoding: 7Bit + + +--nextPart8606278.tpV19BTJKu +Content-Transfer-Encoding: 7Bit +Content-Type: text/plain; charset="windows-1252" + +Some HTML text +--nextPart8606278.tpV19BTJKu +Content-Transfer-Encoding: 7Bit +Content-Type: text/html; charset="windows-1252" + + + +

Some HTML text

+--nextPart8606278.tpV19BTJKu-- + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/html.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/html.mbox.html new file mode 100644 index 00000000..2fe886f1 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/html.mbox.html @@ -0,0 +1,17 @@ + + + + +
+ + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/html.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/html.mbox.tree new file mode 100644 index 00000000..0de07281 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/html.mbox.tree @@ -0,0 +1,2 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::AlternativeMessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/htmlonly.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/htmlonly.mbox new file mode 100644 index 00000000..e45b1c4d --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/htmlonly.mbox @@ -0,0 +1,21 @@ +From foo@example.com Thu, 26 May 2011 01:16:54 +0100 +From: Thomas McGuire +Subject: HTML test +Date: Thu, 26 May 2011 01:16:54 +0100 +Message-ID: <1501334.pROlBb7MZF@herrwackelpudding.localhost> +X-KMail-Transport: GMX +X-KMail-Fcc: 28 +X-KMail-Drafts: 7 +X-KMail-Templates: 9 +User-Agent: KMail/4.6 beta5 (Linux/2.6.34.7-0.7-desktop; KDE/4.6.41; x86_64; git-0269848; 2011-04-19) +MIME-Version: 1.0 +Content-Type: text/html +Content-Transfer-Encoding: 7Bit + + + + + +SOME HTML text. + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/htmlonly.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/htmlonly.mbox.html new file mode 100644 index 00000000..1143f2cf --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/htmlonly.mbox.html @@ -0,0 +1,12 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/htmlonly.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/htmlonly.mbox.tree new file mode 100644 index 00000000..a4c3191b --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/htmlonly.mbox.tree @@ -0,0 +1,2 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::HtmlMessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/htmlonlyexternal.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/htmlonlyexternal.mbox new file mode 100644 index 00000000..4eb3e2c3 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/htmlonlyexternal.mbox @@ -0,0 +1,21 @@ +From foo@example.com Thu, 26 May 2011 01:16:54 +0100 +From: Thomas McGuire +Subject: HTML test +Date: Thu, 26 May 2011 01:16:54 +0100 +Message-ID: <1501334.pROlBb7MZF@herrwackelpudding.localhost> +X-KMail-Transport: GMX +X-KMail-Fcc: 28 +X-KMail-Drafts: 7 +X-KMail-Templates: 9 +User-Agent: KMail/4.6 beta5 (Linux/2.6.34.7-0.7-desktop; KDE/4.6.41; x86_64; git-0269848; 2011-04-19) +MIME-Version: 1.0 +Content-Type: text/html +Content-Transfer-Encoding: 7Bit + + + + + +SOME HTML text. + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/iconic/openpgp-encrypted-partially-signed-attachments.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/iconic/openpgp-encrypted-partially-signed-attachments.mbox.html new file mode 100644 index 00000000..b6f734c2 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/iconic/openpgp-encrypted-partially-signed-attachments.mbox.html @@ -0,0 +1,92 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/iconic/openpgp-encrypted-two-attachments.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/iconic/openpgp-encrypted-two-attachments.mbox.html new file mode 100644 index 00000000..7f0b7abd --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/iconic/openpgp-encrypted-two-attachments.mbox.html @@ -0,0 +1,50 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/iconic/openpgp-signed-encrypted-two-attachments.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/iconic/openpgp-signed-encrypted-two-attachments.mbox.html new file mode 100644 index 00000000..8d6b5814 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/iconic/openpgp-signed-encrypted-two-attachments.mbox.html @@ -0,0 +1,74 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/iconic/openpgp-signed-two-attachments.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/iconic/openpgp-signed-two-attachments.mbox.html new file mode 100644 index 00000000..73dbc5f4 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/iconic/openpgp-signed-two-attachments.mbox.html @@ -0,0 +1,57 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/inlined/encapsulated-with-attachment.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/inlined/encapsulated-with-attachment.mbox.html new file mode 100644 index 00000000..26d3dd60 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/inlined/encapsulated-with-attachment.mbox.html @@ -0,0 +1,58 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/inlined/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/inlined/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.html new file mode 100644 index 00000000..49e503f1 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/inlined/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.html @@ -0,0 +1,90 @@ + + + + +
+ + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/inlined/openpgp-encrypted-attachment.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/inlined/openpgp-encrypted-attachment.mbox.html new file mode 100644 index 00000000..67897491 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/inlined/openpgp-encrypted-attachment.mbox.html @@ -0,0 +1,74 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/inlined/openpgp-encrypted-non-encrypted-attachment.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/inlined/openpgp-encrypted-non-encrypted-attachment.mbox.html new file mode 100644 index 00000000..6091ee5a --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/inlined/openpgp-encrypted-non-encrypted-attachment.mbox.html @@ -0,0 +1,74 @@ + + + + +
+ + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/inlined/openpgp-signed-apple.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/inlined/openpgp-signed-apple.mbox.html new file mode 100644 index 00000000..092d5e1c --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/inlined/openpgp-signed-apple.mbox.html @@ -0,0 +1,63 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/inlined/openpgp-signed-mailinglist+additional-children.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/inlined/openpgp-signed-mailinglist+additional-children.mbox.html new file mode 100644 index 00000000..cc49cbcc --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/inlined/openpgp-signed-mailinglist+additional-children.mbox.html @@ -0,0 +1,67 @@ + + + + +
+ + +
+ + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/inlined/smime-signed-apple.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/inlined/smime-signed-apple.mbox.html new file mode 100644 index 00000000..d3f3eeb3 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/inlined/smime-signed-apple.mbox.html @@ -0,0 +1,63 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-appendix.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-appendix.mbox new file mode 100644 index 00000000..c05a7e69 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-appendix.mbox @@ -0,0 +1,33 @@ +From test@kolab.org Wed, 25 May 2011 23:49:40 +0100 +From: OpenPGP Test +To: test@kolab.org +Subject: inlinepgpencrypted +Date: Wed, 25 May 2011 23:49:40 +0100 +Message-ID: <1786696.yKXrOjjflF@herrwackelpudding.localhost> +X-KMail-Transport: GMX +X-KMail-Fcc: 28 +X-KMail-Drafts: 7 +X-KMail-Templates: 9 +User-Agent: KMail/4.6 beta5 (Linux/2.6.34.7-0.7-desktop; KDE/4.6.41; x86_64; git-0269848; 2011-04-19) +MIME-Version: 1.0 +Content-Transfer-Encoding: 7Bit +Content-Type: text/plain; charset="us-ascii" + +-----BEGIN PGP MESSAGE----- +Version: GnuPG v2.0.15 (GNU/Linux) + +hQEMAwzOQ1qnzNo7AQf/a3aNTLpQBfcUr+4AKsZQLj4h6z7e7a5AaCW8AG0wrbxN +kBYB7E5jdZh45DX/99gvoZslthWryUCX2kKZ3LtIllxKVjqNuK5hSt+SAuKkwiMR +Xcbf1KFKENKupgGSO9B2NJRbjoExdJ+fC3mGXnO3dT7xJJAo3oLE8Nivu+Bj1peY +E1wCf+vcTwVHFrA7SV8eMRb9Z9wBXmU8Q8e9ekJ7ZsRX3tMeBs6jvscVvfMf6DYY +N14snZBZuGNKT9a3DPny7IC1S0lHcaam34ogWwMi3FxPGJt/Lg52kARlkF5TDhcP +N6H0EB/iqDRjOOUoEVm8um5XOSR1FpEiAdD0DON3y9JPATnrYq7sgYZz3BVImYY+ +N/jV8fEiN0a34pcOq8NQedMuOsJHNBS5MtbQH/kJLq0MXBpXekGlHo4MKw0trISc +Rw3pW6/BFfhPJLni29g9tw== +=fRFW +-----END PGP MESSAGE----- + +_______________________________________________ +test mailing list +test@lists.kde.org +http://kde.org diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-appendix.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-appendix.mbox.html new file mode 100644 index 00000000..8af2b1c6 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-appendix.mbox.html @@ -0,0 +1,36 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-appendix.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-appendix.mbox.tree new file mode 100644 index 00000000..018f5c33 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-appendix.mbox.tree @@ -0,0 +1,4 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::TextMessagePart + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-error.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-error.mbox new file mode 100644 index 00000000..529b4d3b --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-error.mbox @@ -0,0 +1,55 @@ +From test@kolab.org Wed, 25 May 2011 23:49:40 +0100 +From: OpenPGP Test +To: test@kolab.org +Subject: inlinepgpencrypted - no seckey +Date: Wed, 25 May 2011 23:49:40 +0100 +Message-ID: <1786696.yKXrOjjflF@herrwackelpudding.localhost> +X-KMail-Transport: GMX +X-KMail-Fcc: 28 +X-KMail-Drafts: 7 +X-KMail-Templates: 9 +User-Agent: KMail/4.6 beta5 (Linux/2.6.34.7-0.7-desktop; KDE/4.6.41; x86_64; git-0269848; 2011-04-19) +MIME-Version: 1.0 +Content-Transfer-Encoding: 7Bit +Content-Type: text/plain; charset="us-ascii" + +-----BEGIN PGP MESSAGE----- +Version: GnuPG v2 + +hQIMA1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ufLBENx22ipLLEDltP1P9zRuy2KpANd0sggM/HtUC3Bjta7IR9Q3qbVcPDx +3Qu241eOBdb6 +=J3lb +-----END PGP MESSAGE----- diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-error.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-error.mbox.html new file mode 100644 index 00000000..a4427e01 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-error.mbox.html @@ -0,0 +1,24 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-error.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-error.mbox.tree new file mode 100644 index 00000000..6680b8bc --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted-error.mbox.tree @@ -0,0 +1,3 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::TextMessagePart + * MimeTreeParser::EncryptedMessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted.mbox new file mode 100644 index 00000000..b581602c --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted.mbox @@ -0,0 +1,29 @@ +From test@kolab.org Wed, 25 May 2011 23:49:40 +0100 +From: OpenPGP Test +To: test@kolab.org +Subject: inlinepgpencrypted +Date: Wed, 25 May 2011 23:49:40 +0100 +Message-ID: <1786696.yKXrOjjflF@herrwackelpudding.localhost> +X-KMail-Transport: GMX +X-KMail-Fcc: 28 +X-KMail-Drafts: 7 +X-KMail-Templates: 9 +User-Agent: KMail/4.6 beta5 (Linux/2.6.34.7-0.7-desktop; KDE/4.6.41; x86_64; git-0269848; 2011-04-19) +MIME-Version: 1.0 +Content-Transfer-Encoding: 7Bit +Content-Type: text/plain; charset="us-ascii" + +-----BEGIN PGP MESSAGE----- +Version: GnuPG v2.0.15 (GNU/Linux) + +hQEMAwzOQ1qnzNo7AQf/a3aNTLpQBfcUr+4AKsZQLj4h6z7e7a5AaCW8AG0wrbxN +kBYB7E5jdZh45DX/99gvoZslthWryUCX2kKZ3LtIllxKVjqNuK5hSt+SAuKkwiMR +Xcbf1KFKENKupgGSO9B2NJRbjoExdJ+fC3mGXnO3dT7xJJAo3oLE8Nivu+Bj1peY +E1wCf+vcTwVHFrA7SV8eMRb9Z9wBXmU8Q8e9ekJ7ZsRX3tMeBs6jvscVvfMf6DYY +N14snZBZuGNKT9a3DPny7IC1S0lHcaam34ogWwMi3FxPGJt/Lg52kARlkF5TDhcP +N6H0EB/iqDRjOOUoEVm8um5XOSR1FpEiAdD0DON3y9JPATnrYq7sgYZz3BVImYY+ +N/jV8fEiN0a34pcOq8NQedMuOsJHNBS5MtbQH/kJLq0MXBpXekGlHo4MKw0trISc +Rw3pW6/BFfhPJLni29g9tw== +=fRFW +-----END PGP MESSAGE----- + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted.mbox.html new file mode 100644 index 00000000..1f695bdf --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted.mbox.html @@ -0,0 +1,26 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted.mbox.inProgress.html b/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted.mbox.inProgress.html new file mode 100644 index 00000000..e5eb55d0 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted.mbox.inProgress.html @@ -0,0 +1,24 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted.mbox.tree new file mode 100644 index 00000000..6680b8bc --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/inlinepgpencrypted.mbox.tree @@ -0,0 +1,3 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::TextMessagePart + * MimeTreeParser::EncryptedMessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/mailheader.css b/framework/src/domain/mimetreeparser/otp/autotests/data/mailheader.css new file mode 100644 index 00000000..10181957 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/mailheader.css @@ -0,0 +1,512 @@ +div.header { + margin-bottom: 10pt ! important; +} + +table.textAtm { + margin-top: 10pt ! important; + margin-bottom: 10pt ! important; +} + +tr.textAtmH, +tr.textAtmB, +tr.rfc822B { + font-weight: normal ! important; +} + +tr.signInProgressH, +tr.rfc822H, +tr.encrH, +tr.signOkKeyOkH, +tr.signOkKeyBadH, +tr.signWarnH, +tr.signErrH { + font-weight: bold ! important; +} + +tr.textAtmH td, +tr.textAtmB td { + padding: 3px ! important; +} + +table.rfc822 { + width: 100% ! important; + border: solid 1px black ! important; + margin-top: 10pt ! important; + margin-bottom: 10pt ! important; +} + +table.textAtm, +table.encr, +table.signWarn, +table.signErr, +table.signOkKeyBad, +table.signOkKeyOk, +table.signInProgress, +div.fancy.header table { + width: 100% ! important; + border-width: 0px ! important; + line-height: normal; +} + +div.htmlWarn { + margin: 0px 5% ! important; + padding: 10px ! important; + text-align: left ! important; + line-height: normal; +} + +div.fancy.header > div { + font-weight: bold ! important; + padding: 4px ! important; + line-height: normal; +} + +div.fancy.header table { + padding: 2px ! important; + text-align: left ! important; + border-collapse: separate ! important; +} + +div.fancy.header table th { + font-family: "Sans Serif" ! important; + font-size: 0px ! important; + + padding: 0px ! important; + white-space: nowrap ! important; + border-spacing: 0px ! important; + text-align: left ! important; + vertical-align: top ! important; + background-color: #d6d2d0 ! important; + color: #221f1e ! important; + border: 1px ! important; +} + +div.fancy.header table td { + font-family: "Sans Serif" ! important; + font-size: 0px ! important; + + padding: 0px ! important; + border-spacing: 0px ! important; + text-align: left ! important; + vertical-align: top ! important; + width: 100% ! important; + background-color: #d6d2d0 ! important; + color: #221f1e ! important; + border: 1px ! important; +} + +div.fancy.header table a:hover { + background-color: transparent ! important; +} + +span.pimsmileytext { + position: absolute; + top: 0px; + left: 0px; + visibility: hidden; +} + +img.pimsmileyimg { +} + +div.quotelevelmark { + position: absolute; + margin-left:-10px; +} + +@media screen { + +body { + font-family: "Sans Serif" ! important; + font-size: 0px ! important; + color: #1f1c1b ! important; + background-color: #ffffff ! important; +} + +a { + color: #0057ae ! important; + text-decoration: none ! important; +} + +a.white { + color: white ! important; +} + +a.black { + color: black ! important; +} + +table.textAtm { background-color: #1f1c1b ! important; } + +tr.textAtmH { + background-color: #ffffff ! important; + font-family: "Sans Serif" ! important; + font-size: 0px ! important; +} + +tr.textAtmB { + background-color: #ffffff ! important; +} + +table.signInProgress, +table.rfc822 { + background-color: #ffffff ! important; +} + +tr.signInProgressH, +tr.rfc822H { + font-family: "Sans Serif" ! important; + font-size: 0px ! important; +} + +table.encr { + background-color: #0069cc ! important; +} + +tr.encrH { + background-color: #0080ff ! important; + color: #ffffff ! important; + font-family: "Sans Serif" ! important; + font-size: 0px ! important; +} + +tr.encrB { background-color: #e0f0ff ! important; } + +table.signOkKeyOk { + background-color: #33cc33 ! important; +} + +tr.signOkKeyOkH { + background-color: #40ff40 ! important; + color: #27ae60 ! important; + font-family: "Sans Serif" ! important; + font-size: 0px ! important; +} + +tr.signOkKeyOkB { background-color: #e8ffe8 ! important; } + +table.signOkKeyBad { + background-color: #cccc33 ! important; +} + +tr.signOkKeyBadH { + background-color: #ffff40 ! important; + color: #f67400 ! important; + font-family: "Sans Serif" ! important; + font-size: 0px ! important; +} + +tr.signOkKeyBadB { background-color: #ffffe8 ! important; } + +table.signWarn { + background-color: #cccc33 ! important; +} + +tr.signWarnH { + background-color: #ffff40 ! important; + color: #f67400 ! important; + font-family: "Sans Serif" ! important; + font-size: 0px ! important; +} + +tr.signWarnB { background-color: #ffffe8 ! important; } + +table.signErr { + background-color: #cc0000 ! important; +} + +tr.signErrH { + background-color: #ff0000 ! important; + color: #da4453 ! important; + font-family: "Sans Serif" ! important; + font-size: 0px ! important; +} + +tr.signErrB { background-color: #ffe0e0 ! important; } + +div.htmlWarn { + border: 2px solid #ff4040 ! important; + line-height: normal; +} + +div.header { + font-family: "Sans Serif" ! important; + font-size: 0px ! important; +} + +div.fancy.header > div { + background-color: #43ace8 ! important; + color: #ffffff ! important; + border: solid #221f1e 1px ! important; + line-height: normal; +} + +div.fancy.header > div a[href] { color: #ffffff ! important; } + +div.fancy.header > div a[href]:hover { text-decoration: underline ! important; } + +div.fancy.header > div.spamheader { + background-color: #cdcdcd ! important; + border-top: 0px ! important; + padding: 3px ! important; + color: black ! important; + font-weight: bold ! important; + font-size: smaller ! important; +} + +div.fancy.header > table.outer { + background-color: #d6d2d0 ! important; + color: #221f1e ! important; + border-bottom: solid #221f1e 1px ! important; + border-left: solid #221f1e 1px ! important; + border-right: solid #221f1e 1px ! important; +} + +div.senderpic{ + padding: 0px ! important; + font-size:0.8em ! important; + border:1px solid #b3aba7 ! important; + background-color:#d6d2d0 ! important; +} + +div.senderstatus{ + text-align:center ! important; +} + +div.quotelevel1 { + color: #008000 ! important; + font-style: italic ! important; +} + +div.quotelevel2 { + color: #007000 ! important; + font-style: italic ! important; +} + +div.quotelevel3 { + color: #006000 ! important; + font-style: italic ! important; +} + +div.deepquotelevel1 { + color: #008000 ! important; + font-style: italic ! important; +} + +div.deepquotelevel2 { + color: #007000 ! important; + font-style: italic ! important; +} + +div.deepquotelevel3 { + color: #006000 ! important; + font-style: italic ! important; +} + +blockquote { + margin: 4pt 0 4pt 0; + padding: 0 0 0 1em; + border-left: 2px solid #008000; + unicode-bidi: -webkit-plaintext +} + +blockquote blockquote { + margin: 4pt 0 4pt 0; + padding: 0 0 0 1em; + border-left: 2px solid #007000; + unicode-bidi: -webkit-plaintext +} + +blockquote blockquote blockquote { + margin: 4pt 0 4pt 0; + padding: 0 0 0 1em; + border-left: 2px solid #006000; + unicode-bidi: -webkit-plaintext +} + +blockquote blockquote blockquote blockquote { + margin: 4pt 0 4pt 0; + padding: 0 0 0 1em; + border-left: 2px solid #008000; + unicode-bidi: -webkit-plaintext +} + +blockquote blockquote blockquote blockquote blockquote { + margin: 4pt 0 4pt 0; + padding: 0 0 0 1em; + border-left: 2px solid #007000; + unicode-bidi: -webkit-plaintext +} + +blockquote blockquote blockquote blockquote blockquote blockquote { + margin: 4pt 0 4pt 0; + padding: 0 0 0 1em; + border-left: 2px solid #006000; + unicode-bidi: -webkit-plaintext +} + +blockquote blockquote blockquote blockquote blockquote blockquote blockquote { + margin: 4pt 0 4pt 0; + padding: 0 0 0 1em; + border-left: 2px solid #008000; + unicode-bidi: -webkit-plaintext +} + +blockquote blockquote blockquote blockquote blockquote blockquote blockquote blockquote { + margin: 4pt 0 4pt 0; + padding: 0 0 0 1em; + border-left: 2px solid #007000; + unicode-bidi: -webkit-plaintext +} + +blockquote blockquote blockquote blockquote blockquote blockquote blockquote blockquote blockquote { + margin: 4pt 0 4pt 0; + padding: 0 0 0 1em; + border-left: 2px solid #006000; + unicode-bidi: -webkit-plaintext +} + +.quotemarks{ + color:transparent; + font-size:0px; +} + +} +@media print { + +body { + font-family: "Sans Serif" ! important; + font-size: 9pt ! important; + color: #000000 ! important; + background-color: #ffffff ! important +} + +tr.textAtmH, +tr.signInProgressH, +tr.rfc822H, +tr.encrH, +tr.signOkKeyOkH, +tr.signOkKeyBadH, +tr.signWarnH, +tr.signErrH, +div.header { + font-family: "Sans Serif" ! important; + font-size: 9pt ! important; +} + +div.fancy.header > div { + background-color: #d6d2d0 ! important; + color: #221f1e ! important; + padding: 4px ! important; + border: solid #221f1e 1px ! important; + line-height: normal; +} + +div.fancy.header > div a[href] { color: #221f1e ! important; } + +div.fancy.header > table.outer{ + background-color: #d6d2d0 ! important; + color: #221f1e ! important; + border-bottom: solid #221f1e 1px ! important; + border-left: solid #221f1e 1px ! important; + border-right: solid #221f1e 1px ! important; +} + +div.spamheader { + display:none ! important; +} + +div.htmlWarn { + border: 2px solid #ffffff ! important; + line-height: normal; +} + +div.senderpic{ + font-size:0.8em ! important; + border:1px solid black ! important; + background-color:#d6d2d0 ! important; +} + +div.senderstatus{ + text-align:center ! important; +} + +div.noprint { + display:none ! important; +} + +blockquote { + margin: 4pt 0 4pt 0; + padding: 0 0 0 1em; + border-left: 2px solid #008000; + unicode-bidi: -webkit-plaintext +} + +blockquote blockquote { + margin: 4pt 0 4pt 0; + padding: 0 0 0 1em; + border-left: 2px solid #007000; + unicode-bidi: -webkit-plaintext +} + +blockquote blockquote blockquote { + margin: 4pt 0 4pt 0; + padding: 0 0 0 1em; + border-left: 2px solid #006000; + unicode-bidi: -webkit-plaintext +} + +blockquote blockquote blockquote blockquote { + margin: 4pt 0 4pt 0; + padding: 0 0 0 1em; + border-left: 2px solid #008000; + unicode-bidi: -webkit-plaintext +} + +blockquote blockquote blockquote blockquote blockquote { + margin: 4pt 0 4pt 0; + padding: 0 0 0 1em; + border-left: 2px solid #007000; + unicode-bidi: -webkit-plaintext +} + +blockquote blockquote blockquote blockquote blockquote blockquote { + margin: 4pt 0 4pt 0; + padding: 0 0 0 1em; + border-left: 2px solid #006000; + unicode-bidi: -webkit-plaintext +} + +blockquote blockquote blockquote blockquote blockquote blockquote blockquote { + margin: 4pt 0 4pt 0; + padding: 0 0 0 1em; + border-left: 2px solid #008000; + unicode-bidi: -webkit-plaintext +} + +blockquote blockquote blockquote blockquote blockquote blockquote blockquote blockquote { + margin: 4pt 0 4pt 0; + padding: 0 0 0 1em; + border-left: 2px solid #007000; + unicode-bidi: -webkit-plaintext +} + +blockquote blockquote blockquote blockquote blockquote blockquote blockquote blockquote blockquote { + margin: 4pt 0 4pt 0; + padding: 0 0 0 1em; + border-left: 2px solid #006000; + unicode-bidi: -webkit-plaintext +} + +.quotemarks{ + color:transparent; + font-size:0px; +} + +.quotemarksemptyline{ + color:transparent; + font-size:0px; + line-height: 12pt; +} + +} diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/no-content-type.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/no-content-type.mbox new file mode 100644 index 00000000..ad050d8c --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/no-content-type.mbox @@ -0,0 +1,7 @@ +From: hans@example.com +To: karl@example.com +Subject: Simple Mail Without Content-Type Header +Date: Sat, 15 May 2010 10:52:24 +0200 +MIME-Version: 1.0 + +asdfasdf \ No newline at end of file diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/no-content-type.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/no-content-type.mbox.html new file mode 100644 index 00000000..9e3eb752 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/no-content-type.mbox.html @@ -0,0 +1,14 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/no-content-type.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/no-content-type.mbox.tree new file mode 100644 index 00000000..c003ec97 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/no-content-type.mbox.tree @@ -0,0 +1,3 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encoded.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encoded.mbox new file mode 100644 index 00000000..168c8dc4 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encoded.mbox @@ -0,0 +1,33 @@ +Content-Type: text/plain; charset="us-ascii" +Content-Transfer-Encoding: 7bit + +-----BEGIN PGP MESSAGE----- +Version: GnuPG v2 + +owGdk31MlVUcx5G3jClvI1JH7GiOil0uYJATBW8FK6HkDtBJI93heQ6Xk8/L9Tnn +XExALDfJQaJutl4UzUoCIxDwos0XTLktqJaJkJE5QAU3yMKpkRqdc+GC/dsfz/bs +ec7v+/v+Pr/v2Tnbxyt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DdhS8zGgIrynIH +tjkf21tmXtZ8pOjj/a7xsahsEGKxLG4h+St9Oj9ace1kn1+vdWl06+nEvhPlOWnh +5OVrw1nzTv6+pjo3K9Vr3YFZeZmu6K1jA2OW7M96Bs85ChL23ck95Cx5/bfuHeX3 +wktCXYN1/fvWpxxIfyk2/pm0N4bCRyrfS8z13VPNMr6rckbuP1YS2rp0z27X/FEy +FPHm4OHHv7iXsuaPg5dpg6XWN9B/SG/81Bq8tv5WwMjFRVUZId6Rn+sL68uudls3 +z+vMvLwwrdw5t+Pb5ISuppDUVkvmme4nTahhwYX7setmpdxt29ZeO5MFPFK6Pep2 ++nlHdfFa78ZFpSMV/Q1n/wU= +=zzr4 +-----END PGP MESSAGE----- diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encoded.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encoded.mbox.html new file mode 100644 index 00000000..585bb4f0 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encoded.mbox.html @@ -0,0 +1,35 @@ + + + + +
+ +
+ + + + + + + + + + +
+ + + + + +
Not enough information to check signature validity. + Show Details +
+
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam viverra nec consectetur ante hendrerit. Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ut gravida lorem. Ut turpis felis, pulvinar a semper sed, adipiscing id dolor. Pellentesque auctor nisi id magna consequat sagittis. Curabitur dapibus enim sit amet elit pharetra tincidunt feugiat nisl imperdiet. Ut convallis libero in urna ultrices accumsan. Donec sed odio eros. Donec viverra mi quis quam pulvinar at malesuada arcu rhoncus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In rutrum accumsan ultricies. Mauris vitae nisi at sem facilisis semper ac in est.
+
+
End of signed message
+
+
+ + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encoded.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encoded.mbox.tree new file mode 100644 index 00000000..ea8223fd --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encoded.mbox.tree @@ -0,0 +1,4 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::TextMessagePart + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::SignedMessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted+signed.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted+signed.mbox new file mode 100644 index 00000000..fbe5ce7f --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted+signed.mbox @@ -0,0 +1,46 @@ +From test@kolab.org Wed, 08 Sep 2010 17:02:52 +0200 +From: OpenPGP Test +To: test@kolab.org +Subject: OpenPGP encrypted +Date: Wed, 08 Sep 2010 17:02:52 +0200 +User-Agent: KMail/4.6 pre (Linux/2.6.34-rc2-2-default; KDE/4.5.60; x86_64; ; ) +MIME-Version: 1.0 +Content-Type: multipart/encrypted; boundary="nextPart1357031.ppLHckZtsp"; protocol="application/pgp-encrypted" +Content-Transfer-Encoding: 7Bit + + +--nextPart1357031.ppLHckZtsp +Content-Type: application/pgp-encrypted +Content-Disposition: attachment + +Version: 1 +--nextPart1357031.ppLHckZtsp +Content-Type: application/octet-stream +Content-Disposition: inline; filename="msg.asc" + +-----BEGIN PGP MESSAGE----- +Version: GnuPG v2 + +hQEMAwzOQ1qnzNo7AQgAkQI925mOOybpzcGcjUE7jmfMVoUvJW6Br9Zx9UEtko5H +fdmnrrUhFDyhBdwcg2E6AChipNcJjZhdX17lNAO0kI2IoPJAEkX9lyhjoiVEH/M8 +xmJEKFRejYzefx0S8esKyqqtfAmMKfsA5HmKRY8iD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Ztsp-- diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted+signed.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted+signed.mbox.html new file mode 100644 index 00000000..54c58b85 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted+signed.mbox.html @@ -0,0 +1,52 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted+signed.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted+signed.mbox.tree new file mode 100644 index 00000000..7d5bbeb7 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted+signed.mbox.tree @@ -0,0 +1,5 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::SignedMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-applemail.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-applemail.mbox new file mode 100644 index 00000000..f5d083ff --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-applemail.mbox @@ -0,0 +1,52 @@ +Received: from konqi +From: "Konqui" +To: "Bird" +Subject: gpg problem 1/2 +Date: Tue, 22 Mar 2016 17:09:18 +0100 +Message-ID: <123456@example.org> +Accept-Language: de-DE, en-US +Content-Language: en-US +Content-Type: multipart/mixed; + boundary="_003_55514CDCA78D430384C5F0810DF10C7Adsmpgde_" +MIME-Version: 1.0 + + +--_003_55514CDCA78D430384C5F0810DF10C7Adsmpgde_ +Content-Type: text/plain; charset="us-ascii" + + +--_003_55514CDCA78D430384C5F0810DF10C7Adsmpgde_ +Content-Type: application/pgp-encrypted; + name="PGPMIME Versions Identification" +Content-Description: PGP/MIME Versions Identification +Content-Disposition: attachment; filename="PGPMIME Versions Identification"; + size=77; creation-date="Tue, 22 Mar 2016 16:09:18 GMT"; + modification-date="Tue, 22 Mar 2016 16:09:18 GMT" +Content-ID: +Content-Transfer-Encoding: base64 + +VmVyc2lvbjogMQ0NCg== + +--_003_55514CDCA78D430384C5F0810DF10C7Adsmpgde_ +Content-Type: application/octet-stream; name="encrypted.asc" +Content-Description: OpenPGP encrypted message.asc +Content-Disposition: attachment; filename="encrypted.asc"; size=872; + creation-date="Tue, 22 Mar 2016 16:09:18 GMT"; + modification-date="Tue, 22 Mar 2016 16:09:18 GMT" +Content-ID: <58A712E65AB1824AB726904A6449178F@example.org> +Content-Transfer-Encoding: base64 + +LS0tLS1CRUdJTiBQR1AgTUVTU0FHRS0tLS0tClZlcnNpb246IEdudVBHIHYxCkNvbW1lbnQ6IFVz +aW5nIEdudVBHIHdpdGggSWNlZG92ZSAtIGh0dHA6Ly93d3cuZW5pZ21haWwubmV0LwoKaEl3REdK +bHRoVFQ3b3EwQkEvOU50TExYYmlJSlZTNnBPeW53RWVTem5yUUs3a1lWbGE4Uk00My8vSkVDQ2tH +SgphekVhU0J6bmFiQnY2ZXBhRm1RdFZITE1YbENiWm5NbVc5bG95cVBCZk1vQW1zNmtLS0JkRy9q +cWh1czg5aVhFCitzZVhuZ0MyMzNWYS9nWk1iMkR4T3FJb2tWTmZqOXRwUjd4UTh3Uy9qSFREaUxO +YzFHT1FDN2t1NDJ6MmJOTEEKSVFGUkQvcWJCRno4OWhVNHdQNGNZb0F5c09uRURvakZyc3JuQ2lk +VEhKT0pybmRNNlBQVXRIL2pRQ3lmci9FRwoydFNwSndZS3ZtVDZseTN5cWFHTEJ0UlBJeGl2K2RN +ZSs3eXcwdDQwcWJqdnZhVEdhdkVyRUJKRUtYNWVXYlROCi9zamFqSHBVSHFzNlNJaU1oZUg5ZHIr +V2Z6Rk9OdFZiUEVnR1JtT0VSaGxnVGwvbkxvODZBWnBqSnJvSUdLSkoKdFRIQ2NvUUdBV0crTjd3 +ckNFMVJ4UjBra01zNG5Sb3pqMFRMdTZaeVhNcytIMDYzTWV3VFBOeE5BaVFUMU5iaQp1ZEtXbWZM +Qmx4bjA2cCtKRHpVS3hqOFBGd09iZGJ4VHZBQ3piQXZCWTFhSE1RPT0KPW1MbDMKLS0tLS1FTkQg +UEdQIE1FU1NBR0UtLS0tLQoK + +--_003_55514CDCA78D430384C5F0810DF10C7Adsmpgde_-- diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-applemail.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-applemail.mbox.html new file mode 100644 index 00000000..ca8d7fbb --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-applemail.mbox.html @@ -0,0 +1,39 @@ + + + + +
+ + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-applemail.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-applemail.mbox.tree new file mode 100644 index 00000000..8ef3df2d --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-applemail.mbox.tree @@ -0,0 +1,7 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox new file mode 100644 index 00000000..2d9726ea --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox @@ -0,0 +1,115 @@ +From test@kolab.org Fri May 01 15:12:47 2015 +From: testkey +To: you@you.com +Subject: enc & non enc attachment +Date: Fri, 01 May 2015 17:12:47 +0200 +Message-ID: <13897561.XENKdJMSlR@tabin.local> +X-KMail-Identity: 1197256126 +User-Agent: KMail/4.13.0.1 (Linux/3.19.1-towo.1-siduction-amd64; KDE/4.14.2; x86_64; git-cd33034; 2015-04-11) +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="nextPart1939768.sIoLGH0PD8" +Content-Transfer-Encoding: 7Bit + +This is a multi-part message in MIME format. + +--nextPart1939768.sIoLGH0PD8 +Content-Type: multipart/encrypted; boundary="nextPart2814166.CHKktCGlQ3"; protocol="application/pgp-encrypted" + + +--nextPart2814166.CHKktCGlQ3 +Content-Type: application/pgp-encrypted +Content-Disposition: attachment +Content-Transfer-Encoding: 7Bit + +Version: 1 +--nextPart2814166.CHKktCGlQ3 +Content-Type: application/octet-stream +Content-Disposition: inline; filename="msg.asc" +Content-Transfer-Encoding: 7Bit + +-----BEGIN PGP MESSAGE----- +Version: GnuPG v2 + +hIwDGJlthTT7oq0BA/9cXFQ6mN9Vxnc2B9M10odS3/6z1tsIY9oJdsiOjpfxqapX +P7nOzR/jNWdFQanXoG1SjAcY2FeZEN0c3SkxEM6R5QVF1vMh/Xsni1clI+peZyVT +Z4OSU74YCfYLg+cgDnPCF3kyNPVe6Z1pnfWOCZNCG3rpApw6UVLN63ScWC6eQIUB +DAMMzkNap8zaOwEIANKHn1svvj+hBOIZYf8R+q2Bw7cd4xEChiJ7uQLnD98j0Fh1 +85v7/8JbZx6rEDDenPp1mCciDodb0aCmi0XLuzJz2ANGTVflfq+ZA+v1pwLksWCs +0YcHLEjOJzjr3KKmvu6wqnun5J2yV69K3OW3qTTGhNvcYZulqQ617pPa48+sFCgh +nM8TMAD0ElVEwmMtrS3AWoJz52Af+R3YzpAnX8NzV317/JG+b6e2ksl3tR7TWp1q +2FOqC1sXAxuv+DIz4GgRfaK1+xYr2ckkg+H/3HJqa5LmJ7rGCyv+Epfp9u+OvdBG +PBvuCtO3tm0crmnttMw57Gy35BKutRf/8MpBj/nS6QFX0t7XOLeL4Me7/a2H20wz +HZsuRGDXMCh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Rlf428Co6WT7rTHjGM09tqz826fTOXA== +=6Eu9 +-----END PGP MESSAGE----- + +--nextPart2814166.CHKktCGlQ3-- + +--nextPart1939768.sIoLGH0PD8 +Content-Disposition: attachment; filename="image.png" +Content-Transfer-Encoding: base64 +Content-Type: image/png; name="image.png" + +iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAlwSFlzAAAb +rwAAG68BXhqRHAAAAAd0SU1FB9gHFg8aNG8uqeIAAAAGYktHRAD/AP8A/6C9p5MAAAkqSURBVHja +5VV7cFTVGf/OPefeu3fv3t1NdhMSCHkKASEpyEsaGwalWEWntLV1Wu0fdOxAx9Iq0xntAwac6ehY +p+rwKLbjjLRFh9JadURKRGgFQTTECCYQE9nNgzzYZDe7m33d1+l3tpOOU61T2tF/+s1s7pzn9/t+ +v993Av/3QT6FO6WdO/d+M55Il8rMOdrT0x3Zt++3+c8EgM/nozseeviJiYmpe1zOQdM8BOOCIku/ +lIj1VrQ/0r9n9+78xwLgeAA3w4fHXV1d5Omnn6aapumlJSVVqalUJJvJZRdcu0RSfZQsaW7mjfPm +cbF9+/btEIlEaq6Z03whXyhIjDFuGIZEKSP5fMFRVcVNT2Vf0jzsmMxYGtel9rff/vM/M8bjcZpM +Jp1XX32VNDc3e7ovRP3JyZGVNdXVd1FGGwKBQEM8njiWTKV36IHgEACwibGx62LjU/cBd01Zljoc +p9DHmLbHsmyK1UuKooJt24IMcLE+y3L45eEYLS8LgWH4YXR0bAPZtGmTVFvfoBZMEzKpFKmqqmqp +qane4DhOteH3L1FkWZVlGSzLAtd1Oe4773C4LxoZvDWXh82OY2MtwAuFvCvSyDIFXdelYDDIvF4d +xPzA0AgXFStMcWPxBPGoKvXpPh6JDG5hK1Zcv1H36Xc6tsMs21EMQ69CLSts2wGkDygTyW2CP8gX +TKLIyvx0OrdDUXyLKXVUkdSne4QKtFAwuWmabjAYkDyqAgG/jziORh1EKaonkkQt2yRZRC5JHEGn +L7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WD8 +YjF5MWJ9kcT757qenR7vf4bDoqWwHCvUUfPNsQQMWSZAZTlsw7nxYQQTcuDrjgQuPn7z/D7YivNt +nPPfEDzwqcU75/j6SD/f8uG5vXs5dL7Hjb+d4gp8mnF8nAOabjcac+OBAxyuNiT4HyNwGZYgu0RW +IDt/Icz4zAC0tXE4183rQ6XwU9uBXgLQ5Teg7GIv1+EqgsF/GY4DtCQALZMp2ITttmqoHzpWr756 +o/0d59+Lh3Y1HHcAAAAASUVORK5CYII= + +--nextPart1939768.sIoLGH0PD8-- + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.html new file mode 100644 index 00000000..092a3440 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.html @@ -0,0 +1,77 @@ + + + + +
+ + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.tree new file mode 100644 index 00000000..473f0b10 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment-and-non-encrypted-attachment.mbox.tree @@ -0,0 +1,11 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::SignedMessagePart + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::AttachmentMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::AttachmentMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment.mbox new file mode 100644 index 00000000..4204fb0b --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment.mbox @@ -0,0 +1,57 @@ +From test@kolab.org Fri May 01 15:13:18 2015 +From: testkey +To: you@you.com +Subject: enc attachment +Date: Fri, 01 May 2015 17:13:18 +0200 +Message-ID: <2401407.XhOc2XYoOt@tabin.local> +X-KMail-Identity: 1197256126 +User-Agent: KMail/4.13.0.1 (Linux/3.19.1-towo.1-siduction-amd64; KDE/4.14.2; x86_64; git-cd33034; 2015-04-11) +MIME-Version: 1.0 +Content-Type: multipart/encrypted; boundary="nextPart4793536.cjk9hKXLQ5"; protocol="application/pgp-encrypted" + + +--nextPart4793536.cjk9hKXLQ5 +Content-Type: application/pgp-encrypted +Content-Disposition: attachment +Content-Transfer-Encoding: 7Bit + +Version: 1 +--nextPart4793536.cjk9hKXLQ5 +Content-Type: application/octet-stream +Content-Disposition: inline; filename="msg.asc" +Content-Transfer-Encoding: 7Bit + +-----BEGIN PGP MESSAGE----- +Version: GnuPG v2 + +hIwDGJlthTT7oq0BBACLMnR5Mln6JGCccvqZCgM3qUkFWZ7a33b7Nl2g5lSOLX6q +dlGOr/0jAuqdkRwCDTom3hsrH2vf1kARTSST+5cewngS2CgBTAwwc8JymEagTkKf +VK/tTnM6G7puMVkwuafpuRggyJAUYvjktgUKOUaXtuxX71g0NagAFQGqlvGuq4UB +DAMMzkNap8zaOwEH+wWSs5xdV1x37T11EnUvkhoOMu+uId2U7NEx2JdQ/FGJZdti +mtqfM9GKTtQlGVcn3ISH7Wmrw3x0bsOLuW7oxkU4xIS3tVvibxaaWdmponN5TUai +Dr4LCTEmG7+jLNopF6V4zPmpQ9YxMwQOm8ITml+auNOg9EtHxavwr3Xd1hOYA92N +1bkOiHzmb9hQtUy1GfRRk91tRqtRPoaamczLxWV9yROFDRNuSSbZ8oBU/K4YgSTL +D+/FhCt6MxV0DQzp+UCSL7ZsMx+ldPnZ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flBe3jvIc0lm +NyWQ1WnMkP83fWm/+YqrLLf+tTQtievRPeS1Dd/7v9yqUWEmQ0pUOj3MNf9Ej2KI +vu5ap7fHIevcBn42BPwQgSnp4YmXEY0ir5Ccwogusnt7QliNSRmkN6Jap4AF +=AVJ4 +-----END PGP MESSAGE----- + +--nextPart4793536.cjk9hKXLQ5-- + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment.mbox.html new file mode 100644 index 00000000..2b266b02 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment.mbox.html @@ -0,0 +1,66 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment.mbox.tree new file mode 100644 index 00000000..f433fd45 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-attachment.mbox.tree @@ -0,0 +1,8 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::SignedMessagePart + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::AttachmentMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-enigmail1.6.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-enigmail1.6.mbox new file mode 100644 index 00000000..9afd17e3 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-enigmail1.6.mbox @@ -0,0 +1,48 @@ +From you@you.com Sat, 29 Mar 2014 15:04:21 +0100 +FCC: imap://hefee%40netzguerilla.net@mail.netzguerilla.net/Sent +X-Identity-Key: id1 +X-Account-Key: account4 +Message-ID: <5336D2E5.6010602@you.com> +Date: Sat, 29 Mar 2014 15:04:21 +0100 +From: you +X-Mozilla-Draft-Info: internal/draft; vcard=0; receipt=0; DSN=0; uuencode=0 +User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.4.0 +MIME-Version: 1.0 +To: test@kolab.com +Subject: test +X-Enigmail-Version: 1.6 +X-Enigmail-Draft-Status: 515 +X-Enigmail-Draft-Status: 739 +Content-Type: multipart/encrypted; + protocol="application/pgp-encrypted"; + boundary="23VWJ4jAoB40SD17lh6TOBXK3fQSEGNu5" + +This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156) +--23VWJ4jAoB40SD17lh6TOBXK3fQSEGNu5 +Content-Type: application/pgp-encrypted +Content-Description: PGP/MIME version identification + +Version: 1 + +--23VWJ4jAoB40SD17lh6TOBXK3fQSEGNu5 +Content-Type: application/octet-stream; name="encrypted.asc" +Content-Description: OpenPGP encrypted message +Content-Disposition: inline; filename="encrypted.asc" + +-----BEGIN PGP MESSAGE----- +Version: GnuPG v1 +Comment: Using GnuPG with Icedove - http://www.enigmail.net/ + +hIwDGJlthTT7oq0BA/9NtLLXbiIJVS6pOynwEeSznrQK7kYVla8RM43//JECCkGJ +azEaSBznabBv6epaFmQtVHLMXlCbZnMmW9loyqPBfMoAms6kKKBdG/jqhus89iXE ++seXngC233Va/gZMb2DxOqIokVNfj9tpR7xQ8wS/jHTDiLNc1GOQC7ku42z2bNLA +IQFRD/qbBFz89hU4wP4cYoAysOnEDojFrsrnCidTHJOJrndM6PPUtH/jQCyfr/EG +2tSpJwYKvmT6ly3yqaGLBtRPIxiv+dMe+7yw0t40qbjvvaTGavErEBJEKX5eWbTN +/sjajHpUHqs6SIiMheH9dr+WfzFONtVbPEgGRmOERhlgTl/nLo86AZpjJroIGKJJ +tTHCcoQGAWG+N7wrCE1RxR0kkMs4nRozj0TLu6ZyXMs+H063MewTPNxNAiQT1Nbi +udKWmfLBlxn06p+JDzUKxj8PFwObdbxTvACzbAvBY1aHMQ== +=mLl3 +-----END PGP MESSAGE----- + +--23VWJ4jAoB40SD17lh6TOBXK3fQSEGNu5-- + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-enigmail1.6.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-enigmail1.6.mbox.html new file mode 100644 index 00000000..09d904bb --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-enigmail1.6.mbox.html @@ -0,0 +1,34 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-enigmail1.6.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-enigmail1.6.mbox.tree new file mode 100644 index 00000000..009ba99a --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-enigmail1.6.mbox.tree @@ -0,0 +1,5 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-noData.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-noData.mbox new file mode 100644 index 00000000..c4f14226 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-noData.mbox @@ -0,0 +1,17 @@ +From test@kolab.org Wed, 08 Sep 2010 17:02:52 +0200 +From: OpenPGP Test +To: test@kolab.org +Subject: OpenPGP encrypted +Date: Wed, 08 Sep 2010 17:02:52 +0200 +User-Agent: KMail/4.6 pre (Linux/2.6.34-rc2-2-default; KDE/4.5.60; x86_64; ; ) +MIME-Version: 1.0 +Content-Type: multipart/encrypted; boundary="nextPart1357031.ppLHckZtsp"; protocol="application/pgp-encrypted" +Content-Transfer-Encoding: 7Bit + +--nextPart1357031.ppLHckZtsp +Content-Type: application/pgp-encrypted +Content-Disposition: attachment + +Version: 1 + +--nextPart1357031.ppLHckZtsp-- diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-noData.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-noData.mbox.html new file mode 100644 index 00000000..52196784 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-noData.mbox.html @@ -0,0 +1,19 @@ + + + + +
+ + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-noData.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-noData.mbox.tree new file mode 100644 index 00000000..79a20c8d --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-noData.mbox.tree @@ -0,0 +1,4 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::AttachmentMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-non-encrypted-attachment.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-non-encrypted-attachment.mbox new file mode 100644 index 00000000..2957bf3c --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-non-encrypted-attachment.mbox @@ -0,0 +1,114 @@ +From test@kolab.org Fri May 01 15:13:51 2015 +From: testkey +To: you@you.com +Subject: non enc attachment +Date: Fri, 01 May 2015 17:13:51 +0200 +Message-ID: <20157069.RcaNBhWVXx@tabin.local> +X-KMail-Identity: 1197256126 +User-Agent: KMail/4.13.0.1 (Linux/3.19.1-towo.1-siduction-amd64; KDE/4.14.2; x86_64; git-cd33034; 2015-04-11) +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="nextPart1612969.Xqz3IcFXZ3" +Content-Transfer-Encoding: 7Bit + +This is a multi-part message in MIME format. + +--nextPart1612969.Xqz3IcFXZ3 +Content-Type: multipart/encrypted; boundary="nextPart2213427.hvfAsaxZ1O"; protocol="application/pgp-encrypted" + + +--nextPart2213427.hvfAsaxZ1O +Content-Type: application/pgp-encrypted +Content-Disposition: attachment +Content-Transfer-Encoding: 7Bit + +Version: 1 +--nextPart2213427.hvfAsaxZ1O +Content-Type: application/octet-stream +Content-Disposition: inline; filename="msg.asc" +Content-Transfer-Encoding: 7Bit + +-----BEGIN PGP MESSAGE----- +Version: GnuPG v2 + +hIwDGJlthTT7oq0BBACdvp3PFrRx6vxZhxt06LqyaO7+SWBbVUr7GOa3QaYCCBm+ +/KTUZEfhPuGVcsVpJKZbPsUKVhYfvYpDAsZu3TehmKflobWAV/cCIK2BkQB744pd +oaCtTj7pmCO05Zt5Uo/tXbrgceuW+/huwn2DO2fk4MUBsluH3fMbvccZJnR3yoUB +DAMMzkNap8zaOwEIAOTKI8Bh3NhfuJdWDsjv+UT6E4kf/zg3D95mJ+3gK8kHFXdd +YyEKaMsYx64kSwm1KcjsJ4gWykJlB34YDDfcIrnbgO2QRss9GhgOcUtLr0KNcY+0 +OJ4sbNmI8I3XssMb4rHtDrcXc0ODd0v/C/Lw2VfUdN+bBY4EetG096OPiZ4R41kF +Rj95nhO8tpoJx9VltegCdZI2AxtykOYvUaLFyYqCoKMmQwqGjdaUv1CeMnxUIPsn +A/x6TQ0AjpZ5IfMqO7QmOv3ACFo5/Ur93NauOK6szg/zdih9OxUL0Qid3nZQQwqA +J9ZChTcUgdjQo8EjpWLy0oXR9uLSHcLwRo3OdRzS6QEz7Dus6hmpEal3zTZFj2NR +mK38tpp+eWhzSAFAx8tyImz8SU2N2o7xQHlEdlWYGeIQg0embMnmMv6WJVWhYahb +x5OTfHCGwHFsLhZDmtaNhAVMlYdqxKXoR45H9cmGNPpU5kN5Ckjr6I+I51cfgAOE +1vF54jYHXd1btfGrwAyKWBfFVQFPWjuIUdsEl8zDjNTmcCCbA77tEGohSqDi+WWL +LyYw5g/uwwZ+5OzeRdjAJ+9xtJ+WXhnDUffG8GgGgZWBQD+S2Ix4lZ2NcAeyLPt/ +cXeDHkPUXj7cjm0hl7SvBKzR6X4EEWO/hh19mxngd4+e19q6Qm4K2QMfTwQQyNED +whBkRXhcXcRxWlb/ICwFDIgxKLJko5HVTknBJDllNdm6l2C4Y9/IY2imqXni8xZX +zQfAkDOBlfouUrHbPuBCRdCLmp7BgbanCaJDvgYGBvXEgjMKpV3bezTfm4Ugwiyk +dJfMu/4XftZy7XqoFuDheNXuQ5JobpvVDaiTQ0EWHpHeX3TZ0xa8i1FO6ANLakUp +aVFWzYl91bxbNHIcPh278neyi+LNWWT6TvkCwcbUYUfuIySOwfSUJAHDIJOx50Ha +If0fNQDtF4o9mDFwXDwVf8e2zx5NjheqgYX/qIWjFE2cCCkUM4UkNrkYBOiwnh9F +RJz4M6wKPhZT34MBlTKgwDbypDp+XYnM2HunzIDXCAigYsD/AuLNeFwsIPiXWJ47 +oXamEJxyqS9G0t/iy7+1mbNiFct7pvHt6QUKZ9aXSXj3MkQuWjjVNvMz6KocTSyL +AeWQNYuvA5NkyZOA5+VU1ma3wn7IAXYkgw+OMvcz9VNevXNg956ZnGbb47Fqppp+ +MjK2ptM1UzIEnHxXtq3KFrXG1AzzhyFnKIjsiDpFTlMGTT9pRGnK8zyYXYPEgpwW +874A5auLFOvhwPSNMhMai+XSoE3P+zZDqhXMYU8c49O+SeOtISg3Iy5tXuIPlIps +7k0KA60hPulMYBQLtZ/yDO/gXhkeWaw= +=EJZ6 +-----END PGP MESSAGE----- + +--nextPart2213427.hvfAsaxZ1O-- + +--nextPart1612969.Xqz3IcFXZ3 +Content-Disposition: attachment; filename="image.png" +Content-Transfer-Encoding: base64 +Content-Type: image/png; name="image.png" + +iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAlwSFlzAAAb +rwAAG68BXhqRHAAAAAd0SU1FB9gHFg8aNG8uqeIAAAAGYktHRAD/AP8A/6C9p5MAAAkqSURBVHja +5VV7cFTVGf/OPefeu3fv3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B3c8uOW49SdHX1rbcePhoz3B7feuqlt5oZtBTv+ioSdXc7q3fHQaM +fwtg6Vd/dEvn8Qssnzg/0Ns56jRcO6Nw4d1Af+/RH0/cdv+O/fRK7KnmBXPWGsQeDPhK9oWC6hdd +R3pdUcg88Tx7U7Ej1y1qMjreGwjt/cnaF2YtvCXQe7bzxLkj+/sunT0Ry00OwHRI8DERLqeNmqGV +JZJVC6Yu7UxMOfLFlV9pWQcYp57/013rb1u9ua29b0Ch4bsl4tKLY5P1sgxNJzsHDj136KzS3NTk +9mTNusPvXJLrbnjUe/b16FDfsZ/3xC8d4/HoCQ4Anwzg91vWPL7+3pvvDM806sTY4IVyMxfrojO3 +BVubbyJMhnVVM3y+l187/nChIJ2ZpSs9hMD4qC6t6x6+0gkAoRC33/Sb8RdmXj9nzvWraivhP47g +AyHxKb1mfWkRYHCjMb30nafeeWzerU9963w3L3/02c4f7D0y0NXTx3f3D/JTb7bzxpeODu55+PGT +yy5F+ZmeD/iSrh5efeJd/hGZP5GBux+6cysY3w7H+16IVy65V6trnn3P9JqVjQ3JuSsdHhWW6hIL +NuhyUpJgEF/ofSVBeLBuVtVjd3y55SHXhQ8UBht0DR4r98Fs+IRg/zrxlz2/2A7p5yYBY93Gu+4f +H5xojLwOxfjd/WufOHhQ/IcD7eYVC5YyCjFMfkVV4NpMFvpTachoZeDaNryLnliOczsUCv1XBWD8 +YjF5MWJ9kcT757qenR7vf4bDoqWwHCvUUfPNsQQMWSZAZTlsw7nxYQQTcuDrjgQuPn7z/D7YivNt +nPPfEDzwqcU75/j6SD/f8uG5vXs5dL7Hjb+d4gp8mnF8nAOabjcac+OBAxyuNiT4HyNwGZYgu0RW +IDt/Icz4zAC0tXE4183rQ6XwU9uBXgLQ5Teg7GIv1+EqgsF/GY4DtCQALZMp2ITttmqoHzpWr756 +o/0d59+Lh3Y1HHcAAAAASUVORK5CYII= + +--nextPart1612969.Xqz3IcFXZ3-- + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-non-encrypted-attachment.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-non-encrypted-attachment.mbox.html new file mode 100644 index 00000000..e20a9568 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-non-encrypted-attachment.mbox.html @@ -0,0 +1,69 @@ + + + + +
+ + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-non-encrypted-attachment.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-non-encrypted-attachment.mbox.tree new file mode 100644 index 00000000..c2a6ad01 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-non-encrypted-attachment.mbox.tree @@ -0,0 +1,9 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::SignedMessagePart + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::AttachmentMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-partially-signed-attachments.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-partially-signed-attachments.mbox new file mode 100644 index 00000000..222b5936 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-partially-signed-attachments.mbox @@ -0,0 +1,91 @@ +From: firstname.lastname@example.com +To: test@kolab.org +Subject: OpenPGP encrypted one signed and one unsigned attachment +Date: Sun, 30 Aug 2015 12:08:40 +0200 +Message-ID: <1737262.ESByPkoaL9@vkpc5> +X-KMail-Identity: 402312391 +X-KMail-Dictionary: en_US +User-Agent: KMail/5.0.42 pre (Linux/3.16.6-2-desktop; KDE/5.14.0; x86_64; ; ) +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="nextPart2760349.k2GQmrcl5a" +Content-Transfer-Encoding: 7Bit + +This is a multi-part message in MIME format. + +--nextPart2760349.k2GQmrcl5a +Content-Type: multipart/encrypted; boundary="nextPart2260160.XvshVD34ka"; protocol="application/pgp-encrypted" + +--nextPart2260160.XvshVD34ka +Content-Type: application/pgp-encrypted +Content-Disposition: attachment +Content-Transfer-Encoding: 7Bit + +Version: 1 +--nextPart2260160.XvshVD34ka +Content-Type: application/octet-stream +Content-Disposition: inline; filename="msg.asc" +Content-Transfer-Encoding: 7Bit + +-----BEGIN PGP MESSAGE----- +Version: GnuPG v2 + +hQEMAwzOQ1qnzNo7AQgAooa+Peu1t5aiX4WvssEnRlapkr62/49/Dbz5assvshdr +o9zOC+89Qr5P/ea+tC1MO7ek/DfyL9C4EzOMp/r08GeInLqWMc9qLZO//YaT2JUp +0IZFbpUQ4C2zjXMRuy/PMrltHuCfsvhvHX1YAHp/xjRsKpQoE3mSDzz5sc8/Hj9n +2eoKoCEW1rgt2qHtV4DD6lvUPo42LMZclJ9GqfoD7WLoEH9ebRLhXr3D00j6xBfy +//nooAhzQSW8b7GZth4Qc7DKAZMhuEly/kp07nhuPd1fMJDEAB/zh9EYlgnn3STb +MCdtFs6kMC24uA2eDCH330Bn9OzzWnsVU9ae4XiKnNLpAeactSFRKKvGytBQaloq +Gvn1+D0Xmw6OsSmRJ84DzKqG4E6bzE+XhMEMnLlqDvZDsOtU/sCGvMK0MM3y5B7M +ONqWLN3ng3zrGPec5gqfvnWgKpANUrbJkzS8LNjv4hwoKh0tFpghWQiefG0Z9Hw1 +UaYbFwvaFgXcm72oBkynDCleWjQ2vnDE4P38PldqZbAW/Pw1q6Yq8m9MhS1VpbI5 +WBjuRQhgQvMG0LY0gR/3Qor5tX9ASllWnPfWYVuOiSOAe5Hsp7BmELXkWftHii7k +YW0Qim7jleDaY1MGfFr0vrO/PiYxGTb+4IUyUgEBYEpxa9ozUoeftF6JbHPuEZI0 +ENX8aIVJ9FnpssrR5HlpXieF12ec9ZFeV7mAwcucJ3RXuDcQHQTHgEbfnzTsaEpL +Hxs+6euOCJXhKOYVrsAlB4IxK0OQm4XHiZ7WBp5Jp7rlSHltdxFpSnHIfqngyCA4 +L+c/gsUEVbNI++iOOhOKVT47XIf+s/xa1Y4XghGbHIA3/pQphYo4U5dTeLoX0OWI +64tPxliQTKuJ+NAv9Km2bDgvlvn83jsc94THi5u+fIdDEGp7pgoQNXR69Lkz1bsA +Hh9xqKzVloHu4SsT3OGX+bfTO3jUh8ieU/4tflZMrJ9RkEfE08PzTnopT08FppFx +QWpHv/fwyJf6Cw1IevM5pVLAShg0sbCPF/xsYTjSyWNib1wFtxkmv5MToCFwkxi5 +b1yT23BNlV5RV6wcjmrum7p2fMwPjbt8X6z+pgUtkD7zImBWeYddMjgSjOFuFEjF +gpfVoV3OIvMPZMe2jqWsjnjujHJr2z5IZn3A7WI0b4SIDP0sGwsTBiogKqcBNWpn +O4MKUq9JwC0K/MY7yS1MCLoHfwU18z19Es/flaAgwtXk8IWIcjkkumAwNl+y8Q+I ++8AFGdiXTKld9QVwCKnMS3QivHPuFNL8rfcWKsr1nOhOEhaO+zD94eOOiCbwiXGr +E6WsewNCVQUN4bxAXl2vRi+9WRctLy7bsuIL5dgUz0CMYkQ+dDmrBflD0nyC +=TGNA +-----END PGP MESSAGE----- + +--nextPart2260160.XvshVD34ka-- + +--nextPart2760349.k2GQmrcl5a +Content-Type: multipart/encrypted; boundary="nextPart22530242.iRl14SoP0Q"; protocol="application/pgp-encrypted" + +--nextPart22530242.iRl14SoP0Q +Content-Type: application/pgp-encrypted +Content-Disposition: attachment +Content-Transfer-Encoding: 7Bit + +Version: 1 +--nextPart22530242.iRl14SoP0Q +Content-Type: application/octet-stream +Content-Disposition: inline; filename="msg.asc" +Content-Transfer-Encoding: 7Bit + +-----BEGIN PGP MESSAGE----- +Version: GnuPG v2 + +hQEMAwzOQ1qnzNo7AQgAtA94bBRwgpo64zcyh+4dzt0Pr2pmNjiS4ZX+a/xzYCmD +oS1a26s/LVZH+aJYC13l1kEu+6YjKn+ruQvMfhihOxglHBLjmUO17TPFC05AReSn +amMqPbgS6mOwhlBJHrBa/SVwkxmbMaNBUJ/KxRXFtTW/V4pPWImRvI9mnmpo8fHy +ZLvVAI3hGe7vPG5Vbdi5/Iu/JzqwlglVsP82gYpLlx7HhWGF4gmTGc6YBwFtzEvS +eqFtKRDqN60bo4HnNLOEnMaWlYPTpt3QibLWWIbtpA1Gb0Q/1NvDnn3Lyj8H+0WV +8H6Ks9/cvAuoAMOad6y4gDJb+K/AS7Ha+08/3lMYG9LAAgGe8Qocxg1W3ha1o0Ph +YSfV2ooebsLiHjwspjYpsX5ijnRj6uNGp5Dt28EIo1ANF+oDiSKEwAMGPBtcnqaO +FWXy39dP3VXE73nsO+dyTidaATFBlYg+IpPTDSFTgsk7XDV973EpdXvOkBEp/vBv +EZknuZFOkS0v5QHk9Y/hhlSLACTIEWQpBiFGOwUVSZFXLEY5zQNTbQdRbz3ZYcE9 +mIFzD9Ujw6tIJIOFazhwr9SxxyeaAygWeg4ifmmdhAsmFYum +=WsAv +-----END PGP MESSAGE----- + +--nextPart22530242.iRl14SoP0Q-- + +--nextPart2760349.k2GQmrcl5a-- diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-partially-signed-attachments.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-partially-signed-attachments.mbox.html new file mode 100644 index 00000000..c0b9d79e --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-partially-signed-attachments.mbox.html @@ -0,0 +1,99 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-partially-signed-attachments.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-partially-signed-attachments.mbox.tree new file mode 100644 index 00000000..5cb83749 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-partially-signed-attachments.mbox.tree @@ -0,0 +1,12 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::SignedMessagePart + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::AttachmentMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-two-attachments.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-two-attachments.mbox new file mode 100644 index 00000000..c53e0916 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-two-attachments.mbox @@ -0,0 +1,42 @@ +From: firstname.lastname@example.com +To: test@kolab.org +Subject: OpenPGP encrypted with 2 text attachments +Date: Sun, 30 Aug 2015 12:05:17 +0200 +Message-ID: <1505824.VT0nqpAGu0@vkpc5> +X-KMail-Identity: 402312391 +X-KMail-Dictionary: en_US +User-Agent: KMail/5.0.42 pre (Linux/3.16.6-2-desktop; KDE/5.14.0; x86_64; ; ) +MIME-Version: 1.0 +Content-Type: multipart/encrypted; boundary="nextPart3335835.KxmPgziKxd"; protocol="application/pgp-encrypted" + +--nextPart3335835.KxmPgziKxd +Content-Type: application/pgp-encrypted +Content-Disposition: attachment +Content-Transfer-Encoding: 7Bit + +Version: 1 +--nextPart3335835.KxmPgziKxd +Content-Type: application/octet-stream +Content-Disposition: inline; filename="msg.asc" +Content-Transfer-Encoding: 7Bit + +-----BEGIN PGP MESSAGE----- +Version: GnuPG v2 + +hQEMAwzOQ1qnzNo7AQgA6tTJs017mI+xuhjcSTr3F5X/rJghq0oaXbjk1K0W33p+ +jsEyPTbuUIvI2a+5xHJ3BV+gnnO0Xosz57tGTF/eVAySnGiMse5cu2RQR9b/9EkC +uzt3tIChyub3GUODG3yzXqkhSiwIImvedWgnJYTJ7eeBkWdizVT0b0byiG2d7Hjq +hzYzyPJRwuoE36hryDsFycAhPfSsQAirxDJXk4HTsfBCmz7tzJhtt4wKc7z5m8fq +y+jddnDADq5+tykJS6zemJOzgU3AOQyVJbmsx2vTV1CJdpKPHvTTgghpAaSuVbg0 +tR9BX1nPnA/bgX/V7C+3PwuCvB0ZKmv5d8kaGaTwO9LAhQGaWTfhG1cyy+MJhXdR +rH63PMkZh/lrvj7qJYofI5iVoe1CiMaX44BiwKVclGf7bEFdzc2NSRvvTSzisN3T +nSzydEttuEY5jGagQQNT1l1l4I8HAtUgwGtkKZVTAUL6iKHYAqzB77sRs33UJy4k +ZSIWFnSY8l+HLG+MYKsYCGsvJHkxEHnMiS1EZcmpUFhxOGQpiF2rJ4qnL2jbFWbA +9N1O5N1N/DJ/YKjwgy/jVVj6AOCrBZrxvKKt2mtG/wVX0F/KSKiEd8mgrLIx1udw +tibiDAJmDxUk8K0lAdOHBrzBChvysiT/QxCJFcSY6FE99Rral+BWjeyAIQQWvc2B +cEceZCtzjCOrwvoJwl2uEX+51nmMp+z1EoeyyhmUZZ4y65yOg4P6KGXGcLmIjSbH +IhsSls1jRkSrypf/wcEd6o7KZdeYbfA= +=Sud3 +-----END PGP MESSAGE----- + +--nextPart3335835.KxmPgziKxd-- diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-two-attachments.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-two-attachments.mbox.html new file mode 100644 index 00000000..cca4c455 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-two-attachments.mbox.html @@ -0,0 +1,64 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-two-attachments.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-two-attachments.mbox.tree new file mode 100644 index 00000000..71a67b58 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted-two-attachments.mbox.tree @@ -0,0 +1,9 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::AttachmentMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::AttachmentMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted.mbox new file mode 100644 index 00000000..5102fa78 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted.mbox @@ -0,0 +1,36 @@ +From test@kolab.org Wed, 08 Sep 2010 17:02:52 +0200 +From: OpenPGP Test +To: test@kolab.org +Subject: OpenPGP encrypted +Date: Wed, 08 Sep 2010 17:02:52 +0200 +User-Agent: KMail/4.6 pre (Linux/2.6.34-rc2-2-default; KDE/4.5.60; x86_64; ; ) +MIME-Version: 1.0 +Content-Type: multipart/encrypted; boundary="nextPart1357031.ppLHckZtsp"; protocol="application/pgp-encrypted" +Content-Transfer-Encoding: 7Bit + + +--nextPart1357031.ppLHckZtsp +Content-Type: application/pgp-encrypted +Content-Disposition: attachment + +Version: 1 +--nextPart1357031.ppLHckZtsp +Content-Type: application/octet-stream +Content-Disposition: inline; filename="msg.asc" + +-----BEGIN PGP MESSAGE----- +Version: GnuPG v2.0.15 (GNU/Linux) + +hQEMAwzOQ1qnzNo7AQgAtWfDWWI2JUGuptpackiIxpWViEEpGAeruETubiIPwxNb +DNmXrMDhbm/zIbPntIGWJDgUMfABZCUgmlJLWhsceDTt+tXnWGha2VYrN2/WsF6/ +Pqs/TavTvMIJQHDaIH5yDDCaMoq/mGSbcu7go2H8Sw7aBEYlM8jGlqc1HziXnZ1q +3vDiA+4qWfvbNoSRo1kb9Pcq997yg6WqZXH2hJ7cp+hIQ4uTP1/+qgYHMvfPlzQk +XcDguGbIer88ELhuR5622unGBAB4dqp+5w6n9c6rrCH81qhV4W0nqSEvj1tBj78S +ZTi6VBAo5eS0e3iOJqMpwUZz6hQUpJw2wnNRGvLgI9KZAag0HkgPdMeANowg7vpE +L4nU7B0ybhswA2Y7QT/wwCDZu9N1JGeBmy0dgy4sA38Ki27rn2/lIaP0j14JycwM +RTJ1uwI+ZuQiwXlyYtdFZJWe8nraWARch0oKqhaR7aSsxGWo63eiGEQhkQCBFBb3 +Vg0nNCZRBauEqIESEW5EV2zrJqdfNYcz+f9IP125dnQEKgLZ6FxTt3+v +=mhNl +-----END PGP MESSAGE----- + +--nextPart1357031.ppLHckZtsp-- diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted.mbox.html new file mode 100644 index 00000000..ba0976cd --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted.mbox.html @@ -0,0 +1,31 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted.mbox.inProgress.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted.mbox.inProgress.html new file mode 100644 index 00000000..e5eb55d0 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted.mbox.inProgress.html @@ -0,0 +1,24 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted.mbox.tree new file mode 100644 index 00000000..82f705c2 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-encrypted.mbox.tree @@ -0,0 +1,4 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-charset-encrypted.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-charset-encrypted.mbox new file mode 100644 index 00000000..8bd06910 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-charset-encrypted.mbox @@ -0,0 +1,40 @@ +From test@example.com Thu, 17 Oct 2013 02:13:03 +0200 +Return-Path: +Delivered-To: you@you.com +Received: from localhost (localhost [127.0.0.1]) + by test@example.com (Postfix) with ESMTP id B30D8120030 + for ; Thu, 17 Oct 2013 02:13:05 +0200 (CEST) +From: test +To: you@you.com +Subject: charset +Date: Thu, 17 Oct 2013 02:13:03 +0200 +Message-ID: <4081645.yGjUJ4o4Se@example.local> +User-Agent: KMail/4.12 pre (Linux/3.11-4.towo-siduction-amd64; KDE/4.11.2; x86_64; git-f7f14e3; 2013-10-15) +MIME-Version: 1.0 +Content-Transfer-Encoding: 7Bit +Content-Type: text/plain; charset="ISO-8859-15" + +-----BEGIN PGP MESSAGE----- +Version: GnuPG v2.0.22 (GNU/Linux) + +hIwDGJlthTT7oq0BBACbaRZudMigMTetPZNRgkfEXv4QQowR1jborw0dcgKKqMQ1 +6o67NkpxvmXKGJTfTVCLBX3nk6FKYo6NwlPCyU7X9X0DDk8hvaBdR9wGfrdm5YWX +GKOzcqJY1EypiMsspXeZvjzEW7O8I956c3vBb/2pM3xqYEK1kh8+d9bVH+cjf4UB +DAMMzkNap8zaOwEH/1rPShyYL8meJN+/GGgS8+Nf1BW5pSHdAPCg0dnX4QCLEx7u +GkBU6N4JGYayaCBofibOLacQPhYZdnR5Xb/Pvrx03GrzyzyDp0WyeI9nGNfkani7 +sCRWbzlMPsEvGEvJVnMLNRSk4xhPIWumL4APkw+Mgi6mf+Br8z0RhfnGwyMA53Mr +pG9VQKlq3v7/aaN40pMjAsxiytcHS515jXrb3Ko4pWbTlAr/eytOEfkLRJgSOpQT +BY7lWs+UQJqiG8Yn65vS9LMDNJgX9EOGx77Z4u9wvv4ZieOxzgbHGg5kYCoae7ba +hxZeNjYKscH+E6epbOxM/wlTdr4UTiiW9dMsH0zSwMUB891gToeXq+LDGEPTKVSX +tsJm4HS/kISJBwrCI4EUqWZML6xQ427NkZGmF2z/sD3kmL66GjspIKnb4zHmXacp +84n2KrI9s7p6AnKnQjsxvB/4/lpXPCIY5GH7KjySEJiMsHECzeN1dJSL6keykBsx +DtmYDA+dhZ6UWbwzx/78+mjNREhyp/UiSAmLzlJh89OH/xelAPvKcIosYwz4cY9N +wjralTmL+Y0aHKeZJOeqPLaXADcPFiZrCNPCH65Ey5GEtDpjLpEbjVbykPV9+YkK +7JKW6bwMraOl5zmAoR77PWMo3IoYb9q4GuqDr1V2ZGlb7eMH1gj1nfgfVintKC1X +3jFfy7aK6LIQDVKEwbi0SxVXTKStuliVUy5oX4woDOxmTEotJf1QlKZpn5oF20UP +tumYrp0SPoP8Bo4EVRVaLupduI5cYce1q/kFj9Iho/wk56MoG9PxMMfsH7oKg3AA +CqQ6/kM4oJNdN5xIf1EH5HeaNFkDy1jlLznnhwVAZKPo/9ffpg== +=bPqu +-----END PGP MESSAGE----- + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-charset-encrypted.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-charset-encrypted.mbox.html new file mode 100644 index 00000000..344dc237 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-charset-encrypted.mbox.html @@ -0,0 +1,47 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-charset-encrypted.mbox.inProgress.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-charset-encrypted.mbox.inProgress.html new file mode 100644 index 00000000..e5eb55d0 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-charset-encrypted.mbox.inProgress.html @@ -0,0 +1,24 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-charset-encrypted.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-charset-encrypted.mbox.tree new file mode 100644 index 00000000..ea8223fd --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-charset-encrypted.mbox.tree @@ -0,0 +1,4 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::TextMessagePart + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::SignedMessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-signed-broken.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-signed-broken.mbox new file mode 100644 index 00000000..fc0d2df9 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-signed-broken.mbox @@ -0,0 +1,26 @@ +From: test +To: you@you.de +Subject: test +Date: Tue, 25 Aug 2015 16:47:10 +0200 +Message-ID: <1662097.O9NVKTC5pT@11b508545ba2> +X-KMail-Identity: 1428848833 +User-Agent: KMail/4.13.0.3 (Linux/4.1.0-rc5-siduction-amd64; KDE/4.14.3; x86_64; git-7c86098; 2015-08-23) +MIME-Version: 1.0 +Content-Transfer-Encoding: quoted-printable +Content-Type: text/plain; charset="iso-8859-1" + +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +ohno break it =F6=E4=FC +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iQEcBAEBCAAGBQJV3H/vAAoJEI2YYMWPJG3mEZQH/2mbCDa60risTUsomEecasc7 +kIc8Ch+OjZwlEQWKEiFbpLCMVjMwf0oGFcpc/dqnIyIqeVvF6Em+v7iqKuyAaihu +7ZxxC816tDDI7UIpmyWu39McqGB/2hoA/q+QAMgBiaIuMwYJK9Aw08hXzoCds6O7 +Uor2Y6kMSwEiRnTSYvQHdoaZY3F9SFTLPgjvwfSu7scvp7xvH7bAVIqGGfkLjXpP +OFkDhEqUI7ORwD5cvvzEu57XmbGB7Nj5LRCGcTq6IlaGeN6Pw5+hOdd6MQ4iISwy +870msP9NvktURnfXYC3fYnJaK/eUln7LYCBl/k04Z/3Um6dMYyQGh63oGv/2qxQ=3D +=3D4ctb +-----END PGP SIGNATURE----- diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-signed.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-signed.mbox new file mode 100644 index 00000000..6099a51f --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-signed.mbox @@ -0,0 +1,26 @@ +From: test +To: you@you.de +Subject: test +Date: Tue, 25 Aug 2015 16:47:10 +0200 +Message-ID: <1662097.O9NVKTC5pT@11b508545ba2> +X-KMail-Identity: 1428848833 +User-Agent: KMail/4.13.0.3 (Linux/4.1.0-rc5-siduction-amd64; KDE/4.14.3; x86_64; git-7c86098; 2015-08-23) +MIME-Version: 1.0 +Content-Transfer-Encoding: quoted-printable +Content-Type: text/plain; charset="iso-8859-1" + +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +ohno =F6=E4=FC +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iQEcBAEBCAAGBQJV3H/vAAoJEI2YYMWPJG3mEZQH/2mbCDa60risTUsomEecasc7 +kIc8Ch+OjZwlEQWKEiFbpLCMVjMwf0oGFcpc/dqnIyIqeVvF6Em+v7iqKuyAaihu +7ZxxC816tDDI7UIpmyWu39McqGB/2hoA/q+QAMgBiaIuMwYJK9Aw08hXzoCds6O7 +Uor2Y6kMSwEiRnTSYvQHdoaZY3F9SFTLPgjvwfSu7scvp7xvH7bAVIqGGfkLjXpP +OFkDhEqUI7ORwD5cvvzEu57XmbGB7Nj5LRCGcTq6IlaGeN6Pw5+hOdd6MQ4iISwy +870msP9NvktURnfXYC3fYnJaK/eUln7LYCBl/k04Z/3Um6dMYyQGh63oGv/2qxQ=3D +=3D4ctb +-----END PGP SIGNATURE----- diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-signed.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-signed.mbox.html new file mode 100644 index 00000000..d32d0235 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-signed.mbox.html @@ -0,0 +1,35 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-signed.mbox.inProgress.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-signed.mbox.inProgress.html new file mode 100644 index 00000000..45a999d3 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-signed.mbox.inProgress.html @@ -0,0 +1,22 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-signed.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-signed.mbox.tree new file mode 100644 index 00000000..23e99880 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-signed.mbox.tree @@ -0,0 +1,3 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::TextMessagePart + * MimeTreeParser::SignedMessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-wrong-charset-encrypted.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-wrong-charset-encrypted.mbox new file mode 100644 index 00000000..5ecfc612 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-wrong-charset-encrypted.mbox @@ -0,0 +1,34 @@ +From t.glaser@tarent.de Mon Aug 18 10:59:01 2014 +Return-Path: +Received: from tgwrk.ig42.org (tgwrk.ig42.org. + [2a01:238:4200:4342:321e:80ff:fe12:4223]) by mx.google.com with ESMTPSA id + pe6sm40660135wjb.38.2014.08.18.01.59.01 for + (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 + Aug 2014 01:59:01 -0700 (PDT) +Date: Mon, 18 Aug 2014 10:59:00 +0200 (CEST) +From: Thorsten Glaser +X-X-Sender: tglase@tglase.lan.tarent.de +To: Thorsten Glaser +Subject: Test for Mozilla bug#1054187 +Message-ID: +User-Agent: Alpine 2.11 (DEB 23 2013-08-11) +MIME-Version: 1.0 +Content-Type: TEXT/PLAIN; charset=US-ASCII + +-----BEGIN PGP MESSAGE----- +Version: GnuPG v2 + +hIwDTFSKP3rBSXcBBAClcHW9/6kw8i+XkMes47vcmGBCjIC0UysqkVYyNqT2Y6tb +s7pdfZFQPVWbdYoxP0WLzGgNFEWttlojWJmaTNiDVLOP22hFuJL3LUxesC1cWE+6 +foCkENDI2YnkAw4o5HTrmHoBlG7N/Nzzu3+1kfUVANSoAhgWd5WJDsXyvPMoD9LA +7gHZZmq4bK5OwTHvAvdUOstCGd6Wqj5zkVXT59WOfYxYLcrGZ8I62lBS1/90TlJe +iEolBoaufZT7K2YW7k/+DPYgRIzvWISTccPWpcS7OOyifvK4zOFJeGsVq/DowP52 +Zt1xQj1En5CVUT/MkpvS1rB4BfSuhJETZdtUGveUe0HhcAzbnbIJULdK0p1XAo4O +q84vmOVD0BtKJVy/+rIW7h4aOr8C66HNDKLiUzWtdEaG97GQwhpQZ05JNsulG9tV +wyP6UWmDMY/5YuRoVHOYx8NXORHX4E5P151Tr5Fted9TpXI/gOTHHyPK5AiiDG6U +ja4fgkO6hYnjHxqqooxfGj+pg5atynnbMTALfWoXxmqyKrIB+SKqnsw+sCL3ro2x +j54EGZZ9wM6AYDQ48lJV5beWgQ55r28HxlhPNl/driNkMZHUazAdsubWo5NqJPXl +HrHQ4lv53ZUohbpVvdkmsldWhA5me7yRhQHytTQMMfadmSiYZVsy53siQ/5gEhUv +DQ4ggpUjf8twqR+5TLue5/r/fRXkGfKr5U1w4qcMcFcGwEIbwE+qtIDY0Cw/+xU= +=Ecl0 +-----END PGP MESSAGE----- diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-wrong-charset-encrypted.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-wrong-charset-encrypted.mbox.html new file mode 100644 index 00000000..3ed4e0fb --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-wrong-charset-encrypted.mbox.html @@ -0,0 +1,47 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-wrong-charset-encrypted.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-wrong-charset-encrypted.mbox.tree new file mode 100644 index 00000000..ea8223fd --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-inline-wrong-charset-encrypted.mbox.tree @@ -0,0 +1,4 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::TextMessagePart + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::SignedMessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-apple.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-apple.mbox new file mode 100644 index 00000000..ba85df86 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-apple.mbox @@ -0,0 +1,129 @@ +Return-Path: +Sender: sender@example.org +From: Quonk +X-Pgp-Agent: GPGMail +Content-Type: multipart/signed; boundary="Apple-Mail=_12345678-1234-1234-1234-12345678"; protocol="application/pgp-signature"; micalg=pgp-sha512 +Subject: PDF +Date: Mon, 16 Jan 2017 15:14:51 +0100 +Message-Id: <199E2891-3080-42B6-ABCD-1230B78EBABC@example.org> +To: Konqi +Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) + + +--Apple-Mail=_12345678-1234-1234-1234-12345678 +Content-Type: multipart/alternative; + boundary="Apple-Mail=_23456789-1234-1234-1234-12345678" + + +--Apple-Mail=_23456789-1234-1234-1234-12345678 +Content-Transfer-Encoding: quoted-printable +Content-Type: text/plain; + charset=utf-8 + + + +=E2=80=A6 +Quonk +Klar=C3=A4lvdalens Datakonsult AB, a KDAB Group company +Sweden (HQ) +46-563-540090, Germany +49-30-521325470 +KDAB - The Qt, C++ and OpenGL Experts | www.kdab.com + + +--Apple-Mail=_23456789-1234-1234-1234-12345678 +Content-Type: multipart/mixed; + boundary="Apple-Mail=_34567890-1234-1234-1234-12345678" + + +--Apple-Mail=_34567890-1234-1234-1234-12345678 +Content-Transfer-Encoding: 7bit +Content-Type: text/html; + charset=us-ascii + +
pre attachment
+--Apple-Mail=_34567890-1234-1234-1234-12345678 +Content-Disposition: attachment; filename="image.png" +Content-Transfer-Encoding: base64 +Content-Type: image/png; name="image.png" + +iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAlwSFlzAAAb +rwAAG68BXhqRHAAAAAd0SU1FB9gHFg8aNG8uqeIAAAAGYktHRAD/AP8A/6C9p5MAAAkqSURBVHja +5VV7cFTVGf/OPefeu3fv3t1NdhMSCHkKASEpyEsaGwalWEWntLV1Wu0fdOxAx9Iq0xntAwac6ehY +p+rwKLbjjLRFh9JadURKRGgFQTTECCYQE9nNgzzYZDe7m33d1+l3tpOOU61T2tF/+s1s7pzn9/t+ +v993Av/3QT6FO6WdO/d+M55Il8rMOdrT0x3Zt++3+c8EgM/nozseeviJiYmpe1zOQdM8BOOCIku/ +lIj1VrQ/0r9n9+78xwLgeAA3w4fHXV1d5Omnn6aapumlJSVVqalUJJvJZRdcu0RSfZQsaW7mjfPm +cbF9+/btEIlEaq6Z03whXyhIjDFuGIZEKSP5fMFRVcVNT2Vf0jzsmMxYGtel9rff/vM/M8bjcZpM +Jp1XX32VNDc3e7ovRP3JyZGVNdXVd1FGGwKBQEM8njiWTKV36IHgEACwibGx62LjU/cBd01Zljoc +p9DHmLbHsmyK1UuKooJt24IMcLE+y3L45eEYLS8LgWH4YXR0bAPZtGmTVFvfoBZMEzKpFKmqqmqp +qane4DhOteH3L1FkWZVlGSzLAtd1Oe4773C4LxoZvDWXh82OY2MtwAuFvCvSyDIFXdelYDDIvF4d +xPzA0AgXFStMcWPxBPGoKvXpPh6JDG5hK1Zcv1H36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UBht0DR4r98Fs+IRg/zrxlz2/2A7p5yYBY93Gu+4f +H5xojLwOxfjd/WufOHhQ/IcD7eYVC5YyCjFMfkVV4NpMFvpTachoZeDaNryLnliOczsUCv1XBWD8 +YjF5MWJ9kcT757qenR7vf4bDoqWwHCvUUfPNsQQMWSZAZTlsw7nxYQQTcuDrjgQuPn7z/D7YivNt +nPPfEDzwqcU75/j6SD/f8uG5vXs5dL7Hjb+d4gp8mnF8nAOabjcac+OBAxyuNiT4HyNwGZYgu0RW +IDt/Icz4zAC0tXE4183rQ6XwU9uBXgLQ5Teg7GIv1+EqgsF/GY4DtCQALZMp2ITttmqoHzpWr756 +o/0d59+Lh3Y1HHcAAAAASUVORK5CYII= +--Apple-Mail=_34567890-1234-1234-1234-12345678 +Content-Transfer-Encoding: quoted-printable +Content-Type: text/html; + charset=utf-8 + + +

Some HTML text

+ + +--Apple-Mail=_34567890-1234-1234-1234-12345678-- + +--Apple-Mail=_23456789-1234-1234-1234-12345678-- + +--Apple-Mail=_12345678-1234-1234-1234-12345678 +Content-Transfer-Encoding: 7bit +Content-Disposition: attachment; + filename=signature.asc +Content-Type: application/pgp-signature; + name=signature.asc +Content-Description: Message signed with OpenPGP using GPGMail + +-----BEGIN PGP SIGNATURE----- + +iQEzBAEBCAAdFiEEG6Mjkys/qoJhMseejZhgxY8kbeYFAlh/rcwACgkQjZhgxY8k +beYaoQf+Miuj4cnVumYXMopVMHJs6AK6D+uKO4jXHl/XUK3TOg17kFUZDEN/9JFd +SCN9oD5emzpBl4GSmYBbjvLvXTHTLHviVD6In35+wgMlQL+xfAv91Dx56QslCQMo +UhDYGgFPiEAfCY2UozQD/R3KWOHFB9bNdtOM0hdT84D35W2PZhzTlz2q3hpq3bYw +lNhFVebqURh9OEAZglB3Q9oDE13PJDtRLflKquC5ZU8N4Bj23TCOgxv4FzSyyAn/ +XalEKdwYrkZ8p4rRtd0YvAVevDUC4pQNGTgfsXgldoPEGUBXsdlczLPEj2sjLvNu +HX1GMDrZL/+7DZsURYV5DjhsqWzExQ== +=q0F6 +-----END PGP SIGNATURE----- + +--Apple-Mail=_12345678-1234-1234-1234-12345678-- + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-apple.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-apple.mbox.html new file mode 100644 index 00000000..234eaae4 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-apple.mbox.html @@ -0,0 +1,58 @@ + + + + +
+ + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-apple.mbox.inProgress.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-apple.mbox.inProgress.html new file mode 100644 index 00000000..b5236fe4 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-apple.mbox.inProgress.html @@ -0,0 +1,49 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-apple.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-apple.mbox.tree new file mode 100644 index 00000000..3ade4efe --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-apple.mbox.tree @@ -0,0 +1,3 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::SignedMessagePart + * MimeTreeParser::AlternativeMessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-base64-mailman-footer.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-base64-mailman-footer.mbox new file mode 100644 index 00000000..70bf4ef8 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-base64-mailman-footer.mbox @@ -0,0 +1,117 @@ +Return-Path: +X-Sieve: CMU Sieve 2.3 +X-Virus-Scanned: amavisd-new at site +Authentication-Results: linux.site (amavisd-new); dkim=pass (1024-bit key) + header.d=kde.org +Received: from postbox.kde.org (localhost.localdomain [127.0.0.1]) + by postbox.kde.org (Postfix) with ESMTP id 867B8BF274; + Sat, 22 Aug 2015 09:32:21 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kde.org; s=default; + t=1440235945; bh=WhGhdxvdvRs04JdzjAkPcBVPmx7putlUE3ka9dvMIoc=; + h=From:To:Date:Subject:Reply-To:List-Id:List-Unsubscribe:List-Post: + List-Help:List-Subscribe:From; + b=mvxeMMGebkZKq7hekRypkPvt6S8lidA/8vQ3AC5Kft8HDmj8lDUpvOo0VXwCF0OG+ + iAOPKxYtxclf8PgYvgK8NIzr56CwcdlNm3/PpoSe20P3I1DGFpDDMFtW5tOD05SSHz + 5L6PCQyb+KFW1GrXgcm+eHshzJh3U8nHcyd8Vw2E= +X-Original-To: kde-pim@kde.org +Delivered-To: kde-pim@localhost.kde.org +X-Virus-Scanned: amavisd-new at site +From: Volker Krause +To: KDEPIM +Date: Sat, 22 Aug 2015 11:31:38 +0200 +Message-ID: <11737387.KAAPH2KlE3@vkpc5> +Organization: KDE +User-Agent: KMail/4.14.3 (Linux/3.16.6-2-desktop; KDE/4.14.7; x86_64; + git-c97b13e; 2014-12-30) +MIME-Version: 1.0 +Subject: [Kde-pim] Phabricator Project Setup +X-BeenThere: kde-pim@kde.org +X-Mailman-Version: 2.1.16 +Precedence: list +Reply-To: KDE PIM +List-Id: KDE PIM +List-Unsubscribe: , + +List-Post: +List-Help: +List-Subscribe: , + +Content-Type: multipart/mixed; boundary="===============1910646461178264940==" +Errors-To: kde-pim-bounces@kde.org +Sender: "kde-pim" + + +--===============1910646461178264940== +Content-Type: multipart/signed; boundary="nextPart2440608.7aDuJBW7cK"; micalg="pgp-sha1"; protocol="application/pgp-signature" + +--nextPart2440608.7aDuJBW7cK +Content-Transfer-Encoding: quoted-printable +Content-Type: text/plain; charset="us-ascii" + +Hi, + +I've talked to Ben, the current Phabricator test setup would actually b= +e=20 +usable for "production" use for task/project management for us, without= +=20 +causing the sysadmins unreasonable trouble when migrating to the full=20= + +production deployment of Phabricator eventually. + +Phabricator project layout it orthogonal to repo layout, so we can stru= +cture=20 +this however we want. Among other teams I see at least the following la= +youts: +- single project for everything +- a project per release +- a project per component/module (ie. close to the repo layout) + +How do we want to structure this? + +I would start with a single project to not fragment this too much, as w= +e have=20 +a relatively small team actually looking into this, so everyone is look= +ing at=20 +most sub-projects anyway. And should we eventually hit scaling limits, = +we can=20 +always expand this I think. + +We of course should also talk about what we actually want to put in the= +re. My=20 +current motivation is having a place to collect the tasks for getting m= +ore of=20 +the former pimlibs into KF5, and anything else I run into on the way th= +ere=20 +that we eventually should clean up/improve. + +regards, +Volker + +--nextPart2440608.7aDuJBW7cK +Content-Type: application/pgp-signature; name="signature.asc" +Content-Description: This is a digitally signed message part. +Content-Transfer-Encoding: 7Bit + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iD8DBQBV2EF9f5bM1k0S0kcRAk9cAJ4vHEh9JkT3Jy3EfxII7nP9HPmxrQCgjeLF +eYXCyN9NRAyC6CHeNnWZN10= +=Y8W4 +-----END PGP SIGNATURE----- + +--nextPart2440608.7aDuJBW7cK-- + + +--===============1910646461178264940== +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: base64 +Content-Disposition: inline + +X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KS0RFIFBJTSBt +YWlsaW5nIGxpc3Qga2RlLXBpbUBrZGUub3JnCmh0dHBzOi8vbWFpbC5rZGUub3JnL21haWxtYW4v +bGlzdGluZm8va2RlLXBpbQpLREUgUElNIGhvbWUgcGFnZSBhdCBodHRwOi8vcGltLmtkZS5vcmcv + +--===============1910646461178264940==-- + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-base64-mailman-footer.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-base64-mailman-footer.mbox.html new file mode 100644 index 00000000..50eddaa6 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-base64-mailman-footer.mbox.html @@ -0,0 +1,78 @@ + + + + +
+ +
+ + + + +
+
+ + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-base64-mailman-footer.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-base64-mailman-footer.mbox.tree new file mode 100644 index 00000000..2753978c --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-base64-mailman-footer.mbox.tree @@ -0,0 +1,7 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::SignedMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::AttachmentMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted-two-attachments.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted-two-attachments.mbox new file mode 100644 index 00000000..7939af83 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted-two-attachments.mbox @@ -0,0 +1,52 @@ +From: firstname.lastname@example.com +To: test@kolab.org +Subject: OpenPGP signed+encrypted with 2 text attachments +Date: Sun, 30 Aug 2015 12:01:20 +0200 +Message-ID: <4368981.7YjI8cQ7Br@vkpc5> +X-KMail-Identity: 402312391 +X-KMail-Dictionary: en_US +User-Agent: KMail/5.0.42 pre (Linux/3.16.6-2-desktop; KDE/5.14.0; x86_64; ; ) +MIME-Version: 1.0 +Content-Type: multipart/encrypted; boundary="nextPart3246504.5GAivIUY6Q"; protocol="application/pgp-encrypted" + +--nextPart3246504.5GAivIUY6Q +Content-Type: application/pgp-encrypted +Content-Disposition: attachment +Content-Transfer-Encoding: 7Bit + +Version: 1 +--nextPart3246504.5GAivIUY6Q +Content-Type: application/octet-stream +Content-Disposition: inline; filename="msg.asc" +Content-Transfer-Encoding: 7Bit + +-----BEGIN PGP MESSAG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i46Q +pDbw1Svf7xVdHix+5UkkYy3AY70ipf5bxA7FTJ1geJa86VKShDkqVpU6EtT+YQIJ +7geWCyskT0DTaPp6qc8QpjajmRYssDcjiTke5WiqLQAjm8BIuny0fNm6kNC8KMS7 +eGmaBI2nB92bgrqlAW+LhvW95YB0dfO8beg3jKk8s6OJ4gicGFEFp6hXFfEsEZiv +gi7Q2QCVFvCV11884H8rtZYmMRFGmuVUvm6xh/z1xicmfSy0YUowgkA3jpi7o913 +fqmYOHAwzCxv8Zp7xBf9hLT8DxMXdxqYUnJ+FaEMRcFkJ1MAFBpQ9uDbbqAz5bd5 +F3d6o0JSleOOTDlNH7wpN15HYtaCx9v3mXLN9FY4Y1g4mE8wdU0JZn7sFEmgmAkV +/vj9khHS6eB01GPiCA6sy/u2tSdCQQ== +=1GHi +-----END PGP MESSAGE----- + +--nextPart3246504.5GAivIUY6Q-- diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted-two-attachments.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted-two-attachments.mbox.html new file mode 100644 index 00000000..53856e74 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted-two-attachments.mbox.html @@ -0,0 +1,88 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted-two-attachments.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted-two-attachments.mbox.tree new file mode 100644 index 00000000..6705a4d7 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted-two-attachments.mbox.tree @@ -0,0 +1,10 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::SignedMessagePart + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::AttachmentMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::AttachmentMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted.mbox new file mode 100644 index 00000000..6d723d52 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted.mbox @@ -0,0 +1,47 @@ +From: OpenPGP Test +To: test@kolab.org +Subject: OpenPGP signed and encrypted +Date: Tue, 07 Sep 2010 18:08:44 +0200 +User-Agent: KMail/4.6 pre (Linux/2.6.34-rc2-2-default; KDE/4.5.60; x86_64; ; ) +MIME-Version: 1.0 +Content-Type: multipart/encrypted; boundary="nextPart25203163.0xtB501Z4V"; protocol="application/pgp-encrypted" +Content-Transfer-Encoding: 7Bit + + +--nextPart25203163.0xtB501Z4V +Content-Type: application/pgp-encrypted +Content-Disposition: attachment + +Version: 1 +--nextPart25203163.0xtB501Z4V +Content-Type: application/octet-stream +Content-Disposition: inline; filename="msg.asc" + +-----BEGIN PGP MESSAGE----- +Version: GnuPG v2.0.15 (GNU/Linux) + +hQEMAwzOQ1qnzNo7AQf7BFYWaGiCTGtXY59bSh3LCXNnWZejblYALxIUNXOFEXbm +y/YA95FmQsy3U5HRCAJV/DY1PEaJz1RTm9bcdIpDC3Ab2YzSwmOwV5fcoUOB2df4 +KjX19Q+2F3JxpPQ0N1gHf4dKfIu19LH+CKeFzUN13aJs5J4A5wlj+NjJikxzmxDS +kDtNYndynPmo9DJQcsUFw3gpvx5HaHvx1cT4mAB2M5cd2l+vN1jYbaWb0x5Zq41z +mRNI89aPieC3rcM2289m68fGloNbYvi8mZJu5RrI4Tbi/D7Rjm1y63lHgVV6AN88 +XAzRiedOeF99LoTBulrJdtT8AAgCs8nCetcWpIffdtLpAZiZkzHmYOU7nqGxqpRk +OVeUTrCn9DW2SMmHjaP4IiKnMvzEycu5F4a72+V1LeMIhMSjTRTq+ZE2PTaqH59z +QsMn7Nb6GlOICbTptRKNNtyJKO7xXlpT7YtvNKnCyEOkH2XrYH7GvpYCiuQ0/o+7 +SxV436ZejiYIg6DQDXJCoa2DXimGp0C10Jh0HwX0BixpoNtwEjkGRYcX6P/JzkH0 +oBood4Ly+Tiu6iVDisrK3AVGYpIzCrKkE9qULTw4R/jFKR2tcCqGb7Fxtk2LV7Md +3S+DyOKrvKQ5GNwbp9OE97pwk+Lr1JS3UAvj5f6BR+1PVNcC0i0wWkgwDjPh1eGD +enMQmorE6+N0uHtH2F4fOxo/TbbA3+zhI25kVW3bO03xyUl/cmQZeb52nvfOvtOo +gSb2j6bPkzljDMPEzrtJjbFtGHJbPfUQYJgZv9OE2EQIqpg6goIw279alBq6GLIX +pkO+dRmztzjcDyhcLxMuQ4cTizel/0J/bU7U6lvwHSyZVbT4Ev+opG5K70Hbqbwr +NZcgdWXbSeesxGM/oQaMeSurOevxVl+/zrTVAek61aRRd1baAYqgi2pf2V7y4oK3 +qkdxzmoFpRdNlfrQW65NZWnHOi9rC9XxANIwnVn3kRcDf+t2K4PrFluI157lXM/o +wX91j88fazysbJlQ6TjsApO9ETiPOFEBqouxCTtCZzlUgyVG8jpIjdHWFnagHeXH ++lXNdYjxnTWTjTxMOZC9ySMpXkjWdFI1ecxVwu6Ik6RX51rvBJAAXWP75yUjPKJ4 +rRi5oQl/VLl0QznO7lvgMPtUwgDVNWO/r7Kn9B387h9fAJZ/kWFAEDW2yhAzABqO +rCNKDzBPgfAwCnikCpMoCbOL7SU8BdbzQHD8/Lkv4m0pzliHQ/KkGF710koBzTmF +N7+wk9pwIuvcrEBQj567 +=GV0c +-----END PGP MESSAGE----- + +--nextPart25203163.0xtB501Z4V-- diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted.mbox.html new file mode 100644 index 00000000..86a964b8 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted.mbox.html @@ -0,0 +1,55 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted.mbox.tree new file mode 100644 index 00000000..7d5bbeb7 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-encrypted.mbox.tree @@ -0,0 +1,5 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::SignedMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+additional-children.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+additional-children.mbox new file mode 100644 index 00000000..dbca8d45 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+additional-children.mbox @@ -0,0 +1,126 @@ +Return-Path: +Delivered-To: einar@heavensinferno.net +Received: from localhost (localhost.localdomain [127.0.0.1]) + by akihabara.dennogumi.org (Postfix) with ESMTP id 15AB75CD846 + for ; Mon, 8 Apr 2013 12:15:03 +0200 (CEST) +Authentication-Results: akihabara.dennogumi.org; dkim=pass + (1024-bit key; insecure key) header.i=@kde.org header.b=vQ0NnJ9g; + dkim-adsp=pass +X-Virus-Scanned: Debian amavisd-new at akihabara.dennogumi.org +X-Spam-Flag: NO +X-Spam-Score: -3.818 +X-Spam-Level: +X-Spam-Status: No, score=-3.818 required=5 tests=[BAYES_50=0.8, + RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-2.328, T_DKIM_INVALID=0.01] + autolearn=unavailable +Received: from akihabara.dennogumi.org ([127.0.0.1]) + by localhost (akihabara.dennogumi.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id RMAq-XNJ040f for ; + Mon, 8 Apr 2013 12:14:44 +0200 (CEST) +Received: from postbox.kde.org (postbox.kde.org [46.4.96.248]) + by akihabara.dennogumi.org (Postfix) with ESMTP id 321675CD845 + for ; Mon, 8 Apr 2013 12:14:44 +0200 (CEST) +Authentication-Results: akihabara.dennogumi.org; dkim=pass + (1024-bit key; insecure key) header.i=@kde.org header.b=vQ0NnJ9g; + dkim-adsp=pass +Received: from postbox.kde.org (localhost [IPv6:::1]) + by postbox.kde.org (Postfix) with ESMTP id 9F5E1B37F95; + Mon, 8 Apr 2013 10:13:32 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kde.org; s=default; + t=1365416012; bh=ZJtmtbDLoGFwSyJUINdTk4UpuX+xzxcjGp7LSPrKNUs=; + h=From:To:Subject:Date:Message-ID:MIME-Version:Reply-To:List-Id: + List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: + Content-Type:Sender; b=vQ0NnJ9gjeyPLhPbQx6o9UxmILkS9KrhaKG6luAS/GR + 6iR3HKXR3HE0BCkTMD5xmKL5ztFMGcU5e79fz0ch0sd2pnZ0y1WVw7KjCxsv/YtO9HM + OplAHmhwRI5zH8KKQbyvdPULvssI/ISdViAXmHw04hNPsBjsIGkTPgvNbPFuk= +X-Original-To: plasma-devel@kde.org +Delivered-To: plasma-devel@localhost.kde.org +Received: from mail.bddf.ca (unknown [64.141.113.219]) + by postbox.kde.org (Postfix) with ESMTP id 782C6B37BE6 + for ; Mon, 8 Apr 2013 09:51:17 +0000 (UTC) +Received: from freedom.localnet (242.13.24.31.ftth.as8758.net [31.24.13.242]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by mail.bddf.ca (Postfix) with ESMTPSA id 0CB712DC040 + for ; Mon, 8 Apr 2013 03:51:16 -0600 (MDT) +From: "Aaron J. Seigo" +To: plasma-devel@kde.org +Subject: activities_optional branch in kde-workspace +Date: Mon, 08 Apr 2013 11:51:11 +0200 +Message-ID: <4143483.eqrJjo7JEn@freedom> +User-Agent: KMail/4.11 pre (Linux/3.6.3-1-desktop; KDE/4.10.60; i686; + git-da50be0; 2013-03-12) +MIME-Version: 1.0 +X-Scanned-By: MIMEDefang 2.71 on 46.4.96.248 +X-BeenThere: plasma-devel@kde.org +X-Mailman-Version: 2.1.14 +Precedence: list +Reply-To: plasma-devel@kde.org +List-Id: +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +Content-Type: multipart/mixed; boundary="===============6664737512143839854==" +Errors-To: plasma-devel-bounces@kde.org +Sender: plasma-devel-bounces@kde.org + + +--===============6664737512143839854== +Content-Type: multipart/signed; boundary="nextPart1996263.NlFDv9GTkA"; micalg="pgp-sha1"; protocol="application/pgp-signature" + + +--nextPart1996263.NlFDv9GTkA +Content-Transfer-Encoding: 7Bit +Content-Type: text/plain; charset="us-ascii" + +hi.. + +i noticed a new branch when i pulled kde-workspace today (finally!): +activities_optional + +the lone commit in it was pushed on april 1, so maybe it's an april fools +joke, but if it isn't, it looks like someone is trying to do something that +makes no sense (and has no chance of being merged into master). so if this is +a "for reals" branch, perhaps the motivation behind it can be shared? + +-- +Aaron J. Seigo +--nextPart1996263.NlFDv9GTkA +Content-Type: application/pgp-signature; name="signature.asc" +Content-Description: This is a digitally signed message part. +Content-Transfer-Encoding: 7Bit + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iEUEABECAAYFAlFikxAACgkQ1rcusafx20MHbwCfeXOgTDwtR81XJwAdcQB40Lt7 +t2IAmJpIZxdU+SSruySeEfbQs3VXq/8= +=BQPF +-----END PGP SIGNATURE----- +--nextPart1996263.NlFDv9GTkA +Content-Type: text/plain; name="broken.attachment" +Content-Transfer-Encoding: 7Bit + +Let's break a signed message - This messageblock should not be here :D + +--nextPart1996263.NlFDv9GTkA-- + + +--===============6664737512143839854== +Content-Type: text/plain; charset="us-ascii" +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +Content-Disposition: inline + +_______________________________________________ +Plasma-devel mailing list +Plasma-devel@kde.org +https://mail.kde.org/mailman/listinfo/plasma-devel + +--===============6664737512143839854==-- + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+additional-children.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+additional-children.mbox.html new file mode 100644 index 00000000..a95252e4 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+additional-children.mbox.html @@ -0,0 +1,60 @@ + + + + +
+ + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+additional-children.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+additional-children.mbox.tree new file mode 100644 index 00000000..906e6274 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+additional-children.mbox.tree @@ -0,0 +1,10 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::AttachmentMessagePart + * MimeTreeParser::AttachmentMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::AttachmentMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+old.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+old.mbox new file mode 100644 index 00000000..362dff3e --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+old.mbox @@ -0,0 +1,67 @@ +Return-Path: +Delivered-To: einar@heavensinferno.net +From: "Aaron J. Seigo" +To: plasma-devel@kde.org +Subject: activities_optional branch in kde-workspace +Date: Mon, 08 Apr 2013 11:51:11 +0200 +Message-ID: <4143483.eqrJjo7JEn@freedom> +User-Agent: KMail/4.11 pre (Linux/3.6.3-1-desktop; KDE/4.10.60; i686; + git-da50be0; 2013-03-12) +X-Mailman-Version: 2.1.14 +Precedence: list +Reply-To: plasma-devel@kde.org +List-Id: +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +Errors-To: plasma-devel-bounces@kde.org +Sender: plasma-devel-bounces@kde.org + +Oh man a header :) + +--__--__-- + +Message: +MIME-Version: 1.0 +Content-Type: multipart/signed; boundary="nextPart1996263.NlFDv9GTkA"; micalg="pgp-sha1"; protocol="application/pgp-signature" + + +--nextPart1996263.NlFDv9GTkA +Content-Transfer-Encoding: 7Bit +Content-Type: text/plain; charset="us-ascii" + +hi.. + +i noticed a new branch when i pulled kde-workspace today (finally!): +activities_optional + +the lone commit in it was pushed on april 1, so maybe it's an april fools +joke, but if it isn't, it looks like someone is trying to do something that +makes no sense (and has no chance of being merged into master). so if this is +a "for reals" branch, perhaps the motivation behind it can be shared? + +-- +Aaron J. Seigo +--nextPart1996263.NlFDv9GTkA +Content-Type: application/pgp-signature; name="signature.asc" +Content-Description: This is a digitally signed message part. +Content-Transfer-Encoding: 7Bit + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iEUEABECAAYFAlFikxAACgkQ1rcusafx20MHbwCfeXOgTDwtR81XJwAdcQB40Lt7 +t2IAmJpIZxdU+SSruySeEfbQs3VXq/8= +=BQPF +-----END PGP SIGNATURE----- + +--__--__-- + +_______________________________________________ +Plasma-devel mailing list +Plasma-devel@kde.org +https://mail.kde.org/mailman/listinfo/plasma-devel \ No newline at end of file diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+old.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+old.mbox.html new file mode 100644 index 00000000..59c6d690 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+old.mbox.html @@ -0,0 +1,94 @@ + + + + +
+ + +
+ + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+old.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+old.mbox.tree new file mode 100644 index 00000000..c8310bc1 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist+old.mbox.tree @@ -0,0 +1,13 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::MessagePartList + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::EncapsulatedRfc822MessagePart + * MimeTreeParser::SignedMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist.mbox new file mode 100644 index 00000000..8adb9f4c --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist.mbox @@ -0,0 +1,121 @@ +Return-Path: +Delivered-To: einar@heavensinferno.net +Received: from localhost (localhost.localdomain [127.0.0.1]) + by akihabara.dennogumi.org (Postfix) with ESMTP id 15AB75CD846 + for ; Mon, 8 Apr 2013 12:15:03 +0200 (CEST) +Authentication-Results: akihabara.dennogumi.org; dkim=pass + (1024-bit key; insecure key) header.i=@kde.org header.b=vQ0NnJ9g; + dkim-adsp=pass +X-Virus-Scanned: Debian amavisd-new at akihabara.dennogumi.org +X-Spam-Flag: NO +X-Spam-Score: -3.818 +X-Spam-Level: +X-Spam-Status: No, score=-3.818 required=5 tests=[BAYES_50=0.8, + RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-2.328, T_DKIM_INVALID=0.01] + autolearn=unavailable +Received: from akihabara.dennogumi.org ([127.0.0.1]) + by localhost (akihabara.dennogumi.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id RMAq-XNJ040f for ; + Mon, 8 Apr 2013 12:14:44 +0200 (CEST) +Received: from postbox.kde.org (postbox.kde.org [46.4.96.248]) + by akihabara.dennogumi.org (Postfix) with ESMTP id 321675CD845 + for ; Mon, 8 Apr 2013 12:14:44 +0200 (CEST) +Authentication-Results: akihabara.dennogumi.org; dkim=pass + (1024-bit key; insecure key) header.i=@kde.org header.b=vQ0NnJ9g; + dkim-adsp=pass +Received: from postbox.kde.org (localhost [IPv6:::1]) + by postbox.kde.org (Postfix) with ESMTP id 9F5E1B37F95; + Mon, 8 Apr 2013 10:13:32 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kde.org; s=default; + t=1365416012; bh=ZJtmtbDLoGFwSyJUINdTk4UpuX+xzxcjGp7LSPrKNUs=; + h=From:To:Subject:Date:Message-ID:MIME-Version:Reply-To:List-Id: + List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: + Content-Type:Sender; b=vQ0NnJ9gjeyPLhPbQx6o9UxmILkS9KrhaKG6luAS/GR + 6iR3HKXR3HE0BCkTMD5xmKL5ztFMGcU5e79fz0ch0sd2pnZ0y1WVw7KjCxsv/YtO9HM + OplAHmhwRI5zH8KKQbyvdPULvssI/ISdViAXmHw04hNPsBjsIGkTPgvNbPFuk= +X-Original-To: plasma-devel@kde.org +Delivered-To: plasma-devel@localhost.kde.org +Received: from mail.bddf.ca (unknown [64.141.113.219]) + by postbox.kde.org (Postfix) with ESMTP id 782C6B37BE6 + for ; Mon, 8 Apr 2013 09:51:17 +0000 (UTC) +Received: from freedom.localnet (242.13.24.31.ftth.as8758.net [31.24.13.242]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by mail.bddf.ca (Postfix) with ESMTPSA id 0CB712DC040 + for ; Mon, 8 Apr 2013 03:51:16 -0600 (MDT) +From: "Aaron J. Seigo" +To: plasma-devel@kde.org +Subject: activities_optional branch in kde-workspace +Date: Mon, 08 Apr 2013 11:51:11 +0200 +Message-ID: <4143483.eqrJjo7JEn@freedom> +User-Agent: KMail/4.11 pre (Linux/3.6.3-1-desktop; KDE/4.10.60; i686; + git-da50be0; 2013-03-12) +MIME-Version: 1.0 +X-Scanned-By: MIMEDefang 2.71 on 46.4.96.248 +X-BeenThere: plasma-devel@kde.org +X-Mailman-Version: 2.1.14 +Precedence: list +Reply-To: plasma-devel@kde.org +List-Id: +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +Content-Type: multipart/mixed; boundary="===============6664737512143839854==" +Errors-To: plasma-devel-bounces@kde.org +Sender: plasma-devel-bounces@kde.org + + +--===============6664737512143839854== +Content-Type: multipart/signed; boundary="nextPart1996263.NlFDv9GTkA"; micalg="pgp-sha1"; protocol="application/pgp-signature" + + +--nextPart1996263.NlFDv9GTkA +Content-Transfer-Encoding: 7Bit +Content-Type: text/plain; charset="us-ascii" + +hi.. + +i noticed a new branch when i pulled kde-workspace today (finally!): +activities_optional + +the lone commit in it was pushed on april 1, so maybe it's an april fools +joke, but if it isn't, it looks like someone is trying to do something that +makes no sense (and has no chance of being merged into master). so if this is +a "for reals" branch, perhaps the motivation behind it can be shared? + +-- +Aaron J. Seigo +--nextPart1996263.NlFDv9GTkA +Content-Type: application/pgp-signature; name="signature.asc" +Content-Description: This is a digitally signed message part. +Content-Transfer-Encoding: 7Bit + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iEUEABECAAYFAlFikxAACgkQ1rcusafx20MHbwCfeXOgTDwtR81XJwAdcQB40Lt7 +t2IAmJpIZxdU+SSruySeEfbQs3VXq/8= +=BQPF +-----END PGP SIGNATURE----- + +--nextPart1996263.NlFDv9GTkA-- + + +--===============6664737512143839854== +Content-Type: text/plain; charset="us-ascii" +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +Content-Disposition: inline + +_______________________________________________ +Plasma-devel mailing list +Plasma-devel@kde.org +https://mail.kde.org/mailman/listinfo/plasma-devel + +--===============6664737512143839854==-- + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist.mbox.html new file mode 100644 index 00000000..7acb6fbf --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist.mbox.html @@ -0,0 +1,65 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist.mbox.inProgress.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist.mbox.inProgress.html new file mode 100644 index 00000000..77c6b29b --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist.mbox.inProgress.html @@ -0,0 +1,56 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist.mbox.tree new file mode 100644 index 00000000..2753978c --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-mailinglist.mbox.tree @@ -0,0 +1,7 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::SignedMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::AttachmentMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-no-protocol.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-no-protocol.mbox new file mode 100644 index 00000000..e50879b9 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-no-protocol.mbox @@ -0,0 +1,35 @@ +Return-Path: +Delivered-To: einar@heavensinferno.net +Content-Type: multipart/signed; boundary="nextPart1996263.NlFDv9GTkA"; micalg="pgp-sha1"; protocol="application/broken-signature" + + +--nextPart1996263.NlFDv9GTkA +Content-Transfer-Encoding: 7Bit +Content-Type: text/plain; charset="us-ascii" + +hi.. + +i noticed a new branch when i pulled kde-workspace today (finally!): +activities_optional + +the lone commit in it was pushed on april 1, so maybe it's an april fools +joke, but if it isn't, it looks like someone is trying to do something that +makes no sense (and has no chance of being merged into master). so if this is +a "for reals" branch, perhaps the motivation behind it can be shared? + +-- +Aaron J. Seigo +--nextPart1996263.NlFDv9GTkA +Content-Type: application/broken-signature; name="signature.asc" +Content-Description: This is a digitally signed message part. +Content-Transfer-Encoding: 7Bit + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iEUEABECAAYFAlFikxAACgkQ1rcusafx20MHbwCfeXOgTDwtR81XJwAdcQB40Lt7 +t2IAmJpIZxdU+SSruySeEfbQs3VXq/8= +=BQPF +-----END PGP SIGNATURE----- + +--nextPart1996263.NlFDv9GTkA-- diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-no-protocol.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-no-protocol.mbox.html new file mode 100644 index 00000000..4a5f337b --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-no-protocol.mbox.html @@ -0,0 +1,36 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-no-protocol.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-no-protocol.mbox.tree new file mode 100644 index 00000000..d824a11b --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-no-protocol.mbox.tree @@ -0,0 +1,5 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::AttachmentMessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-two-attachments.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-two-attachments.mbox new file mode 100644 index 00000000..462f62a3 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-two-attachments.mbox @@ -0,0 +1,54 @@ +From: firstname.lastname@example.com +To: test@kolab.org +Subject: OpenPGP signed with 2 text attachments +Date: Sun, 30 Aug 2015 12:02:56 +0200 +Message-ID: <2033829.IGepAdxqt9@vkpc5> +X-KMail-Identity: 402312391 +X-KMail-Dictionary: en_US +User-Agent: KMail/5.0.42 pre (Linux/3.16.6-2-desktop; KDE/5.14.0; x86_64; ; ) +MIME-Version: 1.0 +Content-Type: multipart/signed; boundary="nextPart3682207.KLrp2sxpbf"; micalg="pgp-sha1"; protocol="application/pgp-signature" + +--nextPart3682207.KLrp2sxpbf +Content-Type: multipart/mixed; boundary="nextPart2397422.QDHKUNdbyg" +Content-Transfer-Encoding: 7Bit + +This is a multi-part message in MIME format. + +--nextPart2397422.QDHKUNdbyg +Content-Transfer-Encoding: 7Bit +Content-Type: text/plain; charset="us-ascii" + +this is the main body text +--nextPart2397422.QDHKUNdbyg +Content-Disposition: inline; filename="attachment1.txt" +Content-Transfer-Encoding: 7Bit +Content-Type: text/plain; charset="utf-8"; name="attachment1.txt" + +this is attachment one +--nextPart2397422.QDHKUNdbyg +Content-Disposition: inline; filename="attachment2.txt" +Content-Transfer-Encoding: 7Bit +Content-Type: text/plain; charset="utf-8"; name="attachment2.txt" + +this is attachment two +--nextPart2397422.QDHKUNdbyg-- + +--nextPart3682207.KLrp2sxpbf +Content-Type: application/pgp-signature; name="signature.asc" +Content-Description: This is a digitally signed message part. +Content-Transfer-Encoding: 7Bit + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iQEVAwUAVeLU0I2YYMWPJG3mAQL/fgf+LXmO7bKafdd4g5OOVHHyXRprVmX/6hBq +mZoor29KLIHkvAH9OJi4qBy/ZKwqqKLfttLzHb2UaAfl5kn4f0ckmnwUhU7u32Sm +JZ0Q50SxrRVFRyvTvPG22ho9IwQUO1YSZrL4wO9v8ZBQ3vkfpmAiUQVxPQMINc8L +i68xQEm4y1Dtoc+DTUkoIMeOOPnEl6PTMPrwn906K0r30hI4788fEGRn6uOXb+vD +G/ISlXu+JHIxxf/J5/jVjKNbra+trrfSPzB3piJIjBLEPO5FvLx8SgQFJcJHt/kw +ps8D5YULj/MVMLlsPtXDdZmbOi/G9pN0tr05MKcXsO5Ywe7n2BhASw== +=2Nzb +-----END PGP SIGNATURE----- + +--nextPart3682207.KLrp2sxpbf-- diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-two-attachments.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-two-attachments.mbox.html new file mode 100644 index 00000000..06718641 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-two-attachments.mbox.html @@ -0,0 +1,71 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-two-attachments.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-two-attachments.mbox.tree new file mode 100644 index 00000000..7133f4be --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/openpgp-signed-two-attachments.mbox.tree @@ -0,0 +1,9 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::SignedMessagePart + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::AttachmentMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::AttachmentMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/signed-forward-openpgp-signed-encrypted.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/signed-forward-openpgp-signed-encrypted.mbox new file mode 100644 index 00000000..9b715161 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/signed-forward-openpgp-signed-encrypted.mbox @@ -0,0 +1,92 @@ +From test@kolab.org Wed, 08 Sep 2010 17:53:29 +0200 +From: OpenPGP Test +Subject: Signed Fwd: OpenPGP signed and encrypted +Date: Wed, 08 Sep 2010 17:53:29 +0200 +User-Agent: KMail/4.6 pre (Linux/2.6.34-rc2-2-default; KDE/4.5.60; x86_64; ; ) +MIME-Version: 1.0 +Content-Type: multipart/signed; boundary="nextPart4350242.cT7m6ulPOV"; micalg="pgp-sha1"; protocol="application/pgp-signature" +Content-Transfer-Encoding: 7Bit + + +--nextPart4350242.cT7m6ulPOV +Content-Type: multipart/mixed; boundary="nextPart1512490.WQBKYaOrt8" +Content-Transfer-Encoding: 7Bit + + +--nextPart1512490.WQBKYaOrt8 +Content-Transfer-Encoding: 7Bit +Content-Type: text/plain; charset="us-ascii" + +bla bla bla +--nextPart1512490.WQBKYaOrt8 +Content-Type: message/rfc822 +Content-Disposition: inline; filename="forwarded message" +Content-Description: OpenPGP Test : OpenPGP signed and encrypted + +From: OpenPGP Test +To: test@kolab.org +Subject: OpenPGP signed and encrypted +Date: Tue, 07 Sep 2010 18:08:44 +0200 +User-Agent: KMail/4.6 pre (Linux/2.6.34-rc2-2-default; KDE/4.5.60; x86_64; ; ) +MIME-Version: 1.0 +Content-Type: multipart/encrypted; boundary="nextPart25203163.0xtB501Z4V"; protocol="application/pgp-encrypted" +Content-Transfer-Encoding: 7Bit + + +--nextPart25203163.0xtB501Z4V +Content-Type: application/pgp-encrypted +Content-Disposition: attachment + +Version: 1 +--nextPart25203163.0xtB501Z4V +Content-Type: application/octet-stream +Content-Disposition: inline; filename="msg.asc" + +-----BEGIN PGP MESSAGE----- +Version: GnuPG v2.0.15 (GNU/Linux) + +hQEMAwzOQ1qnzNo7AQf7BFYWaGiCTGtXY59bSh3LCXNnWZejblYALxIUNXOFEXbm +y/YA95FmQsy3U5HRCAJV/DY1PEaJz1RTm9bcdIpDC3Ab2YzSwmOwV5fcoUOB2df4 +KjX19Q+2F3JxpPQ0N1gHf4dKfIu19LH+CKeFzUN13aJs5J4A5wlj+NjJikxzmxDS +kDtNYnd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/Lkv4m0pzliHQ/KkGF710koBzTmF +N7+wk9pwIuvcrEBQj567 +=GV0c +-----END PGP MESSAGE----- + +--nextPart25203163.0xtB501Z4V-- + +--nextPart1512490.WQBKYaOrt8-- + +--nextPart4350242.cT7m6ulPOV +Content-Type: application/pgp-signature; name="signature.asc" +Content-Description: This is a digitally signed message part. + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.15 (GNU/Linux) + +iQEcBAABAgAGBQJMh7F5AAoJEI2YYMWPJG3mOB0IALeHfwg8u7wK0tDKtKqxQSqC +2Bbk4pTLuLw/VniQNauDG+kc1eUc5RJk/R31aB1ysiQCV5Q8ucI8c9vCDDMbd+s4 +t2bZUEzMpXrw/aFiHgYGXFAY+tpqZqDGNVRNHWsPYJKtx8cci9E5DLnBJcVXVqib +3iiHlr9AQOok3PUmpPk1a61q2L0kk8wqRenC0yZXNw5qFn5WW/hFeCOfYB+t+s5N +IuE6ihFCJIlvGborrvl6VgPJTCyUQ3XgI90vS6ABN8TFlCNr3grXOWUePc2a20or +xFgh38cnSR64WJajU5K1nUL9/RgfIcs+PvyHuJaRf/iUFkj1jiMEuaSi9jVFco0= +=bArV +-----END PGP SIGNATURE----- + +--nextPart4350242.cT7m6ulPOV-- diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/signed-forward-openpgp-signed-encrypted.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/signed-forward-openpgp-signed-encrypted.mbox.html new file mode 100644 index 00000000..b91772b7 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/signed-forward-openpgp-signed-encrypted.mbox.html @@ -0,0 +1,105 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/signed-forward-openpgp-signed-encrypted.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/signed-forward-openpgp-signed-encrypted.mbox.tree new file mode 100644 index 00000000..818f894c --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/signed-forward-openpgp-signed-encrypted.mbox.tree @@ -0,0 +1,10 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::SignedMessagePart + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart + * MimeTreeParser::EncapsulatedRfc822MessagePart + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::SignedMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-cert.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-cert.mbox new file mode 100644 index 00000000..b3c8a19e --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-cert.mbox @@ -0,0 +1,24 @@ +From test@example.com Sat, 13 Apr 2013 01:54:30 +0200 +From: test +To: you@you.com +Subject: test +Date: Sat, 13 Apr 2013 01:54:30 +0200 +Message-ID: <1576646.QQxzHWx8dA@tabin> +X-KMail-Identity: 505942601 +User-Agent: KMail/4.10.2 (Linux/3.9.0-rc4-experimental-amd64; KDE/4.10.60; x86_64; git-fc9b82c; 2013-04-11) +MIME-Version: 1.0 +Content-Type: application/pkcs7-mime; name="smime.crt"; smime-type="certs-only" +Content-Transfer-Encoding: base64 +Content-Disposition: attachment; filename="smime.crt" + +asdfasdfasdfasdfasdfasdfasdfasdf +asdfasdfadsfsadfasdf +asdfasdf +sadfas +dfasdf +sadf +sadf +adsf +adsf +asdf + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-cert.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-cert.mbox.html new file mode 100644 index 00000000..1b86390f --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-cert.mbox.html @@ -0,0 +1,10 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-cert.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-cert.mbox.tree new file mode 100644 index 00000000..c34c2eca --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-cert.mbox.tree @@ -0,0 +1,2 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::CertMessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted-octet-stream.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted-octet-stream.mbox new file mode 100644 index 00000000..887fe358 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted-octet-stream.mbox @@ -0,0 +1,23 @@ +From test@example.com Sat, 13 Apr 2013 01:54:30 +0200 +From: test +To: you@you.com +Subject: test +Date: Sat, 13 Apr 2013 01:54:30 +0200 +Message-ID: <1576646.QQxzHWx8dA@tabin> +X-KMail-Identity: 505942601 +User-Agent: KMail/4.10.2 (Linux/3.9.0-rc4-experimental-amd64; KDE/4.10.60; x86_64; git-fc9b82c; 2013-04-11) +MIME-Version: 1.0 +Content-Type: application/octet-stream; + name="smime.p7m" +Content-Transfer-Encoding: base64 +Content-Disposition: attachment; filename="smime.p7m" + +MIAGCSqGSIb3DQEHA6CAMIACAQAxgfwwgfkCAQAwYjBVMQswCQYDVQQGEwJVUzENMAsGA1UECgwE +S0RBQjEWMBQGA1UEAwwNdW5pdHRlc3QgY2VydDEfMB0GCSqGSIb3DQEJARYQdGVzdEBleGFtcGxl +LmNvbQIJANNFIDoYY4XJMA0GCSqGSIb3DQEBAQUABIGAJwmmaOeidXUHSQGOf2OBIsPYafVqdORe +y54pEXbXiAfSVUWgI4a9CsiWwcDX8vlaX9ZLLr+L2VmOfr6Yc5214yxzausZVvnUFjy6LUXotuEX +tSar4EW7XI9DjaZc1l985naMsTx9JUa5GyQ9J6PGqhosAKpKMGgKkFAHaOwE1/IwgAYJKoZIhvcN +AQcBMBQGCCqGSIb3DQMHBAieDfmz3WGbN6CABHgEpsLrNn0PAZTDUfNomDypvSCl5bQH+9cKm80m +upMV2r8RBiXS7OaP4SpCxq18afDTTPatvboHIoEX92taTbq8soiAgEs6raSGtEYZNvFL0IYqm7MA +o5HCOmjiEcInyPf14lL3HnPk10FaP3hh58qTHUh4LPYtL7UECOZELYnUfUVhAAAAAAAAAAAAAA== + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted-octet-stream.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted-octet-stream.mbox.html new file mode 100644 index 00000000..6b08c47e --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted-octet-stream.mbox.html @@ -0,0 +1,31 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted-octet-stream.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted-octet-stream.mbox.tree new file mode 100644 index 00000000..82f705c2 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted-octet-stream.mbox.tree @@ -0,0 +1,4 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted.mbox new file mode 100644 index 00000000..6b6d6a0d --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted.mbox @@ -0,0 +1,22 @@ +From test@example.com Sat, 13 Apr 2013 01:54:30 +0200 +From: test +To: you@you.com +Subject: test +Date: Sat, 13 Apr 2013 01:54:30 +0200 +Message-ID: <1576646.QQxzHWx8dA@tabin> +X-KMail-Identity: 505942601 +User-Agent: KMail/4.10.2 (Linux/3.9.0-rc4-experimental-amd64; KDE/4.10.60; x86_64; git-fc9b82c; 2013-04-11) +MIME-Version: 1.0 +Content-Type: application/pkcs7-mime; name="smime.p7m"; smime-type="enveloped-data" +Content-Transfer-Encoding: base64 +Content-Disposition: attachment; filename="smime.p7m" + +MIAGCSqGSIb3DQEHA6CAMIACAQAxgfwwgfkCAQAwYjBVMQswCQYDVQQGEwJVUzENMAsGA1UECgwE +S0RBQjEWMBQGA1UEAwwNdW5pdHRlc3QgY2VydDEfMB0GCSqGSIb3DQEJARYQdGVzdEBleGFtcGxl +LmNvbQIJANNFIDoYY4XJMA0GCSqGSIb3DQEBAQUABIGAJwmmaOeidXUHSQGOf2OBIsPYafVqdORe +y54pEXbXiAfSVUWgI4a9CsiWwcDX8vlaX9ZLLr+L2VmOfr6Yc5214yxzausZVvnUFjy6LUXotuEX +tSar4EW7XI9DjaZc1l985naMsTx9JUa5GyQ9J6PGqhosAKpKMGgKkFAHaOwE1/IwgAYJKoZIhvcN +AQcBMBQGCCqGSIb3DQMHBAieDfmz3WGbN6CABHgEpsLrNn0PAZTDUfNomDypvSCl5bQH+9cKm80m +upMV2r8RBiXS7OaP4SpCxq18afDTTPatvboHIoEX92taTbq8soiAgEs6raSGtEYZNvFL0IYqm7MA +o5HCOmjiEcInyPf14lL3HnPk10FaP3hh58qTHUh4LPYtL7UECOZELYnUfUVhAAAAAAAAAAAAAA== + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted.mbox.html new file mode 100644 index 00000000..6b08c47e --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted.mbox.html @@ -0,0 +1,31 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted.mbox.inProgress.html b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted.mbox.inProgress.html new file mode 100644 index 00000000..e5eb55d0 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted.mbox.inProgress.html @@ -0,0 +1,24 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted.mbox.tree new file mode 100644 index 00000000..82f705c2 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-encrypted.mbox.tree @@ -0,0 +1,4 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-enc+sign.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-enc+sign.mbox new file mode 100644 index 00000000..be75c1e2 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-enc+sign.mbox @@ -0,0 +1,37 @@ +From test@example.com Fri Sep 11 10:18:48 2015 +From: test +To: you@you.com +Subject: enc+sign +Date: Fri, 11 Sep 2015 12:18:48 +0200 +Message-ID: <49743203.WFa6qKaG4S@tabin.local> +X-KMail-Identity: 792434561 +User-Agent: KMail/4.13.0.1 (Linux/4.1.5-towo.1-siduction-amd64; KDE/4.14.2; x86_64; ; ) +MIME-Version: 1.0 +Content-Type: application/pkcs7-mime; name="smime.p7m"; smime-type="enveloped-data" +Content-Transfer-Encoding: base64 +Content-Disposition: attachment; filename="smime.p7m" + +MIAGCSqGSIb3DQEHA6CAMIACAQAxgfwwgfkCAQAwYjBVMQswCQYDVQQGEwJVUzENMAsGA1UECgwE +S0RBQjEWMBQGA1UEAwwNdW5pdHRlc3QgY2VydDEfMB0GCSqGSIb3DQEJARYQdGVzdEBleGFtcGxl +LmNvbQIJANNFIDoYY4XJMA0GCSqGSIb3DQEBAQUABIGAkttyRl8OyZkRGfs3CMfzYchrG4rRMfbE +WIkAFIXf64yAzPZfo6cCn0Il/6q4793FeKUrsJUvzP21KBLp4u1t5qLL5iPAmAzBdLg0teoEzLZe +CEZHinM+WSMdz2wEV8lgAt8x/3yhXmDMB09FEapUaBCK5NhbLAFkpI2mFg66zxcwgAYJKoZIhvcN +AQcBMB0GCWCGSAFlAwQBAgQQ6DSjjkXJNm5cXQNek9eozqCABIIDsI7lufq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zeVuPoUYBNhsgp/ +PZgudzQoOhxcF4ChHMVSNk1f1tlvXZppeXwv9OwpSszz0zZUr46ievpkQwL0Sa1XAfKwAt7bFJwp +i95ae7p58ZdizJVsz0QUhFDxIDL76qiPEYXC7nIf4ZPQ36dzLAfZ6OwWGffluxHpE6oqUoM3l320 +7yQT66xfRKLGl5Cr1Q8UBBABC6aR2dt6RVbsxbR3mB0PAAAAAAAAAAAAAA== + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-enc+sign.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-enc+sign.mbox.html new file mode 100644 index 00000000..7f60c04f --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-enc+sign.mbox.html @@ -0,0 +1,57 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-enc+sign.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-enc+sign.mbox.tree new file mode 100644 index 00000000..7d5bbeb7 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-enc+sign.mbox.tree @@ -0,0 +1,5 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::SignedMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-sign.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-sign.mbox new file mode 100644 index 00000000..6e1739ac --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-sign.mbox @@ -0,0 +1,25 @@ +From test@example.com Fri Sep 11 10:16:06 2015 +From: test +To: you@you.com +Subject: sign only +Date: Fri, 11 Sep 2015 12:16:06 +0200 +Message-ID: <3182420.pXWeMPZlAJ@tabin.local> +X-KMail-Identity: 792434561 +User-Agent: KMail/4.13.0.1 (Linux/4.1.5-towo.1-siduction-amd64; KDE/4.14.2; x86_64; ; ) +MIME-Version: 1.0 +Content-Type: application/pkcs7-mime; name="smime.p7m"; smime-type="signed-data" +Content-Transfer-Encoding: base64 +Content-Disposition: attachment; filename="smime.p7m" + +MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAaCAJIAEZUNvbnRl +bnQtVHJhbnNmZXItRW5jb2Rpbmc6IDdCaXQKQ29udGVudC1UeXBlOiB0ZXh0L3BsYWluOyBjaGFy +c2V0PSJ1dGYtOCIKCkEgc2ltcGxlIHNpZ25lZCBvbmx5IHRlc3QuAAAAAAAAMYIBkjCCAY4CAQEw +YjBVMQswCQYDVQQGEwJVUzENMAsGA1UECgwES0RBQjEWMBQGA1UEAwwNdW5pdHRlc3QgY2VydDEf +MB0GCSqGSIb3DQEJARYQdGVzdEBleGFtcGxlLmNvbQIJANNFIDoYY4XJMAkGBSsOAwIaBQCggYcw +GAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTMwMTEwMTU0ODEyWjAj +BgkqhkiG9w0BCQQxFgQUvJ5zI7oyv5fNx1H1wabIa6atsdcwKAYJKoZIhvcNAQkPMRswGTALBglg +hkgBZQMEAQIwCgYIKoZIhvcNAwcwDQYJKoZIhvcNAQEBBQAEgYAHFCw88FPy1n2lu5ql5sD2J4Yi +2/N9gUQvNQF5F/kd48HncdihLPZRs7eEX7IzDZNeylTmyp2WIiGEwQrIHbxtqU32NRouc09Zv4bu +iUwUoz1SM2s7qipikwayQMD3d5zWNhszNLBsw8z48uXAzjZAejBCfPP0/w3z7DZDJC2R2QAAAAAA +AA== + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-sign.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-sign.mbox.html new file mode 100644 index 00000000..6088bc72 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-sign.mbox.html @@ -0,0 +1,40 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-sign.mbox.inProgress.html b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-sign.mbox.inProgress.html new file mode 100644 index 00000000..45a999d3 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-sign.mbox.inProgress.html @@ -0,0 +1,22 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-sign.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-sign.mbox.tree new file mode 100644 index 00000000..a469bb76 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-sign.mbox.tree @@ -0,0 +1,4 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::SignedMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-signed-encrypted-attachment.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-signed-encrypted-attachment.mbox new file mode 100644 index 00000000..2b1a0761 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-opaque-signed-encrypted-attachment.mbox @@ -0,0 +1,50 @@ +From test@example.com Thu Jun 09 12:52:44 2016 +From: test@example.com +To: test@example.com +Subject: Opaque S/MIME signed and encrypted message with attachment +Date: Thu, 09 Jun 2016 14:52:44 +0200 +MIME-Version: 1.0 +Content-Type: application/pkcs7-mime; name="smime.p7m"; smime-type="enveloped-data" +Content-Transfer-Encoding: base64 +Content-Disposition: attachment; filename="smime.p7m" + +MIAGCSqGSIb3DQEHA6CAMIACAQAxgfwwgfkCAQAwYjBVMQswCQYDVQQGEwJVUzEN +MAsGA1UECgwES0RBQjEWMBQGA1UEAwwNdW5pdHRlc3QgY2VydDEfMB0GCSqGSIb3 +DQEJARYQdGVzdEBleGFtcGxlLmNvbQIJANNFIDoYY4XJM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Zv4EQZDqi2Hdx0wNDGr +yOQkK/LvXep0r5AEYcMkLO1x4hReaKdnSEPFRdXF/x7daAlRMTkUe5i4zLeYYhvI +Qsl3aErcSP/DWVUyQ2XbHkrG9suPbmLBou7BHNRWXdnFib0+jASQnVKuhVLGykUr +wzTNpGrn7Axna1P3uMwSnlJgA0vSrkR2dONzyq0hzoMmAjfC3Eh1D7tYbb6Cswx7 +5/Emq2cEEGtbyTJ5Q6+omALrsoybx4YAAAAAAAAAAAAA diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-apple.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-apple.mbox new file mode 100644 index 00000000..d5cd06f1 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-apple.mbox @@ -0,0 +1,197 @@ +From: Quack +Content-Type: multipart/signed; boundary="Apple-Mail=_607FF8D2-30E0-4FC3-86D9-1234567890AB"; protocol="application/pkcs7-signature"; micalg=sha1 +Message-Id: <468684BD-9CBD-48CF-B1BD-2824000F9541@example.org> +Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) +Subject: Re: PDF bug - modified mail, signature is not valid! +Date: Fri, 20 Jan 2017 11:51:41 +0100 +To: Konqui + + +--Apple-Mail=_607FF8D2-30E0-4FC3-86D9-1234567890AB +Content-Type: multipart/alternative; + boundary="Apple-Mail=_C5F90221-8F52-4623-99DF-1234567890AB" + + +--Apple-Mail=_C5F90221-8F52-4623-99DF-1234567890AB +Content-Transfer-Encoding: quoted-printable +Content-Type: text/plain; + charset=utf-8 + +Ol=C3=A1 Konqui, + +Here is the pdf you asked for! +Cheers, + +Quaak + +=E2=80=A6 +Quack | UX/UI Designer +Klar=C3=A4lvdalens Datakonsult AB, a KDAB Group company +Sweden (HQ) +46-563-540090, Germany +49-30-521325470 +KDAB - The Qt, C++ and OpenGL Experts | www.kdab.com + + +--Apple-Mail=_C5F90221-8F52-4623-99DF-1234567890AB +Content-Type: multipart/mixed; + boundary="Apple-Mail=_1C4D1EDB-36C5-40D7-9AB6-1234567890AB" + + +--Apple-Mail=_1C4D1EDB-36C5-40D7-9AB6-1234567890AB +Content-Transfer-Encoding: quoted-printable +Content-Type: text/html; + charset=utf-8 + +Ol=C3=A1 Konqui,
= + +--Apple-Mail=_1C4D1EDB-36C5-40D7-9AB6-1234567890AB +Content-Disposition: attachment; filename="image.png" +Content-Transfer-Encoding: base64 +Content-Type: image/png; name="image.png" + +iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAlwSFlzAAAb +rwAAG68BXhqRHAAAAAd0SU1FB9gHFg8aNG8uqeIAAAAGYktHRAD/AP8A/6C9p5MAAAkqSURBVHja +5VV7cFTVGf/OPefeu3fv3t1NdhMSCHkKASEpyEsaGwalWEWntLV1Wu0fdOxAx9Iq0xntAwac6ehY +p+rwKLbjjLRFh9JadURKRGgFQTTECCYQE9nNgzzYZDe7m33d1+l3tpOOU61T2tF/+s1s7pzn9/t+ +v993Av/3QT6FO6WdO/d+M55Il8rMOdrT0x3Zt++3+c8EgM/nozseeviJiYmpe1zOQdM8BOOCIku/ +lIj1VrQ/0r9n9+78xwLgeAA3w4fHXV1d5Omnn6aapumlJSVVqalUJJvJZRdcu0RSfZQsaW7mjfPm +cbF9+/btEIlEaq6Z03whXyhIjDFuGIZEKSP5fMFRVcVNT2Vf0jzsmMxYGtel9rff/vM/M8bjcZpM +Jp1XX32VNDc3e7ovRP3JyZGVNdXVd1FGGwKBQEM8njiWTKV36IHgEACwibGx62LjU/cBd01Zljoc +p9DHmLbHsmyK1UuKooJt24IMcLE+y3L45eEYLS8LgWH4YXR0bAPZtGmTVFvfoBZMEzKpFKmqqmqp +qane4DhOteH3L1FkWZVlGSzLAtd1Oe4773C4LxoZvDWXh82OY2MtwAuFvCvSyDIFXdelYDDIvF4d +xPzA0AgXFStMcWPxBPGoKvXpPh6JDG5hK1Zcv1H36Xc6tsMs21EMQ69CLSts2wGkDyg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2A7p5yYBY93Gu+4f +H5xojLwOxfjd/WufOHhQ/IcD7eYVC5YyCjFMfkVV4NpMFvpTachoZeDaNryLnliOczsUCv1XBWD8 +YjF5MWJ9kcT757qenR7vf4bDoqWwHCvUUfPNsQQMWSZAZTlsw7nxYQQTcuDrjgQuPn7z/D7YivNt +nPPfEDzwqcU75/j6SD/f8uG5vXs5dL7Hjb+d4gp8mnF8nAOabjcac+OBAxyuNiT4HyNwGZYgu0RW +IDt/Icz4zAC0tXE4183rQ6XwU9uBXgLQ5Teg7GIv1+EqgsF/GY4DtCQALZMp2ITttmqoHzpWr756 +o/0d59+Lh3Y1HHcAAAAASUVORK5CYII= +--Apple-Mail=_1C4D1EDB-36C5-40D7-9AB6-1234567890AB +Content-Transfer-Encoding: quoted-printable +Content-Type: text/html; + charset=utf-8 + += +
+
= += + +--Apple-Mail=_1C4D1EDB-36C5-40D7-9AB6-1234567890AB-- + +--Apple-Mail=_C5F90221-8F52-4623-99DF-1234567890AB-- + +--Apple-Mail=_607FF8D2-30E0-4FC3-86D9-1234567890AB +Content-Disposition: attachment; + filename=smime.p7s +Content-Type: application/pkcs7-signature; + name=smime.p7s +Content-Transfer-Encoding: base64 + +MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIILdTCCBRow +ggQCoAMCAQICEG0Z6qcZT2ozIuYiMnqqcd4wDQYJKoZIhvcNAQEFBQAwga4xCzAJBgNVBAYTAlVT +MQswCQYDVQQIEwJVVDEXMBUGA1UEBxMOU2FsdCBMYWtlIENpdHkxHjAcBgNVBAoTFVRoZSBVU0VS +VFJVU1QgTmV0d29yazEhMB8GA1UECxMYaHR0cDovL3d3dy51c2VydHJ1c3QuY29tMTYwNAYDVQQD +Ey1VVE4tVVNFUkZpcnN0LUNsaWVudCBBdXRoZW50aWNhdGlvbiBhbmQgRW1haWwwHhcNMTEwNDI4 +MDAwMDAwWhcNMjAwNTMwMTA0ODM4WjCBkzELMAk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Gckd6L+iGIwbpTCBuwYLKoZIhvcNAQkQ +AgsxgauggagwgZMxCzAJBgNVBAYTAkdCMRswGQYDVQQIExJHcmVhdGVyIE1hbmNoZXN0ZXIxEDAO +BgNVBAcTB1NhbGZvcmQxGjAYBgNVBAoTEUNPTU9ETyBDQSBMaW1pdGVkMTkwNwYDVQQDEzBDT01P +RE8gQ2xpZW50IEF1dGhlbnRpY2F0aW9uIGFuZCBTZWN1cmUgRW1haWwgQ0ECEDBT3pfLPhnJHei/ +ohiMG6UwDQYJKoZIhvcNAQEBBQAEggEAEIfTyPoqjyJwrpYmZWRF6OY5ZCFdpw1UUfSXYUU2IdbL +ph8QkMCc9uv5wk2IeE/9UxxvUR44J67Bu8hv/PCaeyMSh1j2peOlFG487SwyTjf5wIL+GEs8zvHo +4+Dd2IPhAExt1Bjhmt6O7caF9LVrGQ/wlI6ZGN8MgjSgdrK4F3Ig4LbMuyTTcy3hDTvb+qzaQ4YI +E+F4tnwhXG8FGEBnlng6nB4iXhoWSvBsjc1qF6eHEHzsOIZeNL7K6Imn7oKHJg+THGwHxC1TZGFt +G92u6zV7Sc/i4ENH2MNzXT75mp8Gq/k6gpRz9nw8UVuLN/rDIb6esnEgVH9ad3awD154HAAAAAAA +AA== +--Apple-Mail=_607FF8D2-30E0-4FC3-86D9-1234567890AB-- + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-apple.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-apple.mbox.html new file mode 100644 index 00000000..11652a14 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-apple.mbox.html @@ -0,0 +1,58 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-apple.mbox.inProgress.html b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-apple.mbox.inProgress.html new file mode 100644 index 00000000..5b57b937 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-apple.mbox.inProgress.html @@ -0,0 +1,49 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-apple.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-apple.mbox.tree new file mode 100644 index 00000000..3ade4efe --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-apple.mbox.tree @@ -0,0 +1,3 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::SignedMessagePart + * MimeTreeParser::AlternativeMessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-encrypted.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-encrypted.mbox new file mode 100644 index 00000000..49857e15 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-encrypted.mbox @@ -0,0 +1,38 @@ +From test@example.com Wed, 08 Sep 2010 17:51:32 +0200 +From: S/MIME Test +To: test@example.com +Subject: S/MIME signed and encrypted +Date: Wed, 08 Sep 2010 17:51:32 +0200 +User-Agent: KMail/4.6 pre (Linux/2.6.34-rc2-2-default; KDE/4.5.60; x86_64; ; ) +MIME-Version: 1.0 +Content-Type: application/pkcs7-mime; name="smime.p7m"; smime-type="enveloped-data" +Content-Disposition: attachment; filename="smime.p7m" +Content-Transfer-Encoding: base64 + +MIAGCSqGSIb3DQEHA6CAMIACAQAxgfwwgfkCAQAwYjBVMQswCQYDVQQGEwJVUzENMAsGA1UECgwE +S0RBQjEWMBQGA1UEAwwNdW5pdHRlc3QgY2VydDEfMB0GCSqGSIb3DQEJARYQdGVzdEBleGFtcGxl +LmNvbQIJANNFIDoYY4XJMA0GCSqGSIb3DQEBAQUABIGAl7xMheBEpCAwYsr64BE1WY6ohFTuoxV4 +/F8NXDyH+RZqpdpF6ltEThAgZBsYlhx2olMHIINfifsnzkxYiSwvuZkD94KMcegdn1XGPAYTQnR6 +8IK+grfHM5kWYW36XAbZmHNgl1lTh1/tqCyqDCI+Yah6UtBaJbR4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TUH6Bq8kf3FuKz+MJDwbl417ctL ++ojLATnLgKu+x/B6H1sOd2E6KY73SlCoKG/AfzSelbVPUZbbUU7kOECvzKWY/Zx/a55FBkF6ASm9 +6CgFk5VVuyG2VbncLtesluJJOTTYEHl20RaiGYJNUL22tTe5nCIdIrKzOI4xMXQBAZcPSdojlNIj +bSRRX+9jJIRUIExncNZvWn7VtsD1v7gLFD+BN98Cy5E7n/1NByQTOpoislrVi/sMRJQ9bPs/j5sL +B2tzVR08ODQYfdWWT+1ynbvegBx4wi8I2Orc5BEW+0NjUdnUHTFORBEnq8CjSRgHyckcsJMJommM +m4wvkQj7YX/cps8QqCPzEKAdykU2hsd6sEycKtxi3gW6uDIOMwzapkxZSH7IcMriWBDXRsMebHsv ++R0A8eT7dC09cgQw+kScSe+cYgRZk0R/26eqhukprECaf9SptYll10GQ0eLcIpX4deXr0ZNmAHYy ++5D7yoysVFNyC5QE3tAhS1HapixB8lPeJUndifGfbt3u8lpFb7lodnJIj2oHgo5MUNkxhPchHW0t +GJMpP9esdvIZxwQInpSuNeUy6Z8AAAAAAAAAAAAA diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-encrypted.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-encrypted.mbox.html new file mode 100644 index 00000000..e13d6841 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-encrypted.mbox.html @@ -0,0 +1,55 @@ + + + + + + + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-encrypted.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-encrypted.mbox.tree new file mode 100644 index 00000000..7d5bbeb7 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/smime-signed-encrypted.mbox.tree @@ -0,0 +1,5 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::EncryptedMessagePart + * MimeTreeParser::SignedMessagePart + * MimeTreeParser::TextMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/text+html-maillinglist.mbox b/framework/src/domain/mimetreeparser/otp/autotests/data/text+html-maillinglist.mbox new file mode 100644 index 00000000..f9c6387f --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/text+html-maillinglist.mbox @@ -0,0 +1,163 @@ +Return-Path: +Received: from kolab01.kolabsys.com ([unix socket]) + by kolab01.kolabsys.com (Cyrus v2.4.17-Kolab-2.4.17-1.el6.kolab_3.0) with LMTPA; + Thu, 11 Apr 2013 09:03:01 +0200 +X-Sieve: CMU Sieve 2.4 +Received: from ext-mx01.kolabsys.com (unknown [10.10.20.253]) + by kolab01.kolabsys.com (Postfix) with ESMTP id 3D8A9C0AE3 + for ; Thu, 11 Apr 2013 09:03:01 +0200 (CEST) +Received: from localhost (localhost [127.0.0.1]) + by ext-mx01.kolabsys.com (Postfix) with ESMTP id 89D4E10057E + for ; Thu, 11 Apr 2013 09:02:38 +0200 (CEST) +X-Virus-Scanned: amavisd-new at example.com +X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "MIME-Version" +Received: from ext-mx01.kolabsys.com ([127.0.0.1]) + by localhost (fw01.kolabsys.com [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id BJxrh9Yst1Ac + for ; + Thu, 11 Apr 2013 09:02:38 +0200 (CEST) +Received: from lists.kolabsys.com (static.253.32.46.78.clients.your-server.de [78.46.32.253]) + by ext-mx01.kolabsys.com (Postfix) with ESMTP id 609821004A7 + for ; Thu, 11 Apr 2013 09:02:38 +0200 (CEST) +Received: from localhost (localhost [127.0.0.1]) + by lists.kolabsys.com (Postfix) with ESMTP id BFA6941D4EAD; + Thu, 11 Apr 2013 09:03:00 +0200 (CEST) +X-Virus-Scanned: Debian amavisd-new at lists.kolabsys.com +X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "MIME-Version" +Received: from lists.kolabsys.com ([127.0.0.1]) + by localhost (lists.kolabsys.com [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id TYU5eAMK5J6T; Thu, 11 Apr 2013 09:02:58 +0200 (CEST) +Received: from lists.kolabsys.com (localhost [127.0.0.1]) + by lists.kolabsys.com (Postfix) with ESMTP id 182FC41D2A3B; + Thu, 11 Apr 2013 09:02:58 +0200 (CEST) +Received: from localhost (localhost [127.0.0.1]) + by lists.kolabsys.com (Postfix) with ESMTP id A2B3641D4EC2 + for ; + Thu, 11 Apr 2013 09:02:56 +0200 (CEST) +X-Virus-Scanned: Debian amavisd-new at lists.kolabsys.com +Received: from lists.kolabsys.com ([127.0.0.1]) + by localhost (lists.kolabsys.com [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id cyO-CNB3vFwu for ; + Thu, 11 Apr 2013 09:02:54 +0200 (CEST) +Received: from ext-mx02.kolabsys.com (ext-mx02.kolabsys.com [94.230.208.222]) + by lists.kolabsys.com (Postfix) with ESMTP id 1640E41D2A3B + for ; + Thu, 11 Apr 2013 09:02:54 +0200 (CEST) +Received: from localhost (localhost [127.0.0.1]) + by ext-mx01.kolabsys.com (Postfix) with ESMTP id 58CBC160522 + for ; + Thu, 11 Apr 2013 10:02:44 +0200 (CEST) +X-Virus-Scanned: amavisd-new at example.com +Received: from ext-mx02.kolabsys.com ([127.0.0.1]) + by localhost (fw02.kolabsys.com [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 4VjnHg6Y6jo7 for ; + Thu, 11 Apr 2013 10:02:42 +0200 (CEST) +Received: from app04.kolabsys.com (unknown [10.10.20.16]) + by ext-mx02.kolabsys.com (Postfix) with ESMTP id 062DF160521 + for ; + Thu, 11 Apr 2013 10:02:42 +0200 (CEST) +Received: by app04.kolabsys.com (Postfix, from userid 48) + id 8E7524048C; Thu, 11 Apr 2013 09:02:51 +0200 (CEST) +From: Kolab Bugzilla +To: bugzilla@lists.kolabsys.com +Subject: [Bug 1741] Standard folder name configuration ignored on creating + new users +Date: Thu, 11 Apr 2013 07:02:43 +0000 +X-Bugzilla-Reason: GlobalWatcher +X-Bugzilla-Type: changed +X-Bugzilla-Watch-Reason: None +X-Bugzilla-Product: UCS +X-Bugzilla-Component: roundcube +X-Bugzilla-Keywords: +X-Bugzilla-Severity: normal +X-Bugzilla-Who: wickert@kolabsys.com +X-Bugzilla-Status: NEW +X-Bugzilla-Priority: P3 +X-Bugzilla-Assigned-To: machniak@kolabsys.com +X-Bugzilla-Target-Milestone: 3.1-next +X-Bugzilla-Changed-Fields: +Message-ID: +In-Reply-To: +References: +X-Bugzilla-URL: http://issues.kolab.org/ +Auto-Submitted: auto-generated +MIME-Version: 1.0 +X-BeenThere: bugzilla@lists.kolabsys.com +X-Mailman-Version: 2.1.11 +Precedence: list +Reply-To: server-team@lists.kolabsys.com +List-Id: All Bugzilla email notifications +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +Content-Type: multipart/mixed; boundary="===============1778809852==" +Mime-version: 1.0 +Sender: bugzilla-bounces@lists.kolabsys.com +Errors-To: bugzilla-bounces@lists.kolabsys.com + + +--===============1778809852== +Content-Type: multipart/alternative; boundary="1365663771.ec4d382.10226"; charset="us-ascii" + + +--1365663771.ec4d382.10226 +Date: Thu, 11 Apr 2013 09:02:51 +0200 +MIME-Version: 1.0 +Content-Type: text/plain; charset="UTF-8" + +https://issues.kolab.org/show_bug.cgi?id=1741 + +--- Comment #4 from Christoph Wickert --- +You can get everything you need on test93-18. + +-- +You are receiving this mail because: +You are watching all bug changes. + +--1365663771.ec4d382.10226 +Date: Thu, 11 Apr 2013 09:02:51 +0200 +MIME-Version: 1.0 +Content-Type: text/html; charset="UTF-8" + + + + + + + Comment # 4 + on bug 1741 + from + +
You can get everything you need on test93-18.
+ You are receiving this mail because: +
    +
  • You are watching all bug changes.
  • +
+ + + +--1365663771.ec4d382.10226-- + +--===============1778809852== +Content-Type: text/plain; charset="us-ascii" +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +Content-Disposition: inline + +_______________________________________________ +bugzilla mailing list +bugzilla@lists.kolabsys.com +https://lists.kolabsys.com/mailman/listinfo/bugzilla + +--===============1778809852==-- + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/text+html-maillinglist.mbox.html b/framework/src/domain/mimetreeparser/otp/autotests/data/text+html-maillinglist.mbox.html new file mode 100644 index 00000000..2b5af631 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/text+html-maillinglist.mbox.html @@ -0,0 +1,38 @@ + + + + +
+ +
+ +
+ +
+
+ Comment # 4on bug 1741from +
You can get everything you need on test93-18.
+ You are receiving this mail because: +
    +
  • You are watching all bug changes.
  • +
+
+
+
+ + +
+
+ + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/data/text+html-maillinglist.mbox.tree b/framework/src/domain/mimetreeparser/otp/autotests/data/text+html-maillinglist.mbox.tree new file mode 100644 index 00000000..3738cb37 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/data/text+html-maillinglist.mbox.tree @@ -0,0 +1,5 @@ + * MimeTreeParser::MessagePartList + * MimeTreeParser::MimeMessagePart + * MimeTreeParser::AlternativeMessagePart + * MimeTreeParser::AttachmentMessagePart + * MimeTreeParser::MessagePart diff --git a/framework/src/domain/mimetreeparser/otp/autotests/kdepim_add_gpg_crypto_test.cmake b/framework/src/domain/mimetreeparser/otp/autotests/kdepim_add_gpg_crypto_test.cmake new file mode 100644 index 00000000..ea0ab8d2 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/kdepim_add_gpg_crypto_test.cmake @@ -0,0 +1,61 @@ +# Copyright (c) 2013 Sandro Knauß +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + +set( MIMETREEPARSERRELPATH framework/src/domain/mimetreeparser) +set( GNUPGHOME ${CMAKE_BINARY_DIR}/${MIMETREEPARSERRELPATH}/tests/gnupg_home ) +add_definitions( -DGNUPGHOME="${GNUPGHOME}" ) + +macro (ADD_GPG_CRYPTO_TEST _target _testname) + if (UNIX) + if (APPLE) + set(_library_path_variable "DYLD_LIBRARY_PATH") + elseif (CYGWIN) + set(_library_path_variable "PATH") + else (APPLE) + set(_library_path_variable "LD_LIBRARY_PATH") + endif (APPLE) + + if (APPLE) + # DYLD_LIBRARY_PATH does not work like LD_LIBRARY_PATH + # OSX already has the RPATH in libraries and executables, putting runtime directories in + # DYLD_LIBRARY_PATH actually breaks things + set(_ld_library_path "${LIBRARY_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/") + else (APPLE) + set(_ld_library_path "${LIBRARY_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/:${LIB_INSTALL_DIR}:${QT_LIBRARY_DIR}") + endif (APPLE) + set(_executable "$") + + # use add_custom_target() to have the sh-wrapper generated during build time instead of cmake time + add_custom_command(TARGET ${_target} POST_BUILD + COMMAND ${CMAKE_COMMAND} + -D_filename=${_executable}.shell -D_library_path_variable=${_library_path_variable} + -D_ld_library_path="${_ld_library_path}" -D_executable=$ + -D_gnupghome="${GNUPGHOME}" + -P ${CMAKE_SOURCE_DIR}/${MIMETREEPARSERRELPATH}/tests/kdepim_generate_crypto_test_wrapper.cmake + ) + + set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES "${_executable}.shell" ) + add_test(NAME ${_testname} COMMAND ${_executable}.shell) + + else (UNIX) + # under windows, set the property WRAPPER_SCRIPT just to the name of the executable + # maybe later this will change to a generated batch file (for setting the PATH so that the Qt libs are found) + set(_ld_library_path "${LIBRARY_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}\;${LIB_INSTALL_DIR}\;${QT_LIBRARY_DIR}") + set(_executable "$") + + # use add_custom_target() to have the batch-file-wrapper generated during build time instead of cmake time + add_custom_command(TARGET ${_target} POST_BUILD + COMMAND ${CMAKE_COMMAND} + -D_filename="${_executable}.bat" + -D_ld_library_path="${_ld_library_path}" -D_executable="${_executable}" + -D_gnupghome="${GNUPGHOME}" + -P ${CMAKE_SOURCE_DIR}/${MIMETREEPARSERRELPATH}/tests/kdepim_generate_crypto_test_wrapper.cmake + ) + + add_test(NAME ${_testname} COMMAND ${_executable}.bat) + + endif (UNIX) +endmacro (ADD_GPG_CRYPTO_TEST) + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/kdepim_generate_crypto_test_wrapper.cmake b/framework/src/domain/mimetreeparser/otp/autotests/kdepim_generate_crypto_test_wrapper.cmake new file mode 100644 index 00000000..e1412f37 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/kdepim_generate_crypto_test_wrapper.cmake @@ -0,0 +1,45 @@ +# Copyright (c) 2006, Alexander Neundorf, +# Copyright (c) 2013, Sandro Knauß +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + + +if (UNIX) + +file(WRITE "${_filename}" +"#!/bin/sh +# created by cmake, don't edit, changes will be lost + +# don't mess with a gpg-agent already running on the system +unset GPG_AGENT_INFO + +${_library_path_variable}=${_ld_library_path}\${${_library_path_variable}:+:\$${_library_path_variable}} GNUPGHOME=${_gnupghome} gpg-agent --daemon \"${_executable}\" \"$@\" +_result=$? +_pid=`echo GETINFO pid | GNUPGHOME=${_gnupghome} gpg-connect-agent | grep 'D' | cut -d' ' -f2` +if [ ! -z \"\$_pid\" ]; then + echo \"Waiting for gpg-agent to terminate (PID: $_pid)...\" + while kill -0 \"\$_pid\"; do + sleep 1 + done +fi +exit \$_result +") + +# make it executable +# since this is only executed on UNIX, it is safe to call chmod +exec_program(chmod ARGS ug+x \"${_filename}\" OUTPUT_VARIABLE _dummy ) + +else (UNIX) + +file(TO_NATIVE_PATH "${_ld_library_path}" win_path) +file(TO_NATIVE_PATH "${_gnupghome}" win_gnupghome) + +file(WRITE "${_filename}" +" +set PATH=${win_path};$ENV{PATH} +set GNUPGHOME=${win_gnupghome};$ENV{GNUPGHOME} +gpg-agent --daemon \"${_executable}\" %* +") + +endif (UNIX) diff --git a/framework/src/domain/mimetreeparser/otp/autotests/nodehelpertest.cpp b/framework/src/domain/mimetreeparser/otp/autotests/nodehelpertest.cpp new file mode 100644 index 00000000..d2a5d605 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/nodehelpertest.cpp @@ -0,0 +1,275 @@ +/* Copyright 2015 Sandro Knauß + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License or (at your option) version 3 or any later version + accepted by the membership of KDE e.V. (or its successor approved + by the membership of KDE e.V.), which shall act as a proxy + defined in Section 14 of version 3 of the license. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ +#include "nodehelpertest.h" + +#include "nodehelper.h" + +#include + +using namespace MimeTreeParser; + +NodeHelperTest::NodeHelperTest() + : QObject() +{ + +} + +void NodeHelperTest::testPersistentIndex() +{ + NodeHelper helper; + + KMime::Content *node = new KMime::Content(); + KMime::Content *node2 = new KMime::Content(); + KMime::Content *node2Extra = new KMime::Content(); + KMime::Content *subNode = new KMime::Content(); + KMime::Content *subsubNode = new KMime::Content(), *subsubNode2 = new KMime::Content(); + KMime::Content *node2ExtraSubNode = new KMime::Content(); + KMime::Content *node2ExtraSubsubNode = new KMime::Content(); + KMime::Content *node2ExtraSubsubNode2 = new KMime::Content(); + KMime::Content *extra = new KMime::Content(), *extra2 = new KMime::Content(); + KMime::Content *subExtra = new KMime::Content(); + KMime::Content *subsubExtra = new KMime::Content(); + KMime::Content *subsubExtraNode = new KMime::Content(); + + subNode->addContent(subsubNode); + subNode->addContent(subsubNode2); + node->addContent(subNode); + subsubExtra->addContent(subsubExtraNode); + helper.attachExtraContent(node, extra); + helper.attachExtraContent(node, extra2); + helper.attachExtraContent(subNode, subExtra); + helper.attachExtraContent(subsubNode2, subsubExtra); + + // This simulates Opaque S/MIME signed and encrypted message with attachment + // (attachment is node2SubsubNode2) + node2Extra->addContent(node2ExtraSubNode); + node2ExtraSubNode->addContent(node2ExtraSubsubNode); + node2ExtraSubNode->addContent(node2ExtraSubsubNode2); + helper.attachExtraContent(node2, node2Extra); + + /* all content has a internal first child, so indexes starts at 2 + * node "" + * -> subNode "2" + * -> subsubNode "2.2" + * -> subsubNode2 "2.3" + * + * node "" + * -> extra "e0" + * -> extra2 "e1" + * + * subNode "2" + * -> subExtra "2:e0" + * + * subsubNode2 "2.3" + * -> subsubExtra "2.3:e0" + * -> subsubExtraNode "2.3:e0:2" + * + * node2 "" + * + * node2 "" + * -> node2Extra "e0" + * -> node2ExtraSubNode "e0:2" + * -> node2ExtraSubsubNode "e0:2.2" + * -> node2ExtraSubsubNode2 "e0:2.3" + */ + + QCOMPARE(helper.persistentIndex(node), QStringLiteral("")); + QCOMPARE(helper.contentFromIndex(node, QStringLiteral("")), node); + + QCOMPARE(helper.persistentIndex(node->contents()[0]), QStringLiteral("1")); + QCOMPARE(helper.contentFromIndex(node, QStringLiteral("1")), node->contents()[0]); + + QCOMPARE(helper.persistentIndex(subNode), QStringLiteral("2")); + QCOMPARE(helper.contentFromIndex(node, QStringLiteral("2")), subNode); + + QCOMPARE(helper.persistentIndex(subsubNode), QStringLiteral("2.2")); + QCOMPARE(helper.contentFromIndex(node, QStringLiteral("2.2")), subsubNode); + + QCOMPARE(helper.persistentIndex(subsubNode2), QStringLiteral("2.3")); + QCOMPARE(helper.contentFromIndex(node, QStringLiteral("2.3")), subsubNode2); + + QCOMPARE(helper.persistentIndex(extra), QStringLiteral("e0")); + QCOMPARE(helper.contentFromIndex(node, QStringLiteral("e0")), extra); + + QCOMPARE(helper.persistentIndex(extra2), QStringLiteral("e1")); + QCOMPARE(helper.contentFromIndex(node, QStringLiteral("e1")), extra2); + + QCOMPARE(helper.persistentIndex(subExtra), QStringLiteral("2:e0")); + QCOMPARE(helper.contentFromIndex(node, QStringLiteral("2:e0")), subExtra); + + QCOMPARE(helper.persistentIndex(subsubExtra), QStringLiteral("2.3:e0")); + QCOMPARE(helper.contentFromIndex(node, QStringLiteral("2.3:e0")), subsubExtra); + + QCOMPARE(helper.persistentIndex(subsubExtraNode), QStringLiteral("2.3:e0:2")); + QCOMPARE(helper.contentFromIndex(node, QStringLiteral("2.3:e0:2")), subsubExtraNode); + + QCOMPARE(helper.persistentIndex(node2ExtraSubsubNode2), QStringLiteral("e0:2.3")); + QCOMPARE(helper.contentFromIndex(node2, QStringLiteral("e0:2.3")), node2ExtraSubsubNode2); + + delete node; +} + +void NodeHelperTest::testHREF() +{ + NodeHelper helper; + KMime::Message::Ptr msg(new KMime::Message); + QUrl url; + + KMime::Content *node = msg->topLevel(); + KMime::Content *subNode = new KMime::Content(); + KMime::Content *subsubNode = new KMime::Content(), *subsubNode2 = new KMime::Content(); + KMime::Content *extra = new KMime::Content(), *extra2 = new KMime::Content(); + KMime::Content *subExtra = new KMime::Content(); + KMime::Content *subsubExtra = new KMime::Content(); + KMime::Content *subsubExtraNode = new KMime::Content(); + + subNode->addContent(subsubNode); + subNode->addContent(subsubNode2); + node->addContent(subNode); + subsubExtra->addContent(subsubExtraNode); + helper.attachExtraContent(node, extra); + helper.attachExtraContent(node, extra2); + helper.attachExtraContent(subNode, subExtra); + helper.attachExtraContent(subsubNode2, subsubExtra); + + url = QUrl(QStringLiteral("")); + QCOMPARE(helper.fromHREF(msg, url), node); + + url = QUrl(QStringLiteral("attachment:e0?place=body")); + QCOMPARE(helper.fromHREF(msg, url), extra); + + url = QUrl(QStringLiteral("attachment:2.2?place=body")); + QCOMPARE(helper.fromHREF(msg, url), subsubNode); + + url = QUrl(QStringLiteral("attachment:2.3:e0:2?place=body")); + QCOMPARE(helper.fromHREF(msg, url), subsubExtraNode); + + QCOMPARE(helper.asHREF(node, QStringLiteral("body")), QStringLiteral("attachment:?place=body")); + QCOMPARE(helper.asHREF(extra, QStringLiteral("body")), QStringLiteral("attachment:e0?place=body")); + QCOMPARE(helper.asHREF(subsubNode, QStringLiteral("body")), QStringLiteral("attachment:2.2?place=body")); + QCOMPARE(helper.asHREF(subsubExtraNode, QStringLiteral("body")), QStringLiteral("attachment:2.3:e0:2?place=body")); +} + +void NodeHelperTest::testLocalFiles() +{ + NodeHelper helper; + KMime::Message::Ptr msg(new KMime::Message); + + KMime::Content *node = msg->topLevel(); + KMime::Content *subNode = new KMime::Content(); + KMime::Content *subsubNode = new KMime::Content(), *subsubNode2 = new KMime::Content(); + KMime::Content *extra = new KMime::Content(), *extra2 = new KMime::Content(); + KMime::Content *subExtra = new KMime::Content(); + KMime::Content *subsubExtra = new KMime::Content(); + KMime::Content *subsubExtraNode = new KMime::Content(); + + subNode->addContent(subsubNode); + subNode->addContent(subsubNode2); + node->addContent(subNode); + subsubExtra->addContent(subsubExtraNode); + helper.attachExtraContent(node, extra); + helper.attachExtraContent(node, extra2); + helper.attachExtraContent(subNode, subExtra); + helper.attachExtraContent(subsubNode2, subsubExtra); + + helper.writeNodeToTempFile(node); + QCOMPARE(helper.fromHREF(msg, helper.tempFileUrlFromNode(node)), node); + helper.writeNodeToTempFile(subNode); + QCOMPARE(helper.fromHREF(msg, helper.tempFileUrlFromNode(subNode)), subNode); + helper.writeNodeToTempFile(subsubNode); + QCOMPARE(helper.fromHREF(msg, helper.tempFileUrlFromNode(subsubNode)), subsubNode); + helper.writeNodeToTempFile(subsubNode2); + QCOMPARE(helper.fromHREF(msg, helper.tempFileUrlFromNode(subsubNode2)), subsubNode2); + helper.writeNodeToTempFile(extra); + QCOMPARE(helper.fromHREF(msg, helper.tempFileUrlFromNode(extra)), extra); + helper.writeNodeToTempFile(subExtra); + QCOMPARE(helper.fromHREF(msg, helper.tempFileUrlFromNode(subExtra)), subExtra); + helper.writeNodeToTempFile(subsubExtra); + QCOMPARE(helper.fromHREF(msg, helper.tempFileUrlFromNode(subsubExtra)), subsubExtra); + helper.writeNodeToTempFile(subsubExtraNode); + QCOMPARE(helper.fromHREF(msg, helper.tempFileUrlFromNode(subsubExtraNode)), subsubExtraNode); +} + +void NodeHelperTest::testCreateTempDir() +{ + QString path; + { + NodeHelper helper; + path = helper.createTempDir(QStringLiteral("foo")); + + QVERIFY(path.endsWith(QStringLiteral(".index.foo"))); + QVERIFY(QDir(path).exists()); + QVERIFY(QFile(path).permissions() & QFileDevice::WriteUser); + QVERIFY(QFile(path).permissions() & QFileDevice::ExeUser); + QVERIFY(QFile(path).permissions() & QFileDevice::ReadUser); + } + QVERIFY(!QDir(path).exists()); +} + +void NodeHelperTest::testFromAsString() +{ + const QString tlSender = QStringLiteral("Foo "); + const QString encSender = QStringLiteral("Bar "); + + NodeHelper helper; + + // msg (KMime::Message) + // |- subNode + // |- encNode (KMime::Message) + // |- encSubNode + // + // subNode + // |- subExtra + // + // encSubNode + // |- encSubExtra + + KMime::Message msg; + msg.from(true)->fromUnicodeString(tlSender, "UTF-8"); + auto node = msg.topLevel(); + auto subNode = new KMime::Content(); + auto subExtra = new KMime::Content(); + + // Encapsulated message + KMime::Message *encMsg = new KMime::Message; + encMsg->from(true)->fromUnicodeString(encSender, "UTF-8"); + auto encNode = encMsg->topLevel(); + auto encSubNode = new KMime::Content(); + auto encSubExtra = new KMime::Content(); + + node->addContent(subNode); + node->addContent(encMsg); + encNode->addContent(encSubNode); + + helper.attachExtraContent(subNode, subExtra); + helper.attachExtraContent(encSubNode, encSubExtra); + + QCOMPARE(helper.fromAsString(node), tlSender); + QCOMPARE(helper.fromAsString(subNode), tlSender); + QCOMPARE(helper.fromAsString(subExtra), tlSender); + QEXPECT_FAIL("", "Returning sender of encapsulated message is not yet implemented", Continue); + QCOMPARE(helper.fromAsString(encNode), encSender); + QEXPECT_FAIL("", "Returning sender of encapsulated message is not yet implemented", Continue); + QCOMPARE(helper.fromAsString(encSubNode), encSender); + QEXPECT_FAIL("", "Returning sender of encapsulated message is not yet implemented", Continue); + QCOMPARE(helper.fromAsString(encSubExtra), encSender); +} + +QTEST_GUILESS_MAIN(NodeHelperTest) + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/nodehelpertest.h b/framework/src/domain/mimetreeparser/otp/autotests/nodehelpertest.h new file mode 100644 index 00000000..d2ed772a --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/nodehelpertest.h @@ -0,0 +1,45 @@ +/* Copyright 2015 Sandro Knauß + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License or (at your option) version 3 or any later version + accepted by the membership of KDE e.V. (or its successor approved + by the membership of KDE e.V.), which shall act as a proxy + defined in Section 14 of version 3 of the license. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ +#ifndef NODEHELPERTEST_H +#define NODEHELPERTEST_H + +#include + +#include + +namespace MimeTreeParser +{ + +class NodeHelperTest : public QObject +{ + Q_OBJECT + +public: + NodeHelperTest(); + +private Q_SLOTS: + void testPersistentIndex(); + void testLocalFiles(); + void testHREF(); + void testCreateTempDir(); + void testFromAsString(); +}; + +} +#endif diff --git a/framework/src/domain/mimetreeparser/otp/autotests/setupenv.cpp b/framework/src/domain/mimetreeparser/otp/autotests/setupenv.cpp new file mode 100644 index 00000000..be7a8685 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/setupenv.cpp @@ -0,0 +1,34 @@ +/* + Copyright (C) 2010 Klaralvdalens Datakonsult AB, a KDAB Group company, info@kdab.com + Copyright (c) 2010 Leo Franchi + + This library is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published by + the Free Software Foundation; either version 2 of the License, or (at your + option) any later version. + + This library is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public + License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. +*/ + +#include "setupenv.h" + +#include + +#include +#include + +void MimeTreeParser::Test::setupEnv() +{ + setenv("LC_ALL", "C", 1); + setenv("KDEHOME", QFile::encodeName(QDir::homePath() + QString::fromLatin1("/.qttest")).constData(), 1); + QStandardPaths::setTestModeEnabled(true); +} + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/setupenv.h b/framework/src/domain/mimetreeparser/otp/autotests/setupenv.h new file mode 100644 index 00000000..3582853e --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/setupenv.h @@ -0,0 +1,175 @@ +/* + Copyright (C) 2010 Klaralvdalens Datakonsult AB, a KDAB Group company, info@kdab.com + Copyright (c) 2010 Leo Franchi + + This library is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published by + the Free Software Foundation; either version 2 of the License, or (at your + option) any later version. + + This library is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public + License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. +*/ + +#ifndef MESSAGECORE_TESTS_UTIL_H +#define MESSAGECORE_TESTS_UTIL_H + +#include +#include +#include +#include +#include +#include + +namespace MimeTreeParser +{ + +namespace Test +{ + +/** +* setup a environment variables for tests: +* * set LC_ALL to C +* * set KDEHOME +*/ +void setupEnv(); + +// We can't use EmptySource, since we need to control some emelnets of the source for tests to also test +// loadExternal and htmlMail. +class TestObjectTreeSource : public MimeTreeParser::Interface::ObjectTreeSource +{ +public: + TestObjectTreeSource(MimeTreeParser::HtmlWriter *writer) + : mWriter(writer) + , mAttachmentStrategy(QStringLiteral("smart")) + , mPreferredMode(Util::Html) + , mHtmlLoadExternal(false) + , mDecryptMessage(false) + { + } + + MimeTreeParser::HtmlWriter *htmlWriter() Q_DECL_OVERRIDE { + return mWriter; + } + + bool htmlLoadExternal() const Q_DECL_OVERRIDE + { + return mHtmlLoadExternal; + } + + void setHtmlLoadExternal(bool loadExternal) + { + mHtmlLoadExternal = loadExternal; + } + + void setAttachmentStrategy(QString strategy) + { + mAttachmentStrategy = strategy; + } + + const AttachmentStrategy *attachmentStrategy() Q_DECL_OVERRIDE { + return AttachmentStrategy::create(mAttachmentStrategy); + } + + bool autoImportKeys() const Q_DECL_OVERRIDE + { + return true; + } + + bool showEmoticons() const Q_DECL_OVERRIDE + { + return false; + } + + bool showExpandQuotesMark() const Q_DECL_OVERRIDE + { + return false; + } + + const BodyPartFormatterBaseFactory *bodyPartFormatterFactory() Q_DECL_OVERRIDE { + return &mBodyPartFormatterBaseFactory; + } + + bool decryptMessage() const Q_DECL_OVERRIDE + { + return mDecryptMessage; + } + + void setAllowDecryption(bool allowDecryption) + { + mDecryptMessage = allowDecryption; + } + + void setShowSignatureDetails(bool showSignatureDetails) + { + mShowSignatureDetails = showSignatureDetails; + } + + bool showSignatureDetails() const Q_DECL_OVERRIDE + { + return mShowSignatureDetails; + } + + void setHtmlMode(MimeTreeParser::Util::HtmlMode mode, const QList &availableModes) Q_DECL_OVERRIDE { + Q_UNUSED(mode); + Q_UNUSED(availableModes); + } + + MimeTreeParser::Util::HtmlMode preferredMode() const Q_DECL_OVERRIDE + { + return mPreferredMode; + } + + void setPreferredMode(MimeTreeParser::Util::HtmlMode mode) + { + mPreferredMode = mode; + } + + int levelQuote() const Q_DECL_OVERRIDE + { + return 1; + } + + const QTextCodec *overrideCodec() Q_DECL_OVERRIDE { + return nullptr; + } + + QString createMessageHeader(KMime::Message *message) Q_DECL_OVERRIDE { + Q_UNUSED(message); + return QString(); //do nothing + } + + QObject *sourceObject() Q_DECL_OVERRIDE { + return nullptr; + } + + Interface::MessagePartRenderer::Ptr messagePartTheme(Interface::MessagePart::Ptr msgPart) Q_DECL_OVERRIDE { + Q_UNUSED(msgPart); + return Interface::MessagePartRenderer::Ptr(); + } + bool isPrinting() const Q_DECL_OVERRIDE + { + return false; + } +private: + MimeTreeParser::HtmlWriter *mWriter; + QString mAttachmentStrategy; + BodyPartFormatterBaseFactory mBodyPartFormatterBaseFactory; + MimeTreeParser::Util::HtmlMode mPreferredMode; + bool mHtmlLoadExternal; + bool mDecryptMessage; + bool mShowSignatureDetails; +}; + +} + +} + +#endif diff --git a/framework/src/domain/mimetreeparser/otp/autotests/testcsshelper.cpp b/framework/src/domain/mimetreeparser/otp/autotests/testcsshelper.cpp new file mode 100644 index 00000000..0e411e8f --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/testcsshelper.cpp @@ -0,0 +1,106 @@ +/* + testcsshelper.cpp + + This file is part of KMail, the KDE mail client. + Copyright (c) 2013 Sandro Knauß + + KMail is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License, version 2, as + published by the Free Software Foundation. + + KMail is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + In addition, as a special exception, the copyright holders give + permission to link the code of this program with any edition of + the Qt library by Trolltech AS, Norway (or with modified versions + of Qt that use the same license as Qt), and distribute linked + combinations including the two. You must obey the GNU General + Public License in all respects for all of the code used other than + Qt. If you modify this file, you may extend this exception to + your version of the file, but you are not obligated to do so. If + you do not wish to do so, delete this exception statement from + your version. +*/ + +#include "testcsshelper.h" + +#include +#include +#include +#include + +namespace MimeTreeParser +{ + +TestCSSHelper::TestCSSHelper(const QPaintDevice *pd) : + CSSHelperBase(pd) +{ + mRecycleQuoteColors = false; + mBackgroundColor = QColor(0xff, 0xff, 0xff); + mForegroundColor = QColor(0x1f, 0x1c, 0x1b); + mLinkColor = QColor(0x00, 0x57, 0xae); + cPgpEncrH = QColor(0x00, 0x80, 0xff); + cPgpOk1H = QColor(0x40, 0xff, 0x40); + cPgpOk0H = QColor(0xff, 0xff, 0x40); + cPgpWarnH = QColor(0xff, 0xff, 0x40); + cPgpErrH = QColor(0xff, 0x00, 0x00); + + cPgpEncrHT = QColor(0xff, 0xff, 0xff); + cPgpOk1HT = QColor(0x27, 0xae, 0x60); + cPgpOk0HT = QColor(0xf6, 0x74, 0x00); + cPgpWarnHT = QColor(0xf6, 0x74, 0x00); + cPgpErrHT = QColor(0xda, 0x44, 0x53); + + cHtmlWarning = QColor(0xff, 0x40, 0x40); + for (int i = 0; i < 3; ++i) { + mQuoteColor[i] = QColor(0x00, 0x80 - i * 0x10, 0x00); + } + + QFont defaultFont = QFont(QStringLiteral("Sans Serif"), 9); + mBodyFont = defaultFont; + mPrintFont = defaultFont; + mFixedFont = defaultFont; + mFixedPrintFont = defaultFont; + defaultFont.setItalic(true); + for (int i = 0; i < 3; ++i) { + mQuoteFont[i] = defaultFont; + } + + mShrinkQuotes = false; + + QPalette pal; + + pal.setColor(QPalette::Background, QColor(0xd6, 0xd2, 0xd0)); + pal.setColor(QPalette::Foreground, QColor(0x22, 0x1f, 0x1e)); + pal.setColor(QPalette::Highlight, QColor(0x43, 0xac, 0xe8)); + pal.setColor(QPalette::HighlightedText, QColor(0xff, 0xff, 0xff)); + pal.setColor(QPalette::Mid, QColor(0xb3, 0xab, 0xa7)); + + QApplication::setPalette(pal); + + recalculatePGPColors(); +} + +TestCSSHelper::~TestCSSHelper() +{ + +} + +QString TestCSSHelper::htmlHead(bool fixed) const +{ + Q_UNUSED(fixed); + return + QStringLiteral("\n" + "\n" + "\n"); +} + +} + diff --git a/framework/src/domain/mimetreeparser/otp/autotests/testcsshelper.h b/framework/src/domain/mimetreeparser/otp/autotests/testcsshelper.h new file mode 100644 index 00000000..c21935cf --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/testcsshelper.h @@ -0,0 +1,50 @@ +/* -*- c++ -*- + testcsshelper.h + + This file is part of KMail, the KDE mail client. + Copyright (c) 2013 Sandro Knauß + + KMail is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License, version 2, as + published by the Free Software Foundation. + + KMail is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + In addition, as a special exception, the copyright holders give + permission to link the code of this program with any edition of + the Qt library by Trolltech AS, Norway (or with modified versions + of Qt that use the same license as Qt), and distribute linked + combinations including the two. You must obey the GNU General + Public License in all respects for all of the code used other than + Qt. If you modify this file, you may extend this exception to + your version of the file, but you are not obligated to do so. If + you do not wish to do so, delete this exception statement from + your version. +*/ + +#ifndef __MIMETREEPARSER_TESTCSSHELPER_H__ +#define __MIMETREEPARSER_TESTCSSHELPER_H__ + +#include "viewer/csshelperbase.h" + +namespace MimeTreeParser +{ + +class TestCSSHelper : public CSSHelperBase +{ +public: + explicit TestCSSHelper(const QPaintDevice *pd); + virtual ~TestCSSHelper(); + QString htmlHead(bool fixed) const Q_DECL_OVERRIDE; +}; + +} + +#endif // __MIMETREEPARSER_TESTCSSHELPER_H__ diff --git a/framework/src/domain/mimetreeparser/otp/autotests/util.cpp b/framework/src/domain/mimetreeparser/otp/autotests/util.cpp new file mode 100644 index 00000000..5ea415b7 --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/util.cpp @@ -0,0 +1,34 @@ +/* + Copyright (c) 2010 Thomas McGuire + + This library is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published by + the Free Software Foundation; either version 2 of the License, or (at your + option) any later version. + + This library is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public + License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. +*/ +#include "util.h" + +#include + +KMime::Message::Ptr readAndParseMail(const QString &mailFile) +{ + QFile file(QLatin1String(MAIL_DATA_DIR) + QLatin1Char('/') + mailFile); + file.open(QIODevice::ReadOnly); + Q_ASSERT(file.isOpen()); + const QByteArray data = KMime::CRLFtoLF(file.readAll()); + Q_ASSERT(!data.isEmpty()); + KMime::Message::Ptr msg(new KMime::Message); + msg->setContent(data); + msg->parse(); + return msg; +} diff --git a/framework/src/domain/mimetreeparser/otp/autotests/util.h b/framework/src/domain/mimetreeparser/otp/autotests/util.h new file mode 100644 index 00000000..ac4aa54f --- /dev/null +++ b/framework/src/domain/mimetreeparser/otp/autotests/util.h @@ -0,0 +1,43 @@ +/* + Copyright (c) 2010 Thomas McGuire + + This library is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published by + the Free Software Foundation; either version 2 of the License, or (at your + option) any later version. + + This library is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public + License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. +*/ +#include "htmlwriter.h" + +#include + +class TestHtmlWriter : public MimeTreeParser::HtmlWriter +{ +public: + explicit TestHtmlWriter() {} + virtual ~TestHtmlWriter() {} + + void begin(const QString &) Q_DECL_OVERRIDE {} + void write(const QString &) Q_DECL_OVERRIDE {} + void end() Q_DECL_OVERRIDE {} + void reset() Q_DECL_OVERRIDE {} + void queue(const QString &str) Q_DECL_OVERRIDE { + html.append(str); + } + void flush() Q_DECL_OVERRIDE {} + void embedPart(const QByteArray &, const QString &) Q_DECL_OVERRIDE {} + void extraHead(const QString &) Q_DECL_OVERRIDE {} + + QString html; +}; + +KMime::Message::Ptr readAndParseMail(const QString &mailFile); -- cgit v1.2.3