summaryrefslogtreecommitdiff
path: root/kde-apps/kmail
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-01-29 02:53:24 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-01-29 02:53:24 +0000
commitb8ec9071f5d20d8518b02d0077428b2c9f88861b (patch)
tree6214c0d63a2bd5ae464941924a90f415687fa63c /kde-apps/kmail
parentbdf6e70da7a28f45617c02a251bb6b3844202bc5 (diff)
gentoo auto-resync : 29:01:2023 - 02:53:24
Diffstat (limited to 'kde-apps/kmail')
-rw-r--r--kde-apps/kmail/Manifest8
-rw-r--r--kde-apps/kmail/files/kmail-22.08.3-fix-crash-on-replay-msg-w-user-template.patch38
-rw-r--r--kde-apps/kmail/files/kmail-22.08.3-fix-crash-on-startup.patch47
-rw-r--r--kde-apps/kmail/files/kmail-22.08.3-fix-open-detailed-progress-bar.patch52
-rw-r--r--kde-apps/kmail/files/kmail-22.08.3-fix-random-text-in-config-settings.patch29
-rw-r--r--kde-apps/kmail/files/kmail-22.08.3-remove-removed-ShowUserAgent.patch41
-rw-r--r--kde-apps/kmail/kmail-22.08.3-r2.ebuild123
-rw-r--r--kde-apps/kmail/kmail-22.12.1-r2.ebuild (renamed from kde-apps/kmail/kmail-22.12.1-r1.ebuild)4
8 files changed, 341 insertions, 1 deletions
diff --git a/kde-apps/kmail/Manifest b/kde-apps/kmail/Manifest
index d68ffb4f3b47..c4eb1d867d5b 100644
--- a/kde-apps/kmail/Manifest
+++ b/kde-apps/kmail/Manifest
@@ -1,5 +1,11 @@
+AUX kmail-22.08.3-fix-crash-on-replay-msg-w-user-template.patch 1375 BLAKE2B 9397a09c08410af7725b97aaf4448b336a58580fdbe00535688707663d24f67d136b7123c1b3951b9d1fa2ce58be819784b0a81b3f8741f680efc1a627ed0267 SHA512 34357cf282b44263cd79e4efbed80866d64a39e625603a4a36961c687ea124dc588d7b748170620477df347eef70d69a9aade49d34d83e9240e172fd578a341d
+AUX kmail-22.08.3-fix-crash-on-startup.patch 2553 BLAKE2B de687e9c9f88bbf18a873fbf766cddb344b5925eda0cfe061a73a633ae596cc8cad1802c4d08ca81a5a8acf49acab350d6b06ea299cb6e266360ac200a02bc18 SHA512 eef2be81d85f4102b1b6983757b144c6e855e1a35d18423b400bab918e858ea2ee91299c67b8ca13190cdd2cc26d67fc3c2f0fa68d7df8a7d0460c23cc40da88
+AUX kmail-22.08.3-fix-open-detailed-progress-bar.patch 1750 BLAKE2B eb90b9b6fce055770fcf675393fedd54bc8338349e655b0a42430ac68750327ac3dcf80e27fba9510dbb73c0b07f1e55a694a6843b3b8fb98ebd4e34027e913c SHA512 4da5a9116b0e4da98c2c1b261fb827dd47da1b237c28a4ccd18c92ecda612f00dfe14722f24f9347eab2556bee167f4b350827c0235b6843a2d654b44ee3e5b8
+AUX kmail-22.08.3-fix-random-text-in-config-settings.patch 1286 BLAKE2B 9de421be4e3a21b56502b19abb93bc47645a161f041b205a58fc7dd609964a9fdcadaca8f5af6915a63a2248b920c71b812be4e51fc5f82e08a864eb8e350d7d SHA512 ba87416c02a6d00c800b0973d8a797eaf842d2fb02b8f180e50ae901f9b9be5e413f8215b48babed63d8d04db37646e126ed88b3da8f5e808c1d41dfe12873bd
+AUX kmail-22.08.3-remove-removed-ShowUserAgent.patch 1485 BLAKE2B 13d2e0f1edea73c7754c1d591b2f0dfb93bbd20e2e450ab04a06d89064de6e6168c15e5e5808c2541f9729d71a5333ebbc6cc09c935be7fa839c19da107a2362 SHA512 550a210ba36fc12eebcf22c014608ea354874d67095bf9d45783a9dc4fad01f1dd99d6097527660572fcff6e1eda86444292592e9d064473aabd1d51d207f3b7
DIST kmail-22.08.3.tar.xz 7119980 BLAKE2B c8712dae42f4124c12bc9eb58428a13844180df4a52ab4748101223d741720be88fb8e7a06e2def75201e73cbbdabd96424e3a011feafc572e8b1d905193abfb SHA512 96e0cf57d0eb6a3802d1f2f57b2ed74ad751acfc76488f99d6c30363cd12eaa34eadc7cb375baf3f2dbfdc76364d10924db40ed1eb8c6b4f4279a399684a15eb
DIST kmail-22.12.1.tar.xz 7655784 BLAKE2B 40ae95818e90af6d87c9f1d31042395d587fe2fdff5ebd801192fbdb8ee067a1400d36bc515aac580a1f1cca9892f974acca1b424bf4b237c12a3168cc736ec7 SHA512 6ae55ffdaadcc4b07be49e14934d8bceeab77959be3a6ab3e7bb60591b46ac79484098299307c3fce028a631d54af8085a34c9c86e6f694159d01f28e7eb3813
EBUILD kmail-22.08.3-r1.ebuild 3587 BLAKE2B 15842c5c54bd7323efbb48dd5f16e631614753486fd776d13f85c79fb2c76fcad5d7c58e063ad245e73b2fff1634b289817d5bfe7c9b2d05e0106710078754aa SHA512 065a29b160cdd4dd1fd45be82362b2e9e3912ad0158bf6843aca487c6653ea14a9658ba1d38c94583cdac84049da87514ee81c35ab4146f4775b10ca8dba9231
-EBUILD kmail-22.12.1-r1.ebuild 3591 BLAKE2B 4c8299c9ef4656f482a6bc22b7c588be216bf35a12d125c125350929c0825a93005e04fb07b314a3bb535041a3f9da263eaad73a7ce1db98b25ff279247ab5b8 SHA512 e893215e52025040184675d720d3d1432f7c76c0a4c680916320c3a836c2e1462bb0028a95e69f2ce3c55c6ee592caa0231cc17e7f7f2f3b0d4c66e54f47d989
+EBUILD kmail-22.08.3-r2.ebuild 3899 BLAKE2B 593c5c7c0eeabaf8ab127b953c79b1ff81c2664e498731ca87698ecb6a30f1b1ebf18e1eaecc88dc972c8a6834f0634c137f0723b4b3f642260888c2ddd1e174 SHA512 1e8891fc84869cc7bb90abf019c96c404e62b93606954fdfbbb2de26da0d72ce10c225b8c8aacabca67382e47e68a49d22fd43e968fb5e930d4dfec32aaf6dfb
+EBUILD kmail-22.12.1-r2.ebuild 3679 BLAKE2B dd22eb06a9348cc20523c22136a40eacd9b439b708d8f60610bbbc2f0e6067d193f34aedfdc90a92e971f313c82fcae1e3129d2a9d9a46e1178b56dc5f7f0e4f SHA512 31eaef3b7ecd296f02a196f56c2c7812466d02531ec7eda7e2af964eefbee6f445676a460ccc2cf6cf290cd4cb03a6e3d110ea1753adfc464d39a4267437b708
MISC metadata.xml 445 BLAKE2B 47e37cd89e22df02281c65a6ef60502f35b58eef37ef35518f0ec66f8ecf75c9aaf94b36aa712b483455c2df11a2d2b72042517bc7db5a8569c3148aa0e028bb SHA512 533627f9773117d39b044a464bf0a075d111168bf5e4f2b222c05ef8f07f9e9139eafbb3b2869bbcc9e46529608679796e9532be55c6b1cb1980c68beb20cc33
diff --git a/kde-apps/kmail/files/kmail-22.08.3-fix-crash-on-replay-msg-w-user-template.patch b/kde-apps/kmail/files/kmail-22.08.3-fix-crash-on-replay-msg-w-user-template.patch
new file mode 100644
index 000000000000..5692a4916129
--- /dev/null
+++ b/kde-apps/kmail/files/kmail-22.08.3-fix-crash-on-replay-msg-w-user-template.patch
@@ -0,0 +1,38 @@
+From 94e28559c96b71721b02393a23cbfeefa93a607b Mon Sep 17 00:00:00 2001
+From: Laurent Montel <montel@kde.org>
+Date: Sat, 7 Jan 2023 00:31:18 +0100
+Subject: [PATCH] Fix bug 463935: Crash on attempting to replay a message with
+ an user template
+
+BUG: 463935
+FIXED-IN: 5.22.2
+---
+ src/kmmainwidget.cpp | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/src/kmmainwidget.cpp b/src/kmmainwidget.cpp
+index b00db6f53..3ab6a18af 100644
+--- a/src/kmmainwidget.cpp
++++ b/src/kmmainwidget.cpp
+@@ -2096,8 +2096,7 @@ void KMMainWidget::slotCustomReplyAllToMsg(const QString &tmpl)
+ qCDebug(KMAIL_LOG) << "Reply to All with template:" << tmpl;
+
+ auto command = new KMReplyCommand(this, msg, MessageComposer::ReplyAll, text, false, tmpl);
+- command->setReplyAsHtml(messageView()->htmlMail());
+-
++ command->setReplyAsHtml(messageView() ? messageView()->htmlMail() : false);
+ command->start();
+ }
+
+@@ -4745,7 +4744,7 @@ void KMMainWidget::slotRedirectCurrentMessage()
+ void KMMainWidget::replyMessageTo(const Akonadi::Item &item, bool replyToAll)
+ {
+ auto command = new KMReplyCommand(this, item, replyToAll ? MessageComposer::ReplyAll : MessageComposer::ReplyAuthor);
+- command->setReplyAsHtml(messageView()->htmlMail());
++ command->setReplyAsHtml(messageView() ? messageView()->htmlMail() : false);
+ command->start();
+ }
+
+--
+GitLab
+
diff --git a/kde-apps/kmail/files/kmail-22.08.3-fix-crash-on-startup.patch b/kde-apps/kmail/files/kmail-22.08.3-fix-crash-on-startup.patch
new file mode 100644
index 000000000000..a798f1afe567
--- /dev/null
+++ b/kde-apps/kmail/files/kmail-22.08.3-fix-crash-on-startup.patch
@@ -0,0 +1,47 @@
+From 9d37b837eca35bd7976709a9d25d3700c70e321e Mon Sep 17 00:00:00 2001
+From: Laurent Montel <montel@kde.org>
+Date: Sat, 31 Dec 2022 10:55:34 +0100
+Subject: [PATCH] Fix bug 460747: Kontact Crashes Upon Start
+
+BUG: 460747
+FIXED-IN: 5.22.1
+---
+ src/kmmainwidget.cpp | 15 ++++++++-------
+ 1 file changed, 8 insertions(+), 7 deletions(-)
+
+diff --git a/src/kmmainwidget.cpp b/src/kmmainwidget.cpp
+index 8d332b36b..8c7013f8b 100644
+--- a/src/kmmainwidget.cpp
++++ b/src/kmmainwidget.cpp
+@@ -3403,6 +3403,14 @@ void KMMainWidget::setupActions()
+ QAction *act = actionCollection()->addAction(KStandardAction::Undo, QStringLiteral("kmail_undo"));
+ connect(act, &QAction::triggered, this, &KMMainWidget::slotUndo);
+
++ mAccountSettings = new QAction(QIcon::fromTheme(QStringLiteral("configure")), i18n("Account &Settings"), this);
++ actionCollection()->addAction(QStringLiteral("resource_settings"), mAccountSettings);
++ connect(mAccountSettings, &QAction::triggered, this, &KMMainWidget::slotAccountSettings);
++
++ mRestartAccountSettings = new QAction(QIcon::fromTheme(QStringLiteral("view-refresh")), i18n("Restart Account"), this);
++ actionCollection()->addAction(QStringLiteral("resource_restart"), mRestartAccountSettings);
++ connect(mRestartAccountSettings, &QAction::triggered, this, &KMMainWidget::slotRestartAccount);
++
+ menutimer = new QTimer(this);
+ menutimer->setObjectName(QStringLiteral("menutimer"));
+ menutimer->setSingleShot(true);
+@@ -3535,13 +3543,6 @@ void KMMainWidget::setupActions()
+ actionCollection()->addAction(QStringLiteral("remove_duplicate_recursive"), mRemoveDuplicateRecursiveAction);
+ connect(mRemoveDuplicateRecursiveAction, &KToggleAction::triggered, this, &KMMainWidget::slotRemoveDuplicateRecursive);
+
+- mAccountSettings = new QAction(QIcon::fromTheme(QStringLiteral("configure")), i18n("Account &Settings"), this);
+- actionCollection()->addAction(QStringLiteral("resource_settings"), mAccountSettings);
+- connect(mAccountSettings, &QAction::triggered, this, &KMMainWidget::slotAccountSettings);
+-
+- mRestartAccountSettings = new QAction(QIcon::fromTheme(QStringLiteral("view-refresh")), i18n("Restart Account"), this);
+- actionCollection()->addAction(QStringLiteral("resource_restart"), mRestartAccountSettings);
+- connect(mRestartAccountSettings, &QAction::triggered, this, &KMMainWidget::slotRestartAccount);
+ {
+ QList<QAction *> listActions;
+ auto act = new QAction(i18n("Previous Selected Folder"), this); // TODO fix me i18n
+--
+GitLab
+
diff --git a/kde-apps/kmail/files/kmail-22.08.3-fix-open-detailed-progress-bar.patch b/kde-apps/kmail/files/kmail-22.08.3-fix-open-detailed-progress-bar.patch
new file mode 100644
index 000000000000..1ff35b388dc7
--- /dev/null
+++ b/kde-apps/kmail/files/kmail-22.08.3-fix-open-detailed-progress-bar.patch
@@ -0,0 +1,52 @@
+From 437295a534eca2907e749f18d8d895da50d343b9 Mon Sep 17 00:00:00 2001
+From: Laurent Montel <montel@kde.org>
+Date: Sat, 10 Dec 2022 19:55:33 +0100
+Subject: [PATCH] Fix bug 460289: Opening the detailed progress window does
+ nothing
+
+BUG: 460289
+FIXED-IN: 5.22.1
+---
+ src/kmmainwin.cpp | 5 ++++-
+ src/kmmainwin.h | 2 +-
+ 2 files changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/src/kmmainwin.cpp b/src/kmmainwin.cpp
+index 5900bf309..9952667fe 100644
+--- a/src/kmmainwin.cpp
++++ b/src/kmmainwin.cpp
+@@ -36,7 +36,6 @@ using namespace std::chrono_literals;
+
+ KMMainWin::KMMainWin(QWidget *)
+ : KXmlGuiWindow(nullptr)
+- , mProgressBar(new KPIM::ProgressStatusBarWidget(statusBar(), this))
+ , mMessageLabel(new QLabel(i18n("Starting...")))
+
+ {
+@@ -51,6 +50,10 @@ KMMainWin::KMMainWin(QWidget *)
+ resize(700, 500); // The default size
+
+ mKMMainWidget = new KMMainWidget(this, this, actionCollection());
++
++ // Don't initialize in constructor. We need this statusbar created
++ // Bug 460289
++ mProgressBar = new KPIM::ProgressStatusBarWidget(statusBar(), this);
+ connect(mKMMainWidget, &KMMainWidget::recreateGui, this, &KMMainWin::slotUpdateGui);
+ setCentralWidget(mKMMainWidget);
+ setupStatusBar();
+diff --git a/src/kmmainwin.h b/src/kmmainwin.h
+index 314f14d47..377f6818b 100644
+--- a/src/kmmainwin.h
++++ b/src/kmmainwin.h
+@@ -57,7 +57,7 @@ private:
+ void updateHamburgerMenu();
+ void slotShortcutSaved();
+ void slotFullScreen(bool t);
+- KPIM::ProgressStatusBarWidget *const mProgressBar;
++ KPIM::ProgressStatusBarWidget *mProgressBar = nullptr;
+ KMMainWidget *mKMMainWidget = nullptr;
+ KToggleAction *mShowMenuBarAction = nullptr;
+ QLabel *const mMessageLabel;
+--
+GitLab
+
diff --git a/kde-apps/kmail/files/kmail-22.08.3-fix-random-text-in-config-settings.patch b/kde-apps/kmail/files/kmail-22.08.3-fix-random-text-in-config-settings.patch
new file mode 100644
index 000000000000..282fb6109acc
--- /dev/null
+++ b/kde-apps/kmail/files/kmail-22.08.3-fix-random-text-in-config-settings.patch
@@ -0,0 +1,29 @@
+From 6618f8f80ccadff908d11db7506b3af8d15ad032 Mon Sep 17 00:00:00 2001
+From: Laurent Montel <montel@kde.org>
+Date: Fri, 16 Dec 2022 06:59:17 +0100
+Subject: [PATCH] BUG: 459399 Fix Random text in kmail's message list
+ configuration settings
+
+Apply patch from Yaroslav Sidlovsky (thanks)
+BUG: 459399
+FIXED-IN: 5.22.1
+---
+ src/configuredialog/configureappearancepage.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/configuredialog/configureappearancepage.cpp b/src/configuredialog/configureappearancepage.cpp
+index 085179f05..0909db227 100644
+--- a/src/configuredialog/configureappearancepage.cpp
++++ b/src/configuredialog/configureappearancepage.cpp
+@@ -622,7 +622,7 @@ AppearancePageHeadersTab::AppearancePageHeadersTab(QWidget *parent)
+ .subs(DateFormatter::formatCurrentDate(dateDisplayConfig[i].dateDisplay))
+ .toString(); // i18n(label, DateFormatter::formatCurrentDate(dateDisplayConfig[i].dateDisplay));
+ } else {
+- buttonLabel = i18n(label);
++ buttonLabel = KLocalizedString(dateDisplayConfig[i].displayName).toString();
+ }
+ if (dateDisplayConfig[i].dateDisplay == DateFormatter::Custom) {
+ auto hbox = new QWidget(this);
+--
+GitLab
+
diff --git a/kde-apps/kmail/files/kmail-22.08.3-remove-removed-ShowUserAgent.patch b/kde-apps/kmail/files/kmail-22.08.3-remove-removed-ShowUserAgent.patch
new file mode 100644
index 000000000000..a6484b11ae50
--- /dev/null
+++ b/kde-apps/kmail/files/kmail-22.08.3-remove-removed-ShowUserAgent.patch
@@ -0,0 +1,41 @@
+From fc0b487d3f3ac9c9ca0650aa635795b5478de85b Mon Sep 17 00:00:00 2001
+From: Laurent Montel <montel@kde.org>
+Date: Fri, 16 Dec 2022 07:28:28 +0100
+Subject: [PATCH] Remove info about removed feature (ShowUserAgent)
+
+CCBUG: 448348
+---
+ doc/kmail2/configure.docbook | 17 -----------------
+ 1 file changed, 17 deletions(-)
+
+diff --git a/doc/kmail2/configure.docbook b/doc/kmail2/configure.docbook
+index 4916acd8b..bb2648370 100644
+--- a/doc/kmail2/configure.docbook
++++ b/doc/kmail2/configure.docbook
+@@ -4167,23 +4167,6 @@ behavior, add to the [OutOfOffice] section:</para>
+ </itemizedlist>
+ </listitem>
+ </varlistentry>
+-<varlistentry>
+-<term><guilabel>ShowUserAgent</guilabel></term>
+-<listitem>
+-<para>
+-Starting in version 1.9, &kmail; can show the User-Agent or X-Mailer value
+-from the message header when using Fancy Headers (see <menuchoice><guimenu>View</guimenu>
+-<guisubmenu>Headers</guisubmenu></menuchoice> menu).
+-To enable this feature, add to the <quote>[Reader]</quote> section:</para>
+-<itemizedlist>
+-<listitem><para>Configuration file:</para>
+-<programlisting>ShowUserAgent=true</programlisting></listitem>
+-<listitem><para><command>kwriteconfig</command></para>
+-<para><prompt>&percnt;</prompt> <userinput><command>kwriteconfig</command> <option>--file <replaceable>/path/to/kmail2rc</replaceable> --group Reader --key ShowUserAgent true</option></userinput>
+-</para></listitem>
+-</itemizedlist>
+-</listitem>
+-</varlistentry>
+ </variablelist>
+ </sect1>
+
+--
+GitLab
+
diff --git a/kde-apps/kmail/kmail-22.08.3-r2.ebuild b/kde-apps/kmail/kmail-22.08.3-r2.ebuild
new file mode 100644
index 000000000000..1bbe4c685f7c
--- /dev/null
+++ b/kde-apps/kmail/kmail-22.08.3-r2.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_HANDBOOK="optional"
+ECM_TEST="forceoptional"
+PVCUT=$(ver_cut 1-3)
+KFMIN=5.96.0
+QTMIN=5.15.5
+VIRTUALX_REQUIRED="test"
+inherit ecm gear.kde.org optfeature
+
+DESCRIPTION="Email client, supporting POP3 and IMAP mailboxes"
+HOMEPAGE="https://apps.kde.org/kmail2/
+https://kontact.kde.org/components/kmail/"
+
+LICENSE="GPL-2+ handbook? ( FDL-1.2+ )"
+SLOT="5"
+KEYWORDS="amd64 arm64 ~ppc64 x86"
+IUSE="pch speech telemetry"
+
+RESTRICT="test" # bug 616878
+
+# kde-frameworks/kwindowsystem[X]: Unconditional use of KX11Extras
+COMMON_DEPEND="
+ >=app-crypt/gpgme-1.16.0:=[cxx,qt5]
+ >=dev-qt/qtcore-${QTMIN}:5
+ >=dev-qt/qtdbus-${QTMIN}:5
+ >=dev-qt/qtgui-${QTMIN}:5
+ >=dev-qt/qtnetwork-${QTMIN}:5
+ >=dev-qt/qtwebengine-${QTMIN}:5[widgets]
+ >=dev-qt/qtwidgets-${QTMIN}:5
+ >=kde-apps/akonadi-${PVCUT}:5
+ >=kde-apps/akonadi-contacts-${PVCUT}:5
+ >=kde-apps/akonadi-mime-${PVCUT}:5
+ >=kde-apps/akonadi-search-${PVCUT}:5
+ >=kde-apps/kidentitymanagement-${PVCUT}:5
+ >=kde-apps/kmailtransport-${PVCUT}:5
+ >=kde-apps/kmime-${PVCUT}:5
+ >=kde-apps/kontactinterface-${PVCUT}:5
+ >=kde-apps/kpimtextedit-${PVCUT}:5[speech=]
+ >=kde-apps/libgravatar-${PVCUT}:5
+ >=kde-apps/libkdepim-${PVCUT}:5
+ >=kde-apps/libkleo-${PVCUT}:5
+ >=kde-apps/libksieve-${PVCUT}:5
+ >=kde-apps/libktnef-${PVCUT}:5
+ >=kde-apps/mailcommon-${PVCUT}:5
+ >=kde-apps/messagelib-${PVCUT}:5
+ >=kde-apps/pimcommon-${PVCUT}:5
+ >=kde-frameworks/kbookmarks-${KFMIN}:5
+ >=kde-frameworks/kcalendarcore-${KFMIN}:5
+ >=kde-frameworks/kcmutils-${KFMIN}:5
+ >=kde-frameworks/kcompletion-${KFMIN}:5
+ >=kde-frameworks/kconfig-${KFMIN}:5
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:5
+ >=kde-frameworks/kcontacts-${KFMIN}:5
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5
+ >=kde-frameworks/kcrash-${KFMIN}:5
+ >=kde-frameworks/kdbusaddons-${KFMIN}:5
+ >=kde-frameworks/kguiaddons-${KFMIN}:5
+ >=kde-frameworks/ki18n-${KFMIN}:5
+ >=kde-frameworks/kiconthemes-${KFMIN}:5
+ >=kde-frameworks/kitemviews-${KFMIN}:5
+ >=kde-frameworks/kio-${KFMIN}:5
+ >=kde-frameworks/kjobwidgets-${KFMIN}:5
+ >=kde-frameworks/knotifications-${KFMIN}:5
+ >=kde-frameworks/knotifyconfig-${KFMIN}:5
+ >=kde-frameworks/kparts-${KFMIN}:5
+ >=kde-frameworks/kservice-${KFMIN}:5
+ >=kde-frameworks/ktextwidgets-${KFMIN}:5
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5
+ >=kde-frameworks/kwindowsystem-${KFMIN}:5[X]
+ >=kde-frameworks/kxmlgui-${KFMIN}:5
+ >=kde-frameworks/sonnet-${KFMIN}:5
+ telemetry? ( >=dev-libs/kuserfeedback-1.2.0:5 )
+"
+DEPEND="${COMMON_DEPEND}
+ >=kde-apps/kcalutils-${PVCUT}:5
+ >=kde-apps/kldap-${PVCUT}:5
+ test? ( >=kde-apps/akonadi-${PVCUT}:5[sqlite] )
+"
+RDEPEND="${COMMON_DEPEND}
+ >=kde-apps/kdepim-runtime-${PVCUT}:5
+ >=kde-apps/kmail-account-wizard-${PVCUT}:5
+"
+BDEPEND="
+ dev-libs/libxslt
+ test? ( >=kde-apps/akonadi-${PVCUT}:5[tools] )
+"
+
+PATCHES=(
+ "${FILESDIR}/${P}-fix-open-detailed-progress-bar.patch" # bug 891509
+ "${FILESDIR}/${P}-fix-random-text-in-config-settings.patch"
+ "${FILESDIR}/${P}-remove-removed-ShowUserAgent.patch"
+ "${FILESDIR}/${P}-fix-crash-on-startup.patch"
+ "${FILESDIR}/${P}-fix-crash-on-replay-msg-w-user-template.patch"
+)
+
+src_prepare() {
+ ecm_src_prepare
+ use handbook || cmake_run_in ktnef cmake_comment_add_subdirectory doc
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DUSE_PRECOMPILED_HEADERS=$(usex pch)
+ $(cmake_use_find_package telemetry KUserFeedback)
+ )
+
+ ecm_src_configure
+}
+
+pkg_postinst() {
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ optfeature "virus detection" app-antivirus/clamav
+ optfeature "spam filtering" mail-filter/bogofilter mail-filter/spamassassin
+ optfeature "fancy e-mail headers and useful plugins" kde-apps/kdepim-addons:${SLOT}
+ optfeature "crypto config and certificate details GUI" kde-apps/kleopatra:${SLOT}
+ optfeature "import PIM data from other applications" kde-apps/akonadi-import-wizard:${SLOT}
+ fi
+ ecm_pkg_postinst
+}
diff --git a/kde-apps/kmail/kmail-22.12.1-r1.ebuild b/kde-apps/kmail/kmail-22.12.1-r2.ebuild
index 7a2b5b2d6ad9..4130f4de525d 100644
--- a/kde-apps/kmail/kmail-22.12.1-r1.ebuild
+++ b/kde-apps/kmail/kmail-22.12.1-r2.ebuild
@@ -89,6 +89,10 @@ BDEPEND="
test? ( >=kde-apps/akonadi-${PVCUT}:5[tools] )
"
+PATCHES=(
+ "${FILESDIR}/${PN}-22.08.3-fix-crash-on-replay-msg-w-user-template.patch"
+)
+
src_prepare() {
ecm_src_prepare
use handbook || cmake_run_in ktnef cmake_comment_add_subdirectory doc