summaryrefslogtreecommitdiff
path: root/mail-client
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2021-10-08 23:06:07 +0100
committerV3n3RiX <venerix@koprulu.sector>2021-10-08 23:06:07 +0100
commite23a08d0c97a0cc415aaa165da840b056f93c997 (patch)
tree4c5f7db60483518201fef36f8cc0712789a08db2 /mail-client
parent391b5b359a346aff490103da7dddc85047f83830 (diff)
gentoo resync : 08.10.2021
Diffstat (limited to 'mail-client')
-rw-r--r--mail-client/Manifest.gzbin4221 -> 4058 bytes
-rw-r--r--mail-client/balsa/Manifest2
-rw-r--r--mail-client/balsa/balsa-2.6.3.ebuild2
-rw-r--r--mail-client/evolution/Manifest2
-rw-r--r--mail-client/evolution/evolution-3.40.4.ebuild2
-rw-r--r--mail-client/trojita/Manifest15
-rw-r--r--mail-client/trojita/files/trojita-0.7-CVE-2019-10734.patch104
-rw-r--r--mail-client/trojita/files/trojita-0.7-CVE-2020-15047.patch82
-rw-r--r--mail-client/trojita/files/trojita-0.7-cmake-cxx11.patch66
-rw-r--r--mail-client/trojita/files/trojita-0.7-crash-w-attachments.patch68
-rw-r--r--mail-client/trojita/files/trojita-0.7-desktop-spec-namespace.patch57
-rw-r--r--mail-client/trojita/files/trojita-0.7-gpg-tests.patch27
-rw-r--r--mail-client/trojita/files/trojita-0.7-gpgme.patch34
-rw-r--r--mail-client/trojita/files/trojita-0.7-metainfo.patch26
-rw-r--r--mail-client/trojita/files/trojita-0.7-qt-5.11b3.patch207
-rw-r--r--mail-client/trojita/files/trojita-0.7-qt-5.13.patch37
-rw-r--r--mail-client/trojita/files/trojita-0.7-qt-5.15.patch28
-rw-r--r--mail-client/trojita/metadata.xml23
-rw-r--r--mail-client/trojita/trojita-0.7-r6.ebuild90
-rw-r--r--mail-client/trojita/trojita-9999.ebuild81
20 files changed, 4 insertions, 949 deletions
diff --git a/mail-client/Manifest.gz b/mail-client/Manifest.gz
index f38eaa4936fe..45ff4bfa14be 100644
--- a/mail-client/Manifest.gz
+++ b/mail-client/Manifest.gz
Binary files differ
diff --git a/mail-client/balsa/Manifest b/mail-client/balsa/Manifest
index 516b9c80cc7a..5853d4276997 100644
--- a/mail-client/balsa/Manifest
+++ b/mail-client/balsa/Manifest
@@ -1,5 +1,5 @@
DIST balsa-2.6.2.tar.bz2 4567897 BLAKE2B ac006ee5696e33cbbc6292d0aa416eab41dfa91830d2a87a68693137fa330017c8e748996ef240fadb035910e60c3575d8f0ae9da507e6478ba13d2f5d6e7b2a SHA512 7049722f74d7a7d93cd2d68ce7d38a99a04a566f180bac39009ba59bb0aeca603a5237db7a91e860f2f905591bf84f803007b9887f2c69c426b4a6dbc81f1488
DIST balsa-2.6.3.tar.xz 3761940 BLAKE2B 8bcd93453a74d2b7ffaeca3131828044a9fc399db8e0e695a31dcdb5b50a400e10b3a49d9484609b59e4348758cbeff6fde30243714693e98ab046f7910d1abf SHA512 7e64f75423dd37536812854e56db1af97c00bc35f640d82c22d86e5212c766926430f1c99423f1a972daf6f20d084d4cf16d89e13deb2f1ce550c016cd132f8d
EBUILD balsa-2.6.2.ebuild 1843 BLAKE2B 54558ed0aec0151118263da97a827573f7e7a8056b641a6c08283efb2b0992e9b3f8217911dd537136ecd3ee40b5a19f4a2005e1719c83abbef010067db99491 SHA512 13b81aa78e72fc9ee71e28d5d918714af47dc56a0697df365e8771b131ae24ee9b37927a669477724ac3de8441036dbfb1c597be3bdcf499196ec0cf14ff03be
-EBUILD balsa-2.6.3.ebuild 1871 BLAKE2B 7a3e962488b9b2a28ddc741f8f700dd50e87aa97e6595baf8ae4edad1592032c6ecc8c37b53658c0385d4156a0fdc5a9c1d301138fc00f8ab695ae18bf688161 SHA512 c4038bd9bffc63cbc51d546093e5ac8156cb7ae3aa8ad540f21d19887588ba2c4b0812cea2ba4c13dd2ff405126ec1feb985bf2cf1f7e3f4e313b20d0522a376
+EBUILD balsa-2.6.3.ebuild 1870 BLAKE2B fae542d102fc7ec7eb288f6aba1cdd2c0cf88269dbf8fd6413d68f3909acda03ba6920076c7b48b86830b85e5ae37a9d55dcaeb1c715f84b319ea8f8566f34ed SHA512 01c1fa2d7fbc692a94978b2e2ba496cf0dd3b408c9d777f721c797435f232afc9c47e9c277e2b0fe4f86fc1da31ad885e6b1c95969d8e156d396ec0f85dc89d1
MISC metadata.xml 336 BLAKE2B e86d0170a41846ccb0ceadf9f7c614ba92c79b67076cd315b609079d3515966fed408b7b54072297aede799e344acca1175cf7ea4c7dd3d6ca3176dc88b3f59d SHA512 1d8aee84f50bb7a8a8011a1b47e24da2e101cfd313f50ad736b2094b92a24598e5348f6d9d950db04dde1fe6ffb5e950ec9ac1c28a342d444497d8cdbb6af58f
diff --git a/mail-client/balsa/balsa-2.6.3.ebuild b/mail-client/balsa/balsa-2.6.3.ebuild
index 68e70a5b90f1..241fe96fdce6 100644
--- a/mail-client/balsa/balsa-2.6.3.ebuild
+++ b/mail-client/balsa/balsa-2.6.3.ebuild
@@ -10,7 +10,7 @@ SRC_URI="http://pawsa.fedorapeople.org/${PN}/${P}.tar.xz"
LICENSE="GPL-2+"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+KEYWORDS="~alpha amd64 ~ppc ~sparc ~x86"
IUSE="gnome +gnome-keyring kerberos ldap rubrica sqlite webkit xface"
diff --git a/mail-client/evolution/Manifest b/mail-client/evolution/Manifest
index 93f3e5b7bd27..8b195dc6ee83 100644
--- a/mail-client/evolution/Manifest
+++ b/mail-client/evolution/Manifest
@@ -1,5 +1,5 @@
DIST evolution-3.40.3.tar.xz 12216768 BLAKE2B 7b146ee09abff566a5a0cbbda9dda6ce5cd26c076462fd511cbc02fa35352d1ab776c67c5c99990278963a6f96c2ea8410588925cce1c05300e34ad5252de618 SHA512 08fcfdafd78ee323a57355dec1c8755525eefb599b70e6fb60ed0e9963a538a4b3f172b78f03aecbd245741fad08363b01ada46c2e349a9ccdc080d28c286452
DIST evolution-3.40.4.tar.xz 12219300 BLAKE2B cbe56014252e8a23debbd4055be85d8bf89e25aa677b92880a6dba78d5d5fbb452403d5f9199b0257ca4c7ee10bff3bc5ca7601fa74390cf6d01d4d7cf099d1d SHA512 f6f08ab3cbc21397a0727b1edc5e37711294fdba6e537000d5a9f11f0142f69702fffad3922645fab256ccdee348b914a87abd0e6ed843c01762ccd32333518a
EBUILD evolution-3.40.3.ebuild 4156 BLAKE2B efda580e566f9f234b1c96252a5af675386f479a3b166a5a356eaecae7f83b2a4b9b140648ee1df755838dc303179ae656080c4c4bf48c19c10c0badc4d9feba SHA512 c007a759e42e4190e7c9c7a8c741c43fb2fa5d2eb126017f8b2269c8bd1af907ef42d2386849860724388d604bf0deaf066f9706a36597aeee74851352230f36
-EBUILD evolution-3.40.4.ebuild 4158 BLAKE2B 20d944a401e2f8cd3ac032a089a6d3b126dc9daa1a0c42e8c18e210360e6cd59c1944283df0a51ad3edf2413d33ff57d0637be629c265693ac7bd5817028314a SHA512 68777f37ecb80c4178b6fe72994fffe7fa92ac4f848abf26e4a1529f6ecc5de118eb73c7154693c159d14304a2d0d936cf5c453c6b574514a8164262fb781578
+EBUILD evolution-3.40.4.ebuild 4157 BLAKE2B 28fe2d273facbca610e00017c053661f2c1380076b00601a63d71c3dbfd22a47c61e000adad7ffe0434c889231c228240d7a3f68fffdade8127290001d54f2da SHA512 6f7259a25900aa06e7fd5166565311f28ad17fcb37cedddb149c194414bb4296b9543f1a6fe5f17a7ee6a82a7d9f8cdab2926fcffe69b8d3e0dc89fb2200c7b6
MISC metadata.xml 1078 BLAKE2B b3a32d1876342fba5db22aae478cf1194df56f01719c6322f13a069e9fe8d1f17123b9592e0a0c5c25ac856ddbb9d20266bc11ce7c9a4737aa7dd43e76c0aa8d SHA512 9c3da89a72cc8235f73fb98b2cbe21597a4889ebd4d989a98e105613e131a42236ed115c0ac88cb87a312a43123c5bdcc44aa76328bf3cd537367553691408f1
diff --git a/mail-client/evolution/evolution-3.40.4.ebuild b/mail-client/evolution/evolution-3.40.4.ebuild
index 141bc4cc9c0c..9df09b459828 100644
--- a/mail-client/evolution/evolution-3.40.4.ebuild
+++ b/mail-client/evolution/evolution-3.40.4.ebuild
@@ -14,7 +14,7 @@ SLOT="2.0"
IUSE="archive +bogofilter geolocation gtk-doc highlight ldap spamassassin spell ssl +weather ytnef"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~x86"
# glade-3 support is for maintainers only per configure.ac
# pst is not mature enough and changes API/ABI frequently
diff --git a/mail-client/trojita/Manifest b/mail-client/trojita/Manifest
deleted file mode 100644
index 9b4c74cbb33b..000000000000
--- a/mail-client/trojita/Manifest
+++ /dev/null
@@ -1,15 +0,0 @@
-AUX trojita-0.7-CVE-2019-10734.patch 4701 BLAKE2B d7c41789e57fcab16f616702d427bffce348376f0d9fc16fc02c37257409a819bc2d157652e5671a6a2c6f7b06b64b325b3f08d8977654cf52028f7cda25f2dd SHA512 db96a566924b5d7b80787ab624af3726d5dd3459653192436a377d6482ab73801a7dcca1df1b1d937cf0d0798b827e04f8ef2c1124f91dc9da3e8036ef61e28a
-AUX trojita-0.7-CVE-2020-15047.patch 3286 BLAKE2B 4cccc6eb6ad6826f176c19d8fd2cc1c23c661b222d8e884bd45ee700d8db856b45d76f90ad387bdd2b3996c3f97af89f60bd9b44c3bf4e8456a607b4f3c1e91f SHA512 82ed94860b8e71b66093548535cd5970dc28bbc5c023cb73e0474bfe33e49f889d08c095536cbda6242e260b742c59a7ada7a0a003bb4f6302f3e547da52cd48
-AUX trojita-0.7-cmake-cxx11.patch 2442 BLAKE2B ce2f29c96c93f254ccade934cfa6ad38f863c5e6b30cb9c45e92c6299a10e28a58a32a0515fe122e5beee0f82b154f9421519a6a211e6b9a3b6d1238ce09dd08 SHA512 2b2723be49d097fb1ca9d51ecbb30d2a4b3e766edc232eb8cc25b537f32c0dd0b8aeb24c3ae3b38929775f31262e36a0ba078e335076cab9b20d5ac8b41c0e60
-AUX trojita-0.7-crash-w-attachments.patch 3759 BLAKE2B 7542a8393f19573cd944c8fc36d92d319bd31390ecb92b557df876363c5ade88b59381fc24b561df23420bad43fa778ea6e5fcc1b33ce9cf48eaefb7aae8f49c SHA512 714b6d3b8a791783039f51d98b5d14b2b01ec3228993500623c980c09d04c38e6f26d236efa7fc722d68cd72692b646e5c4b2ca13d3d9b342e2072afb466ded0
-AUX trojita-0.7-desktop-spec-namespace.patch 2982 BLAKE2B feb83e5e2f3499973ce7c1a7401447d1c78969fc5072a58b6f55056e9105c61949f2b270eb564c2d036e7ccaeb357531a3ce4ab46c228b5d37b2e1548e73bf15 SHA512 7b3e89c5c889b61e3074923eec6d7365908ff2641730a12cbccc235859733770e120029a7f2e3a395317120fc45556ad3cbbc11c2d6e3cd2a06bd1d7abb93534
-AUX trojita-0.7-gpg-tests.patch 1465 BLAKE2B f336368c8166987dc096991a0855a05d83374b7d509dbd8b39e7a12f6f8b14b86c6405ea55882192601163cee9eadaf9ab306bfbdcae347857bf4dc2f3c5908a SHA512 e494de83085dbbd7c545e47fcb1116cfb48e787f7b8706bee51f30f74a9047d1cf835f20086355671643ee0ef88d01428683999765d4bb59c3d9d943e92c69eb
-AUX trojita-0.7-gpgme.patch 1416 BLAKE2B dba95c0954a6ac704e5145d140e905bf6f886db4b84f7a5dbc67ea0494b188d9ff79ccf096faaedc6a179167bc9394ced0203e9df69cc6368694e885fbb61836 SHA512 4031feb66e7ce53e5669e00dd8ca91a6a53a22207aae90e13ef38012777b76275911d78fbdcd58809571a7c649fb4025cdb7de97e9793102c62f5e8b7b0561e1
-AUX trojita-0.7-metainfo.patch 1474 BLAKE2B 29b78abba8404709b25a65f5ecce08e782bce0cf92b005b167b8681759b7e9d48c4082e9ff4b7087d08183ba7b0d8ca300cedd7e370b26ccd3ac5a438910f582 SHA512 7b62e55a05954735b0b8eef30d29f3b4730fa90f0c7887cb31a3c0dcc9353f2f4913180ef0d20bccc72f5a0e49b0f812767b8acbdd263c08e7243cfb73cae9fe
-AUX trojita-0.7-qt-5.11b3.patch 9678 BLAKE2B 0bcf00db610594ff084f5ca3bcfe2d3ad40d44b461358c4b9fc730f6dba787d82837c16f2e6bc84df9d3f57ac404d7c006fc7db223efeacfb9e833b6209b4374 SHA512 c16f3a7b9555e70e61656eb8caf25f778ec14a1dfdd18f786ddc3d8ee49b28fd39c4f438d051dbf961afbaf8cafc3d84a5befa10111ba216b4dec300cd67e228
-AUX trojita-0.7-qt-5.13.patch 1044 BLAKE2B 4c110d49c9352f526470b2af255c98c8f8b80df0ddc6da5a8fdecee9a1d5000c473a17f64790ffa95e20f03431ddb7fc294bb1e20d11fd549ca4451bb030ebba SHA512 bce7713fb5bef29b2b189d281dee57ddfc57f1c0601f424aba2185668215878b9bfd3bb80f0d2f8b73219e782db5e64973e79190fe62afa8ba98327535139146
-AUX trojita-0.7-qt-5.15.patch 774 BLAKE2B 0c1de7d7eebc9782d2e3e889365b283b3c5c82b7d792f167783857e8544f29f0a29284923a9b5f2974a5dbf8b9b3e6147c14654d78a57b67b8151407a63863b6 SHA512 42d45246c49ae99d9a49ed2c2186042427c8ea35b84123c876951f1d9ddcf9236acd14fd36e592041296ca6f6200e20eca786c967dade37bf8be8148dd7b3cca
-DIST trojita-0.7.tar.xz 1038212 BLAKE2B 92dfb01fc1849d04958fd26ea731835c7287d5a6989d8e0c97c6679ce8f1c9f33a0f67c3f293fc85188e9d289c0dddee9847f4151b6f64396f3de86635b11f32 SHA512 fe4d9316f97d913619f27d24a5023c3d8dd4a6b9fb058651be12c67188f394aa8cbb60c7593e5eb28fc12fc883b76deeeb5f4f631edd255fdec4c5862c9a91c8
-EBUILD trojita-0.7-r6.ebuild 2140 BLAKE2B 922d98c9a52bd7f65e572898eb8015daf08eeb791600b9baded7cc316fc05362ac8b646c872e3477516d60686d1a1d480f4f44d69bcf7d94278fbfe911f71b71 SHA512 61fa729de435589b39d61fb7faba570ef2422fb502960ce742eea41f6853c89020afcef918dcb00820fdb0c38610f68948601feb7910a543d37f4bb39456288e
-EBUILD trojita-9999.ebuild 1842 BLAKE2B 80189d12128508e5cfbb520fe3ca38f05c27966e5b4448037d638b2001cd326e5cbce94999a599b19ce55a2a30d9b23926108a0138d96e7ae89b0586ce1b6726 SHA512 1ca293cafab7231724698f14cce7304d63fe4ba06ad9b963361f0a52de3da04d16df6b8f0f7775c40666a9a607e42825ad698c3e73f1bed0db94db50921a927a
-MISC metadata.xml 781 BLAKE2B b69732338840f8fbde51fd9383d61eb89ca5da7e7d71f3edd3af5656fe704b941211182a05684f7e20c17c0c77d2e074e1708e56adf5fd6f9efabf1565de33d3 SHA512 10cb4e2ba61546744a67199741a12907c672a0fa7189c4883eb452726948ff4931361d9401cc2f51e8b335d558c6431509f232bbf2202ba1fa72621415aa7928
diff --git a/mail-client/trojita/files/trojita-0.7-CVE-2019-10734.patch b/mail-client/trojita/files/trojita-0.7-CVE-2019-10734.patch
deleted file mode 100644
index d52edb042ad8..000000000000
--- a/mail-client/trojita/files/trojita-0.7-CVE-2019-10734.patch
+++ /dev/null
@@ -1,104 +0,0 @@
-From 8db7f450d52539b4c72ee968384911b6813ad1e7 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Jan=20Kundr=C3=A1t?= <jkt@kde.org>
-Date: Thu, 25 Jun 2020 21:39:34 +0200
-Subject: [PATCH] Prevent a possible decryption oracle attack
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Thanks to Jens Mueller (Ruhr-Uni Bochum and FH Münster) for reporting
-this. The gist is that an attacker can embed arbitrary ciphertext into
-their messages. Trojita decrypts that, and when we hit reply, the
-original *cleartext* gets quoted and put into a reply for the attacker
-to see.
-
-Fix this by not quoting any plaintext which originated in an encrypted
-message. That's pretty draconian, but hey, it works and we never came up
-with any better patch. Also, given that Trojita does not encrypt
-outgoing messages yet, this is probably also a conservative thing to do.
-
-Change-Id: I84c45b9e707eb7c99eb7183c6ef59ef41cd62c43
-CVE: CVE-2019-10734
-BUG: 404697
----
- src/Cryptography/GpgMe++.cpp | 2 ++
- src/Gui/MessageView.cpp | 9 ++++++++-
- src/Gui/PartWidget.cpp | 8 ++++++++
- src/Imap/Model/ItemRoles.h | 2 +-
- 4 files changed, 19 insertions(+), 2 deletions(-)
-
-diff --git a/src/Cryptography/GpgMe++.cpp b/src/Cryptography/GpgMe++.cpp
-index e012f603..716b8aff 100644
---- a/src/Cryptography/GpgMe++.cpp
-+++ b/src/Cryptography/GpgMe++.cpp
-@@ -267,6 +267,8 @@ QVariant GpgMePart::data(int role) const
- switch (role) {
- case Imap::Mailbox::RolePartSignatureVerifySupported:
- return m_wasSigned;
-+ case RolePartDecryptionSupported:
-+ return m_isAllegedlyEncrypted;
- case RolePartCryptoNotFinishedYet:
- return m_waitingForData ||
- (m_crypto.valid() &&
-diff --git a/src/Gui/MessageView.cpp b/src/Gui/MessageView.cpp
-index 7d649308..c95e0878 100644
---- a/src/Gui/MessageView.cpp
-+++ b/src/Gui/MessageView.cpp
-@@ -354,7 +354,6 @@ bool MessageView::eventFilter(QObject *object, QEvent *event)
- QString MessageView::quoteText() const
- {
- if (auto w = bodyWidget()) {
-- QStringList quote = Composer::quoteText(w->quoteMe().split(QLatin1Char('\n')));
- const Imap::Message::Envelope &e = message.data(Imap::Mailbox::RoleMessageEnvelope).value<Imap::Message::Envelope>();
- QString sender;
- if (!e.from.isEmpty())
-@@ -362,6 +361,14 @@ QString MessageView::quoteText() const
- if (e.from.isEmpty())
- sender = tr("you");
-
-+ if (messageModel->index(0, 0) /* fake message root */.child(0, 0) /* first MIME part */.data(Imap::Mailbox::RolePartDecryptionSupported).toBool()) {
-+ // This is just an UX improvement shortcut: real filtering for CVE-2019-10734 is in
-+ // MultipartSignedEncryptedWidget::quoteMe().
-+ // That is required because the encrypted part might not be the root part of the message.
-+ return tr("On %1, %2 sent an encrypted message:\n> ...\n\n").arg(e.date.toLocalTime().toString(Qt::SystemLocaleLongDate), sender);
-+ }
-+
-+ QStringList quote = Composer::quoteText(w->quoteMe().split(QLatin1Char('\n')));
- // One extra newline at the end of the quoted text to separate the response
- quote << QString();
-
-diff --git a/src/Gui/PartWidget.cpp b/src/Gui/PartWidget.cpp
-index bb27604d..96eff338 100644
---- a/src/Gui/PartWidget.cpp
-+++ b/src/Gui/PartWidget.cpp
-@@ -378,6 +378,14 @@ void MultipartSignedEncryptedWidget::updateStatusIndicator()
-
- QString MultipartSignedEncryptedWidget::quoteMe() const
- {
-+ if (m_partIndex.data(Imap::Mailbox::RolePartDecryptionSupported).toBool()) {
-+ // See CVE-2019-10734, the point is not to leak cleartext from encrypted content. Even when Trojita starts supporting
-+ // encryption of outgoing mail, we will have to check whether the encrypted cleartext is from the same sender, whether
-+ // it matches the list of recipients (which is dynamic and can be set later on), etc etc.
-+ // TL;DR, this is a can of worms.
-+ return tr("[Encrypted message]");
-+ }
-+
- return quoteMeHelper(children());
- }
-
-diff --git a/src/Imap/Model/ItemRoles.h b/src/Imap/Model/ItemRoles.h
-index 4588d4d0..00adb3bb 100644
---- a/src/Imap/Model/ItemRoles.h
-+++ b/src/Imap/Model/ItemRoles.h
-@@ -193,7 +193,7 @@ enum {
- RolePartSignatureVerifySupported,
- /** @short Is the format of this particular multipart/encrypted supported and recognized?
-
-- See RolePartSignatureVerifySupported, this is an equivalent.
-+ If true, this message part represents content of an encrypted message that Trojita can attempt to decrypt.
- */
- RolePartDecryptionSupported,
- /** @short Is there any point in waiting longer?
---
-GitLab
-
diff --git a/mail-client/trojita/files/trojita-0.7-CVE-2020-15047.patch b/mail-client/trojita/files/trojita-0.7-CVE-2020-15047.patch
deleted file mode 100644
index 44f1a5dab018..000000000000
--- a/mail-client/trojita/files/trojita-0.7-CVE-2020-15047.patch
+++ /dev/null
@@ -1,82 +0,0 @@
-From 77ddd5d44f2bf4155d0c9b6f7d05f01713b32d5d Mon Sep 17 00:00:00 2001
-From: Jan Kundrát <jkt@kde.org>
-Date: Thu, 25 Jun 2020 11:30:51 +0200
-Subject: [PATCH] SMTP: Do not ignore TLS errors
-
-This fixes a CVE-2020-15047 (category: CWE-295). Since commit 0083eea5ed
-which added initial, experimental support for SMTP message submission,
-we have apparently never implemented proper SSL/TLS error handling, and
-the code has ever since just kept silently ignoring any certificate
-verification errors. As a result, Trojita was susceptible to a MITM
-attack when sending e-mails. The information leaked include user's
-authentication details, including the password, and the content of sent
-messages.
-
-Sorry for this :(.
-
-Now, this patch re-enabes proper TLS error handling. It was not possible
-to directly re-use our code for TLS key pinning which we are using for
-IMAP connections. In the Qt TLS code, the decision to accept or not
-accept a TLS connection is a blocking one, so the IMAP code relies upon
-the protocol state machine (i.e., another layer) for deciding whether to
-use or not to use the just-established TLS connection. Implementing an
-equivalent code in the SMTP library would be nice, but this hot-fix has
-a priority. As a result, SMTP connections to hosts with, e.g.,
-self-signed TLS certs, are no longer possible. Let's hope that this is
-not a practical problem with Lets Encrypt anymore.
-
-Thanks to Damian Poddebniak for reporting this bug.
-
-Change-Id: Icd6bbb2b0fb3e45159fc9699ebd07ab84262fe37
-CVE: CVE-2020-15047
-BUG: 423453
----
-
-diff --git a/src/MSA/SMTP.cpp b/src/MSA/SMTP.cpp
-index 3a05451..ac1eefc 100644
---- a/src/MSA/SMTP.cpp
-+++ b/src/MSA/SMTP.cpp
-@@ -21,6 +21,7 @@
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
- #include "SMTP.h"
-+#include "UiUtils/Formatting.h"
-
- namespace MSA
- {
-@@ -32,8 +33,8 @@
- user(user), failed(false), isWaitingForPassword(false), sendingMode(MODE_SMTP_INVALID)
- {
- qwwSmtp = new QwwSmtpClient(this);
-- // FIXME: handle SSL errors properly
-- connect(qwwSmtp, &QwwSmtpClient::sslErrors, qwwSmtp, &QwwSmtpClient::ignoreSslErrors);
-+ // FIXME: handle SSL errors in the same way as we handle IMAP TLS errors, with key pinning, etc.
-+ connect(qwwSmtp, &QwwSmtpClient::sslErrors, this, &SMTP::handleSslErrors);
- connect(qwwSmtp, &QwwSmtpClient::connected, this, &AbstractMSA::sending);
- connect(qwwSmtp, &QwwSmtpClient::done, this, &SMTP::handleDone);
- connect(qwwSmtp, &QwwSmtpClient::socketError, this, &SMTP::handleError);
-@@ -78,6 +79,12 @@
- emit error(msg);
- }
-
-+void SMTP::handleSslErrors(const QList<QSslError>& errors)
-+{
-+ auto msg = UiUtils::Formatting::sslErrorsToHtml(errors);
-+ emit error(tr("<p>Cannot send message due to an SSL/TLS error</p>\n%1").arg(msg));
-+}
-+
- void SMTP::setPassword(const QString &password)
- {
- pass = password;
-diff --git a/src/MSA/SMTP.h b/src/MSA/SMTP.h
-index 453407d..913bb87 100644
---- a/src/MSA/SMTP.h
-+++ b/src/MSA/SMTP.h
-@@ -43,6 +43,7 @@
- virtual void setPassword(const QString &password);
- void handleDone(bool ok);
- void handleError(QAbstractSocket::SocketError err, const QString &msg);
-+ void handleSslErrors(const QList<QSslError>& errors);
- private:
- QwwSmtpClient *qwwSmtp;
- QString host;
diff --git a/mail-client/trojita/files/trojita-0.7-cmake-cxx11.patch b/mail-client/trojita/files/trojita-0.7-cmake-cxx11.patch
deleted file mode 100644
index 71ab15950b83..000000000000
--- a/mail-client/trojita/files/trojita-0.7-cmake-cxx11.patch
+++ /dev/null
@@ -1,66 +0,0 @@
-From e2e35bfda75a2f4950408c93ede72fabfe86360e Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Jan=20Kundr=C3=A1t?= <jkt@kde.org>
-Date: Wed, 19 Oct 2016 22:15:16 +0200
-Subject: [PATCH] cmake: Speed up cmake by using native features for enforcing
- C++11
-
-This saves about 8 seconds in my (limited) testing with a 2016-era
-laptop with plenty of RAM and a fast SSD.
-
-We still attempt to support ancient pre-3.1 CMake by adding that blurb
-into CXXFLAGS, maybe it even works.
-
-I should probably start tracking time I spend supporting old
-environments and evaluate whether this is worth the effort. Once we are
-ready to distribute flatpaks/appimages/whatevers, I suspect that my life
-will become much easier.
-
-Change-Id: Ibbbe3d8440a7d29ef27440a99938d313bfe9699f
----
- CMakeLists.txt | 26 ++--
- 24 files changed, 8 insertions(+), 468 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 9393b19c..92a682f7 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -18,6 +18,14 @@ if(POLICY CMP0043)
- cmake_policy(SET CMP0043 OLD)
- endif()
-
-+if(CMAKE_VERSION VERSION_LESS "3.1")
-+ # If you aren't using and old Linux with an old GCC and old CMake, please just upgrade.
-+ set(CMAKE_CXX_FLAGS "--std=c++11 ${CMAKE_CXX_FLAGS}")
-+else()
-+ set(CMAKE_CXX_STANDARD 11)
-+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
-+endif()
-+
- # Set a default build type if none was specified. This was shamelessly stolen
- # from VTK's cmake setup because these guys produce both CMake and a project that
- # manipulates this variable, and the web is full of posts where people say that
-@@ -34,24 +42,6 @@ endif()
-
- set(CMAKE_POSITION_INDEPENDENT_CODE ON)
-
--include(FindCXXFeatures)
--if(NOT CXXFeatures_auto_FOUND)
-- message(SEND_ERROR "Your compiler doesn't support C++11's auto")
--endif()
--if(NOT CXXFeatures_static_assert_FOUND)
-- message(SEND_ERROR "Your compiler doesn't support C++11's static_assert")
--endif()
--if(NOT CXXFeatures_alignof_FOUND)
-- message(SEND_ERROR "Your compiler doesn't support C++11's alignof")
--endif()
--if(NOT CXXFeatures_nullptr_FOUND)
-- message(SEND_ERROR "Your compiler doesn't support C++11's nullptr")
--endif()
--if(NOT CXXFeatures_lambda_FOUND)
-- message(SEND_ERROR "Your compiler doesn't support C++11's lambda functions")
--endif()
--set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CXX11_COMPILER_FLAGS}")
--
- include(TrojitaOption)
-
- trojita_option(WITH_DESKTOP "Build desktop version" ON)
diff --git a/mail-client/trojita/files/trojita-0.7-crash-w-attachments.patch b/mail-client/trojita/files/trojita-0.7-crash-w-attachments.patch
deleted file mode 100644
index 38d11316e5ef..000000000000
--- a/mail-client/trojita/files/trojita-0.7-crash-w-attachments.patch
+++ /dev/null
@@ -1,68 +0,0 @@
-From cf2364b80fa8ae844df8350cd5833d47cce235f2 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Jan=20Kundr=C3=A1t?= <jkt@kde.org>
-Date: Mon, 9 Mar 2020 08:24:48 -0700
-Subject: [PATCH] Fix possible crash when downloading attachments
-
-Turns out we've been happily deleting network replies from the
-QNetworkReply::finished(). That was never a good thing to do, but it did
-not use to crash with older Qt. Now it does.
-
-After changing to deleteLater(), there's a window for
-already-deregistered replies to generate events, therefore the assert
-has to go, too, otherwise Bad Things happen:
-
- (gdb) bt
- #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
- #1 0x00007ffff16bdcd2 in __GI_abort () at abort.c:89
- #2 0x00007ffff2400bcb in qt_message_fatal (context=..., message=<synthetic pointer>...) at /var/tmp/portage/dev-qt/qtcore-5.13.9999/work/qtcore-5.13.9999/src/corelib/global/qlogging.cpp:1904
- #3 QMessageLogger::fatal (this=this@entry=0x7fffffffc990, msg=msg@entry=0x7ffff2690b10 "ASSERT: \"%s\" in file %s, line %d") at /var/tmp/portage/dev-qt/qtcore-5.13.9999/work/qtcore-5.13.9999/src/corelib/global/qlogging.cpp:888
- #4 0x00007ffff23fff7c in qt_assert (assertion=assertion@entry=0x5555558451d7 "reply", file=file@entry=0x555555841a38 "/home/jkt/work/prog/trojita/src/Imap/Network/FileDownloadManager.cpp", line=line@entry=142)
- at /var/tmp/portage/dev-qt/qtcore-5.13.9999/work/qtcore-5.13.9999/src/corelib/global/qglobal.cpp:3247
- #5 0x00005555555da840 in Imap::Network::FileDownloadManager::onPartDataTransfered (this=0x555556a20990)
- #6 0x00007ffff25f1bdf in QtPrivate::QSlotObjectBase::call (a=0x7fffffffcaa0, r=0x555556a20990, this=0x5555569f99c0) at ../../include/QtCore/../../../qtcore-5.13.9999/src/corelib/kernel/qobjectdefs_impl.h:394
- #7 QMetaObject::activate(QObject*, int, int, void**) () at /var/tmp/portage/dev-qt/qtcore-5.13.9999/work/qtcore-5.13.9999/src/corelib/kernel/qobject.cpp:3787
- #8 0x00007ffff25f20b7 in QMetaObject::activate (sender=sender@entry=0x555556a21370, m=m@entry=0x7ffff3f96b00 <QNetworkReply::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x0)
- at /var/tmp/portage/dev-qt/qtcore-5.13.9999/work/qtcore-5.13.9999/src/corelib/kernel/qobject.cpp:3658
- #9 0x00007ffff3d3cbf3 in QNetworkReply::finished (this=this@entry=0x555556a21370) at .moc/moc_qnetworkreply.cpp:385
- #10 0x0000555555709485 in Imap::Network::MsgPartNetworkReply::slotMyDataChanged() () at /home/jkt/work/prog/trojita/src/Imap/Network/MsgPartNetworkReply.cpp:112
-
-BUG: 417697
-Reported-by: Stefan de Konink <stefan@konink.de>
-Change-Id: I79f340c5a471430a14474472513d0a055c7238d6
----
- src/Imap/Network/FileDownloadManager.cpp | 10 ++++++----
- 1 file changed, 6 insertions(+), 4 deletions(-)
-
-diff --git a/src/Imap/Network/FileDownloadManager.cpp b/src/Imap/Network/FileDownloadManager.cpp
-index 16b6c8df..c3f72176 100644
---- a/src/Imap/Network/FileDownloadManager.cpp
-+++ b/src/Imap/Network/FileDownloadManager.cpp
-@@ -139,7 +139,9 @@ void FileDownloadManager::downloadMessage()
-
- void FileDownloadManager::onPartDataTransfered()
- {
-- Q_ASSERT(reply);
-+ if (!reply) {
-+ return;
-+ }
- if (reply->error() == QNetworkReply::NoError) {
- if (!saving.open(QIODevice::WriteOnly)) {
- emit transferError(saving.errorString());
-@@ -192,11 +194,11 @@ void FileDownloadManager::onCombinerTransferError(const QString &message)
-
- void FileDownloadManager::deleteReply(QNetworkReply *reply)
- {
-- if (reply == this->reply) {
-+ if (reply && reply == this->reply) {
- if (!saved)
- onPartDataTransfered();
-- delete reply;
-- this->reply = 0;
-+ reply->deleteLater();
-+ this->reply = nullptr;
- }
- }
-
---
-GitLab
-
diff --git a/mail-client/trojita/files/trojita-0.7-desktop-spec-namespace.patch b/mail-client/trojita/files/trojita-0.7-desktop-spec-namespace.patch
deleted file mode 100644
index 27ffe2c1ad0b..000000000000
--- a/mail-client/trojita/files/trojita-0.7-desktop-spec-namespace.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-From d080f7855707634867593163e7d20ac85694f5be Mon Sep 17 00:00:00 2001
-From: Luigi Toscano <luigi.toscano@tiscali.it>
-Date: Mon, 3 Oct 2016 22:29:22 +0200
-Subject: [PATCH] Add namespace to desktop and appdata files
-
-Add the organization namespace to the desktop and then appdata files,
-according the Desktop Entry specification.
-
-Change-Id: I4c400ef0f120c3f549c0e19b4e74550cc8b54be8
----
- CMakeLists.txt | 6 +++---
- .../{trojita.appdata.xml => org.kde.trojita.appdata.xml} | 2 +-
- src/Gui/{trojita.desktop => org.kde.trojita.desktop} | 0
- 3 files changed, 4 insertions(+), 4 deletions(-)
- rename src/Gui/{trojita.appdata.xml => org.kde.trojita.appdata.xml} (99%)
- rename src/Gui/{trojita.desktop => org.kde.trojita.desktop} (100%)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index da40ddb3..d242eda0 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -728,10 +728,10 @@ if(WITH_ABOOKADDRESSBOOK_PLUGIN)
- endif()
-
- if(WITH_DESKTOP)
-- copy_desktop_file_without_cruft("${CMAKE_CURRENT_SOURCE_DIR}/src/Gui/trojita.desktop" "${CMAKE_CURRENT_BINARY_DIR}/trojita-DesktopGui.desktop")
-+ copy_desktop_file_without_cruft("${CMAKE_CURRENT_SOURCE_DIR}/src/Gui/org.kde.trojita.desktop" "${CMAKE_CURRENT_BINARY_DIR}/org.kde.trojita-DesktopGui.desktop")
- install(TARGETS trojita RUNTIME DESTINATION bin)
-- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/trojita-DesktopGui.desktop DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications/" RENAME trojita.desktop)
-- install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/Gui/trojita.appdata.xml DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/appdata/")
-+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.trojita-DesktopGui.desktop DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications/" RENAME org.kde.trojita.desktop)
-+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/Gui/org.kde.trojita.appdata.xml DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/appdata/")
- install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/icons/trojita.png DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/32x32/apps/")
- install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/icons/trojita.svg DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps/")
- endif()
-diff --git a/src/Gui/trojita.appdata.xml b/src/Gui/org.kde.trojita.appdata.xml
-similarity index 99%
-rename from src/Gui/trojita.appdata.xml
-rename to src/Gui/org.kde.trojita.appdata.xml
-index 39548041..04f9873c 100644
---- a/src/Gui/trojita.appdata.xml
-+++ b/src/Gui/org.kde.trojita.appdata.xml
-@@ -1,6 +1,6 @@
- <?xml version="1.0" encoding="utf-8"?>
- <component type="desktop">
-- <id>trojita.desktop</id>
-+ <id>org.kde.trojita.desktop</id>
- <metadata_license>CC0-1.0</metadata_license>
- <project_license>GPL-2.0+</project_license>
- <name>Trojitá</name>
-diff --git a/src/Gui/trojita.desktop b/src/Gui/org.kde.trojita.desktop
-similarity index 100%
-rename from src/Gui/trojita.desktop
-rename to src/Gui/org.kde.trojita.desktop
---
-GitLab
-
diff --git a/mail-client/trojita/files/trojita-0.7-gpg-tests.patch b/mail-client/trojita/files/trojita-0.7-gpg-tests.patch
deleted file mode 100644
index db41ee577e82..000000000000
--- a/mail-client/trojita/files/trojita-0.7-gpg-tests.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-commit be8fd5831afa0a04f14cd6206e6576f03ee59558
-Author: Amaury Pouly <amaury.pouly@gmail.com>
-Date: Sat Sep 17 16:40:46 2016 +0100
-
- Fix GPG test
-
- At least GnuPG, when run with both --fingerprint and --with-colons will output
- the fingerprint of the public key and the subkey. The command below will thus
- output two fingerprints and the delete command will fail because it cannot
- find the second fingerprint (which is a subkey and not a public key). It seems
- that a safe approach is to consider only the first fingerprint line.
-
- Change-Id: I4c6aa79e4473bca146aa087728a5652d91586a81
-
-diff --git a/tests/Cryptography/keygen.sh b/tests/Cryptography/keygen.sh
-index c94c0ab..98c69ca 100755
---- a/tests/Cryptography/keygen.sh
-+++ b/tests/Cryptography/keygen.sh
-@@ -115,7 +115,7 @@ $TAIL" > crypto_test_data.h
- echo -n "key *\nexpire\nseconds=1\nsave\n" | ${GPG} --no-tty --quiet --command-fd 0 --edit-key "expired@test.trojita.flaska.net"
-
- # extract fingerprint of key to be deleted
--FINGERPRINT="$(${GPG} --quiet --no-tty --list-keys --with-colons --fingerprint unknown@test.trojita.flaska.net | grep fpr | cut -d : -f 10)"
-+FINGERPRINT="$(${GPG} --quiet --no-tty --list-keys --with-colons --fingerprint unknown@test.trojita.flaska.net | grep fpr | head -n 1 | cut -d : -f 10)"
-
- # delete key
- yes | DISPLAY="" ${GPG} --quiet --batch --no-tty --delete-secret-and-public-key --yes --command-fd 0 --passphrase-fd 0 "${FINGERPRINT}"
diff --git a/mail-client/trojita/files/trojita-0.7-gpgme.patch b/mail-client/trojita/files/trojita-0.7-gpgme.patch
deleted file mode 100644
index 2a7a6d5e7085..000000000000
--- a/mail-client/trojita/files/trojita-0.7-gpgme.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-commit 1978d0a12d2cb4886c5612d6a50b145f409d815c
-Author: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
-Date: Wed Oct 26 22:42:47 2016 +0200
-
- Switch from KF5Gpgmepp to Gpgmepp
-
- Gpgmepp is part of GpgME since 1.7.0.
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index edf3e79..6993d2e 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -84,7 +84,7 @@ trojita_plugin_option(WITH_QTKEYCHAIN_PLUGIN "Build Qtkeychain password plugin"
- trojita_find_package(Git "" "" "" "")
-
- trojita_find_package(Mimetic "" "http://www.codesink.org/mimetic_mime_library.html" "C++ MIME Library" "Required for client-side MIME parsing" WITH_MIMETIC)
--trojita_find_package(KF5Gpgmepp "" "https://quickgit.kde.org/?p=gpgmepp.git" "C++ bindings for gpgme" "Needed for encrypted/signed e-mails" WITH_GPGMEPP)
-+trojita_find_package(QGpgme 1.8.0 "http://www.gnupg.org" "Qt5/C++ bindings for GpgME" "Needed for encrypted/signed e-mails" WITH_GPGMEPP)
- trojita_option(WITH_CRYPTO_MESSAGES "Enable support for encrypted messages" AUTO "WITH_MIMETIC;WITH_GPGMEPP")
-
- if(WIN32)
-@@ -615,11 +615,7 @@ if(WITH_MIMETIC)
- endif()
- if(WITH_CRYPTO_MESSAGES)
- if(WITH_GPGMEPP)
-- if (WIN32)
-- target_link_libraries(Cryptography KF5::Gpgmepp KF5::QGpgme)
-- else()
-- target_link_libraries(Cryptography KF5::Gpgmepp-pthread KF5::QGpgme)
-- endif()
-+ target_link_libraries(Cryptography QGpgme)
- endif()
- endif()
-
diff --git a/mail-client/trojita/files/trojita-0.7-metainfo.patch b/mail-client/trojita/files/trojita-0.7-metainfo.patch
deleted file mode 100644
index 705fe714376e..000000000000
--- a/mail-client/trojita/files/trojita-0.7-metainfo.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From 4706896bbc3d7d9189a64117b75c01399b5271b9 Mon Sep 17 00:00:00 2001
-From: Luigi Toscano <luigi.toscano@tiscali.it>
-Date: Mon, 3 Oct 2016 22:30:22 +0200
-Subject: [PATCH] Use the new directory for metadata (metainfo) files
-
-Change-Id: I06d721c6e082166fc303435b39e42c9f358ecca9
----
- CMakeLists.txt | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index d242eda0..9393b19c 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -731,7 +731,7 @@ if(WITH_DESKTOP)
- copy_desktop_file_without_cruft("${CMAKE_CURRENT_SOURCE_DIR}/src/Gui/org.kde.trojita.desktop" "${CMAKE_CURRENT_BINARY_DIR}/org.kde.trojita-DesktopGui.desktop")
- install(TARGETS trojita RUNTIME DESTINATION bin)
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.trojita-DesktopGui.desktop DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications/" RENAME org.kde.trojita.desktop)
-- install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/Gui/org.kde.trojita.appdata.xml DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/appdata/")
-+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/Gui/org.kde.trojita.appdata.xml DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/metainfo/")
- install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/icons/trojita.png DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/32x32/apps/")
- install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/icons/trojita.svg DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps/")
- endif()
---
-GitLab
-
diff --git a/mail-client/trojita/files/trojita-0.7-qt-5.11b3.patch b/mail-client/trojita/files/trojita-0.7-qt-5.11b3.patch
deleted file mode 100644
index 32d1a0219725..000000000000
--- a/mail-client/trojita/files/trojita-0.7-qt-5.11b3.patch
+++ /dev/null
@@ -1,207 +0,0 @@
-From 7a9f7e0629aa28ffafc4433bbdf43a011754d7c3 Mon Sep 17 00:00:00 2001
-From: Andreas Sturmlechner <asturm@gentoo.org>
-Date: Wed, 18 Apr 2018 18:53:23 +0200
-Subject: [PATCH] Fix build with Qt 5.11_beta3 (dropping qt5_use_modules)
-
----
- CMakeLists.txt | 1 -
- cmake/TrojitaOption.cmake | 2 +-
- 2 files changed, 1 insertion(+), 2 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 3a882370..781e576b 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -1,7 +1,6 @@
- project(trojita)
- set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
-
--# Qt5's qt5_use_modules need 2.8.9+
- # On win32, we need QtMain linking, which means 2.8.11+
- # EL7 ships 2.8.11, Debian 8 ships 3.0.2, and Ubuntu 14.04 LTS has 2.8.12
- cmake_minimum_required(VERSION 2.8.11)
-diff --git a/cmake/TrojitaOption.cmake b/cmake/TrojitaOption.cmake
-index ed99e952..8ac6b6be 100644
---- a/cmake/TrojitaOption.cmake
-+++ b/cmake/TrojitaOption.cmake
-@@ -100,7 +100,7 @@ macro(trojita_add_plugin target type)
- set_property(TARGET ${target} APPEND PROPERTY COMPILE_DEFINITIONS BUILD_PLUGIN)
- target_link_libraries(${target} Plugins)
- if (WITH_QT5)
-- qt5_use_modules(${target} Core)
-+ target_link_libraries(${target} Qt5::Core)
- else()
- target_link_libraries(${target} ${QT_QTCORE_LIBRARY})
- endif()
---
-2.17.0
-
-From 94adf1d2e3e2d4a9e0c59fa9423ae711cf55c6fa Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Jan=20Kundr=C3=A1t?= <jkt@kde.org>
-Date: Wed, 19 Oct 2016 21:58:57 +0200
-Subject: [PATCH] cmake: do not use qt5_use_modules
-
-...because the documentation suggests going with imported targets and
-target_link_libraries.
-
-Change-Id: I403d40d0b0ac8d88cadb011c2c2a643221f15daf
----
- CMakeLists.txt | 42 ++++++++++++++++--------------------------
- 1 file changed, 16 insertions(+), 26 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 92a682f7..f0d395d6 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -552,13 +552,13 @@ set_source_files_properties(${version_files}
- add_library(Common STATIC ${libCommon_SOURCES})
- set_property(TARGET Common APPEND PROPERTY COMPILE_DEFINITIONS QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII)
- add_dependencies(Common version)
--qt5_use_modules(Common Core Network)
-+target_link_libraries(Common Qt5::Network)
-
- add_library(AppVersion STATIC ${libAppVersion_SOURCES})
- set_property(TARGET AppVersion APPEND PROPERTY COMPILE_DEFINITIONS QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII)
- add_dependencies(AppVersion version)
- target_link_libraries(AppVersion Common)
--qt5_use_modules(AppVersion Core)
-+target_link_libraries(AppVersion Qt5::Core)
-
- if(WITH_SHARED_PLUGINS)
- add_library(Plugins SHARED ${libPlugins_SOURCES})
-@@ -569,12 +569,11 @@ else()
- endif()
- set_target_properties(Plugins PROPERTIES OUTPUT_NAME trojita_plugins)
- set_property(TARGET Plugins APPEND PROPERTY COMPILE_DEFINITIONS QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII)
--qt5_use_modules(Plugins Core)
-+target_link_libraries(Plugins Qt5::Core)
-
- add_library(UiUtils STATIC ${libUiUtils_SOURCES})
- set_property(TARGET UiUtils APPEND PROPERTY COMPILE_DEFINITIONS QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII)
--target_link_libraries(UiUtils Plugins Common)
--qt5_use_modules(UiUtils Core Gui Network)
-+target_link_libraries(UiUtils Plugins Common Qt5::Gui)
-
- add_library(Streams STATIC ${libStreams_SOURCES})
- set_property(TARGET Streams APPEND PROPERTY COMPILE_DEFINITIONS QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII)
-@@ -582,36 +581,32 @@ if(WITH_ZLIB)
- set_property(TARGET Streams APPEND PROPERTY INCLUDE_DIRECTORIES ${ZLIB_INCLUDE_DIR})
- target_link_libraries(Streams ${ZLIB_LIBRARIES})
- endif()
--qt5_use_modules(Streams Network)
-+target_link_libraries(Streams Qt5::Network)
-
- add_library(IPC STATIC ${libIPC_SOURCES})
- set_property(TARGET IPC APPEND PROPERTY COMPILE_DEFINITIONS QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII)
- if(WITH_DBUS)
-- qt5_use_modules(IPC DBus Widgets)
-+ target_link_libraries(IPC Qt5::DBus Qt5::Widgets)
- else()
-- qt5_use_modules(IPC Core)
-+ target_link_libraries(IPC Qt5::Core)
- endif()
-
- add_library(qwwsmtpclient STATIC ${libqwwsmtpclient_SOURCES})
--qt5_use_modules(qwwsmtpclient Network)
-+target_link_libraries(qwwsmtpclient Qt5::Network)
-
- add_library(MSA STATIC ${libMSA_SOURCES})
- set_property(TARGET MSA APPEND PROPERTY COMPILE_DEFINITIONS QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII)
- target_link_libraries(MSA Imap Streams qwwsmtpclient)
--qt5_use_modules(MSA Network)
-
- add_library(Composer STATIC ${libComposer_SOURCES})
- set_property(TARGET Composer APPEND PROPERTY COMPILE_DEFINITIONS QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII)
- target_link_libraries(Composer Common MSA Streams UiUtils qwwsmtpclient)
--qt5_use_modules(Composer Gui Network)
-
- add_library(Imap STATIC ${libImap_SOURCES})
- set_property(TARGET Imap APPEND PROPERTY COMPILE_DEFINITIONS QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII)
--target_link_libraries(Imap Common Streams UiUtils)
--qt5_use_modules(Imap Gui Network Sql)
-+target_link_libraries(Imap Common Streams UiUtils Qt5::Sql)
-
- add_library(Cryptography STATIC ${libCryptography_SOURCES})
--qt5_use_modules(Cryptography Core)
- set_property(TARGET Cryptography APPEND PROPERTY COMPILE_DEFINITIONS QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII)
- target_link_libraries(Cryptography Common Imap)
- if(WITH_MIMETIC)
-@@ -636,8 +631,7 @@ endif()
- ## QtKeyChain plugin
- if(WITH_QTKEYCHAIN_PLUGIN)
- trojita_add_plugin(trojita_plugin_QtKeychainPasswordPlugin WITH_QTKEYCHAIN_PLUGIN src/Plugins/QtKeyChain/QtKeyChainPassword.cpp)
-- qt5_use_modules(trojita_plugin_QtKeychainPasswordPlugin Core DBus)
-- target_link_libraries(trojita_plugin_QtKeychainPasswordPlugin ${QTKEYCHAIN_LIBRARIES})
-+ target_link_libraries(trojita_plugin_QtKeychainPasswordPlugin ${QTKEYCHAIN_LIBRARIES} Qt5::DBus)
- set_property(TARGET trojita_plugin_QtKeychainPasswordPlugin APPEND PROPERTY INCLUDE_DIRECTORIES ${QTKEYCHAIN_INCLUDE_DIRS})
- endif()
-
-@@ -662,7 +656,7 @@ if(WITH_ABOOKADDRESSBOOK_PLUGIN)
- trojita_add_plugin(trojita_plugin_AbookAddressbookPlugin WITH_ABOOKADDRESSBOOK_PLUGIN ${libAbookAddressbook_SOURCES} ${libAbookAddressbook_UI_OUT})
- set_property(TARGET trojita_plugin_AbookAddressbookPlugin APPEND PROPERTY COMPILE_DEFINITIONS QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII)
-
-- qt5_use_modules(trojita_plugin_AbookAddressbookPlugin Widgets)
-+ target_link_libraries(trojita_plugin_AbookAddressbookPlugin Qt5::Widgets)
-
- set(be_contacts_SOURCES
- ${path_AbookAddressbook}/main.cpp
-@@ -675,7 +669,7 @@ if(WITH_ABOOKADDRESSBOOK_PLUGIN)
- set_property(TARGET be.contacts APPEND PROPERTY COMPILE_DEFINITIONS QT_STATICPLUGIN)
- target_link_libraries(be.contacts trojita_plugin_AbookAddressbookPlugin)
- endif()
-- qt5_use_modules(be.contacts Widgets)
-+ target_link_libraries(be.contacts Qt5::Widgets)
- endif()
-
- # Generate file static_plugins.h.in
-@@ -695,15 +689,13 @@ if(WITH_DESKTOP)
- # The following is needed for the LineEdit widget within the .ui files.
- # The ${path_DesktopGui} is needed so that the generated ui_*.h file can find the headers of the custom widgets
- set_property(TARGET DesktopGui APPEND PROPERTY INCLUDE_DIRECTORIES ${path_DesktopGui})
-- target_link_libraries(DesktopGui Common UiUtils Composer Cryptography Imap IPC MSA Plugins Streams qwwsmtpclient)
-+ target_link_libraries(DesktopGui Common UiUtils Composer Cryptography Imap IPC MSA Plugins Streams qwwsmtpclient Qt5::WebKitWidgets)
-
- # On Windows build a real Win32 GUI application without console window
- # On other platforms WIN32 flag is ignored
- add_executable(trojita WIN32 ${trojita_desktop_SOURCES} ${trojita_QM})
- set_property(TARGET trojita APPEND PROPERTY COMPILE_DEFINITIONS QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII)
- target_link_libraries(trojita AppVersion Common UiUtils DesktopGui ${STATIC_PLUGINS})
-- qt5_use_modules(DesktopGui Network WebKitWidgets)
-- qt5_use_modules(trojita Widgets Network)
- endif()
-
-
-@@ -737,17 +729,15 @@ if(WITH_TESTS)
- tests/Utils/LibMailboxSync.cpp
- )
- add_library(test_LibMailboxSync STATIC ${test_LibMailboxSync_SOURCES})
-- qt5_use_modules(test_LibMailboxSync Test Network)
- set_property(TARGET test_LibMailboxSync APPEND PROPERTY INCLUDE_DIRECTORIES
- ${CMAKE_CURRENT_SOURCE_DIR}/tests
- ${CMAKE_CURRENT_SOURCE_DIR}/tests/Utils)
-- target_link_libraries(test_LibMailboxSync Imap MSA Streams Common Composer)
-+ target_link_libraries(test_LibMailboxSync Imap MSA Streams Common Composer Qt5::Test)
-
- macro(trojita_test dir fname)
- set(test_${fname}_SOURCES tests/${dir}/test_${fname}.cpp)
- add_executable(test_${fname} ${test_${fname}_SOURCES})
- target_link_libraries(test_${fname} Imap MSA Streams Common Composer Cryptography test_LibMailboxSync)
-- qt5_use_modules(test_${fname} Network Sql Test Widgets)
- set_property(TARGET test_${fname} APPEND PROPERTY INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/tests)
- if(NOT CMAKE_CROSSCOMPILING)
- add_test(test_${fname} test_${fname})
-@@ -759,9 +749,9 @@ if(WITH_TESTS)
- enable_testing()
- trojita_test(Composer Composer_Submission)
- trojita_test(Composer Composer_responses)
-+ target_link_libraries(test_Composer_responses Qt5::WebKitWidgets)
- trojita_test(Composer Html_formatting)
-- qt5_use_modules(test_Composer_responses WebKitWidgets)
-- qt5_use_modules(test_Html_formatting WebKitWidgets)
-+ target_link_libraries(test_Html_formatting Qt5::WebKitWidgets)
- trojita_test(Imap Imap_DisappearingMailboxes)
- trojita_test(Imap Imap_Idle)
- trojita_test(Imap Imap_LowLevelParser)
---
-2.17.0
-
diff --git a/mail-client/trojita/files/trojita-0.7-qt-5.13.patch b/mail-client/trojita/files/trojita-0.7-qt-5.13.patch
deleted file mode 100644
index 9f1ab3e7e887..000000000000
--- a/mail-client/trojita/files/trojita-0.7-qt-5.13.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 39772585033c1c0aff96f297e93de7be53f9b114 Mon Sep 17 00:00:00 2001
-From: Heiko Becker <heirecka@exherbo.org>
-Date: Sat, 23 Mar 2019 01:17:11 +0100
-Subject: [PATCH] tests: Fix build with Qt 5.13
-
-QTest::toString(QModelIndex) was added in
-7ef0b575b38d267bd3dc14ff46935d556562ff00 and thus causes a build
-error with Qt 5.13 because it's redefined here.
-
-Change-Id: I015800e49cf8d0e87f3541642406396f150d0eeb
----
- tests/Imap/test_Imap_BodyParts.cpp | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/tests/Imap/test_Imap_BodyParts.cpp b/tests/Imap/test_Imap_BodyParts.cpp
-index f1c577fa..b6e0421d 100644
---- a/tests/Imap/test_Imap_BodyParts.cpp
-+++ b/tests/Imap/test_Imap_BodyParts.cpp
-@@ -51,6 +51,7 @@ struct Data {
-
- Q_DECLARE_METATYPE(QList<Data>)
-
-+#if QT_VERSION < QT_VERSION_CHECK(5, 13, 0)
- namespace QTest {
- template <>
- char *toString(const QModelIndex &index)
-@@ -60,6 +61,7 @@ char *toString(const QModelIndex &index)
- return qstrdup(buf.toUtf8().constData());
- }
- }
-+#endif
-
- using namespace Imap::Mailbox;
-
---
-GitLab
-
diff --git a/mail-client/trojita/files/trojita-0.7-qt-5.15.patch b/mail-client/trojita/files/trojita-0.7-qt-5.15.patch
deleted file mode 100644
index f6ce4cc938d4..000000000000
--- a/mail-client/trojita/files/trojita-0.7-qt-5.15.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 2869c385e72932cbed7398742b8a4d5e3feda765 Mon Sep 17 00:00:00 2001
-From: Heiko Becker <heirecka@exherbo.org>
-Date: Tue, 24 Mar 2020 13:14:43 +0100
-Subject: Fix build with Qt 5.15.0
-
-QPainterPath is no longer included via qtransform.h (since
-5.15.0-beta2, 50d2acdc93b4de2ba56eb67787e2bdcb21dd4bea in qtbase.git).
-
-Change-Id: Ibb59e769bba8514d86aa886afee26a2395d458ef
----
- src/Gui/Window.cpp | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/Gui/Window.cpp b/src/Gui/Window.cpp
-index 65ba246..8d74874 100644
---- a/src/Gui/Window.cpp
-+++ b/src/Gui/Window.cpp
-@@ -32,6 +32,7 @@
- #include <QKeyEvent>
- #include <QMenuBar>
- #include <QMessageBox>
-+#include <QPainterPath>
- #include <QProgressBar>
- #include <QRegularExpression>
- #include <QScopedPointer>
---
-cgit v1.1
-
diff --git a/mail-client/trojita/metadata.xml b/mail-client/trojita/metadata.xml
deleted file mode 100644
index 8cee3d853648..000000000000
--- a/mail-client/trojita/metadata.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person" proxied="yes">
- <email>jkt@kde.org</email>
- <name>Jan Kundrát</name>
- </maintainer>
- <maintainer type="project">
- <email>qt@gentoo.org</email>
- <name>Gentoo Qt Project</name>
- </maintainer>
- <maintainer type="project">
- <email>kde@gentoo.org</email>
- <name>Gentoo KDE Project</name>
- </maintainer>
- <use>
- <flag name="password">Store passwords securely via <pkg>dev-libs/qtkeychain</pkg></flag>
- <flag name="pim">Enable support for KDE PIM resources integration via <pkg>kde-apps/akonadi</pkg> addressbook plugin</flag>
- </use>
- <upstream>
- <remote-id type="sourceforge">trojita</remote-id>
- </upstream>
-</pkgmetadata>
diff --git a/mail-client/trojita/trojita-0.7-r6.ebuild b/mail-client/trojita/trojita-0.7-r6.ebuild
deleted file mode 100644
index 7c1b4c0b6fac..000000000000
--- a/mail-client/trojita/trojita-0.7-r6.ebuild
+++ /dev/null
@@ -1,90 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-if [[ ${PV} = *9999* ]]; then
- EGIT_REPO_URI="https://anongit.kde.org/${PN}.git"
- inherit git-r3
-else
- SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
- KEYWORDS="amd64 x86"
-fi
-inherit cmake virtualx xdg
-
-DESCRIPTION="A Qt IMAP e-mail client"
-HOMEPAGE="http://trojita.flaska.net/"
-
-LICENSE="|| ( GPL-2 GPL-3 )"
-SLOT="0"
-IUSE="+crypt +dbus debug +password test +zlib"
-
-REQUIRED_USE="password? ( dbus )"
-RESTRICT="!test? ( test )"
-
-BDEPEND="
- dev-qt/linguist-tools:5
- zlib? ( virtual/pkgconfig )
-"
-RDEPEND="
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- dev-qt/qtnetwork:5[ssl]
- dev-qt/qtsql:5[sqlite]
- dev-qt/qtsvg:5
- dev-qt/qtwebkit:5
- dev-qt/qtwidgets:5
- crypt? (
- >=app-crypt/gpgme-1.8.0[cxx,qt5]
- dev-libs/mimetic
- )
- dbus? ( dev-qt/qtdbus:5 )
- password? ( dev-libs/qtkeychain[qt5(+)] )
- zlib? ( sys-libs/zlib )
-"
-DEPEND="${RDEPEND}
- test? ( dev-qt/qttest:5 )
-"
-
-DOCS=( README LICENSE )
-
-PATCHES=(
- "${FILESDIR}/${P}-gpgme.patch"
- "${FILESDIR}/${P}-gpg-tests.patch"
- "${FILESDIR}/${P}-qt-5.11b3.patch"
- "${FILESDIR}/${P}-qt-5.13.patch" # bug 730058
- "${FILESDIR}/${P}-qt-5.15.patch"
- "${FILESDIR}/${P}-CVE-2019-10734.patch" # KDE-bug 404697
- "${FILESDIR}/${P}-CVE-2020-15047.patch" # bug 729596
- "${FILESDIR}/${P}-cmake-cxx11.patch"
- "${FILESDIR}/${P}-desktop-spec-namespace.patch"
- "${FILESDIR}/${P}-metainfo.patch" # bug 730140
- "${FILESDIR}/${P}-crash-w-attachments.patch" # KDE-Bug 417697
-)
-
-src_prepare() {
- cmake_src_prepare
-
- # the build system is taking a look at `git describe ... --dirty` and
- # gentoo's modifications to CMakeLists.txt break these
- sed -e "s/--dirty//" -i cmake/TrojitaVersion.cmake || die "Cannot fix the version check"
-}
-
-src_configure() {
- local mycmakeargs=(
- -DWITH_RAGEL=OFF # bug 739866, broken by ragel-7
- -DWITH_CRYPTO_MESSAGES=$(usex crypt)
- -DWITH_GPGMEPP=$(usex crypt)
- -DWITH_MIMETIC=$(usex crypt)
- -DWITH_DBUS=$(usex dbus)
- -DWITH_QTKEYCHAIN_PLUGIN=$(usex password)
- -DWITH_TESTS=$(usex test)
- -DWITH_ZLIB=$(usex zlib)
- )
-
- cmake_src_configure
-}
-
-src_test() {
- virtx cmake_src_test
-}
diff --git a/mail-client/trojita/trojita-9999.ebuild b/mail-client/trojita/trojita-9999.ebuild
deleted file mode 100644
index 0908d71cbc95..000000000000
--- a/mail-client/trojita/trojita-9999.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-if [[ ${PV} = *9999* ]]; then
- EGIT_REPO_URI="https://anongit.kde.org/${PN}.git"
- inherit git-r3
-else
- SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
- KEYWORDS="~amd64 ~x86"
-fi
-inherit cmake virtualx xdg
-
-DESCRIPTION="A Qt IMAP e-mail client"
-HOMEPAGE="http://trojita.flaska.net/"
-
-LICENSE="|| ( GPL-2 GPL-3 )"
-SLOT="0"
-IUSE="+crypt +dbus debug +password pim +spell test +zlib"
-
-REQUIRED_USE="password? ( dbus )"
-RESTRICT="!test? ( test )"
-
-BDEPEND="
- dev-qt/linguist-tools:5
- zlib? ( virtual/pkgconfig )
-"
-RDEPEND="
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- dev-qt/qtnetwork:5[ssl]
- dev-qt/qtsql:5[sqlite]
- dev-qt/qtsvg:5
- dev-qt/qtwebkit:5
- dev-qt/qtwidgets:5
- crypt? (
- >=app-crypt/gpgme-1.8.0[cxx,qt5]
- dev-libs/mimetic
- )
- dbus? ( dev-qt/qtdbus:5 )
- password? ( dev-libs/qtkeychain[qt5(+)] )
- pim? ( kde-apps/akonadi-contacts:5 )
- spell? ( kde-frameworks/sonnet:5 )
- zlib? ( sys-libs/zlib )
-"
-DEPEND="${RDEPEND}
- test? ( dev-qt/qttest:5 )
-"
-
-DOCS=( README LICENSE )
-
-src_prepare() {
- cmake_src_prepare
-
- # the build system is taking a look at `git describe ... --dirty` and
- # gentoo's modifications to CMakeLists.txt break these
- sed -e "s/--dirty//" -i cmake/TrojitaVersion.cmake || die "Cannot fix the version check"
-}
-
-src_configure() {
- local mycmakeargs=(
- -DWITH_RAGEL=OFF # bug 739866, broken by ragel-7
- -DWITH_ABOOKADDRESSBOOK_PLUGIN=ON
- -DWITH_CRYPTO_MESSAGES=$(usex crypt)
- -DWITH_GPGMEPP=$(usex crypt)
- -DWITH_MIMETIC=$(usex crypt)
- -DWITH_DBUS=$(usex dbus)
- -DWITH_QTKEYCHAIN_PLUGIN=$(usex password)
- -DWITH_AKONADIADDRESSBOOK_PLUGIN=$(usex pim)
- -DWITH_SONNET_PLUGIN=$(usex spell)
- -DBUILD_TESTING=$(usex test)
- -DWITH_ZLIB=$(usex zlib)
- )
-
- cmake_src_configure
-}
-
-src_test() {
- virtx cmake_src_test
-}