[pim/pimcommon] src/pimcommonakonadi/addressline/addresslineedit: Make sure that we exclude exact domain

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit bab72a51dfd2036228a42bc96d880bf7d87b1101 by Laurent Montel.
Committed on 28/07/2026 at 20:24.
Pushed by mlaurent into branch 'master'.

Make sure that we exclude exact domain

M  +1    -1    src/pimcommonakonadi/addressline/addresslineedit/akonadisearchcompletionemail.cpp

https://invent.kde.org/pim/pimcommon/-/commit/bab72a51dfd2036228a42bc96d880bf7d87b1101

diff --git a/src/pimcommonakonadi/addressline/addresslineedit/akonadisearchcompletionemail.cpp b/src/pimcommonakonadi/addressline/addresslineedit/akonadisearchcompletionemail.cpp
index 4b96b287..b300da3e 100644
--- a/src/pimcommonakonadi/addressline/addresslineedit/akonadisearchcompletionemail.cpp
+++ b/src/pimcommonakonadi/addressline/addresslineedit/akonadisearchcompletionemail.cpp
@@ -29,7 +29,7 @@ QStringList AkonadiSearchCompletionEmail::cleanupEmailList()
             bool excludeMail = false;
             for (const QString &excludeDomain : std::as_const(mAkonadiSearchCompletionEmailInfo.mExcludeDomains)) {
                 if (!excludeDomain.isEmpty()) {
-                    if (address.endsWith(excludeDomain)) {
+                    if (address.endsWith(QLatin1Char('@') + excludeDomain)) {
                         excludeMail = true;
                         break;
                     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.