diff --git a/rpm/0027-Allow-a-service-provided-folder-to-be-set-as-the-sta.patch b/rpm/0027-Allow-a-service-provided-folder-to-be-set-as-the-sta.patch new file mode 100644 index 0000000..d1f64b3 --- /dev/null +++ b/rpm/0027-Allow-a-service-provided-folder-to-be-set-as-the-sta.patch @@ -0,0 +1,37 @@ +From 03f36b882f2034157043d697368a58b544bc1ea3 Mon Sep 17 00:00:00 2001 +From: Andrew den Exter +Date: Mon, 2 Nov 2020 06:18:17 +0000 +Subject: [PATCH] Allow a service provided folder to be set as the standard + outbox folder. + +--- + src/libraries/qmfclient/qmailaccount.cpp | 12 ++++-------- + 1 file changed, 4 insertions(+), 8 deletions(-) + +diff --git a/src/libraries/qmfclient/qmailaccount.cpp b/src/libraries/qmfclient/qmailaccount.cpp +index 79025c6e..48baaf37 100644 +--- a/src/libraries/qmfclient/qmailaccount.cpp ++++ b/src/libraries/qmfclient/qmailaccount.cpp +@@ -620,15 +620,11 @@ QMailFolderId QMailAccount::standardFolder(QMailFolder::StandardFolder folder) c + */ + void QMailAccount::setStandardFolder(QMailFolder::StandardFolder folder, const QMailFolderId &folderId) + { +- if (folder == QMailFolder::OutboxFolder) { +- qWarning() << "Cannot configure Outbox for account!"; ++ if (folderId == QMailFolderId()) { ++ // Resetting to default ++ d->_standardFolders.remove(folder); + } else { +- if (folderId == QMailFolderId()) { +- // Resetting to default +- d->_standardFolders.remove(folder); +- } else { +- d->_standardFolders.insert(folder, folderId); +- } ++ d->_standardFolders.insert(folder, folderId); + } + } + +-- +2.25.0 + diff --git a/rpm/qmf-qt5.spec b/rpm/qmf-qt5.spec index 93f6ccb..7730f7d 100644 --- a/rpm/qmf-qt5.spec +++ b/rpm/qmf-qt5.spec @@ -55,6 +55,7 @@ Patch23: 0023-Retrieve-message-lists-based-on-the-folder-sync-poli.patch Patch24: 0024-Apply-folder-policy-to-always-on-connection.patch Patch25: 0025-Add-missing-slash-character-as-protected-in-header-p.patch Patch26: 0026-Handle-encoded-word-s-containing-partial-characters.patch +Patch27: 0027-Allow-a-service-provided-folder-to-be-set-as-the-sta.patch %description The Qt Messaging Framework, QMF, consists of a C++ library and daemon server