[pim/kdepim-runtime] agents/newmailnotifier: We need to use case insensitive

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit df47123b7cef9c7aba576d8d28609dad7f1bf978 by Laurent Montel.
Committed on 16/08/2026 at 10:39.
Pushed by mlaurent into branch 'master'.

We need to use case insensitive

M  +1    -1    agents/newmailnotifier/specialnotifierjob.cpp

https://invent.kde.org/pim/kdepim-runtime/-/commit/df47123b7cef9c7aba576d8d28609dad7f1bf978

diff --git a/agents/newmailnotifier/specialnotifierjob.cpp b/agents/newmailnotifier/specialnotifierjob.cpp
index 8a4df85ce..9ff121b0b 100644
--- a/agents/newmailnotifier/specialnotifierjob.cpp
+++ b/agents/newmailnotifier/specialnotifierjob.cpp
@@ -98,7 +98,7 @@ void SpecialNotifierJob::emitNotification(const QPixmap &pixmap)
 {
     if (NewMailNotifierAgentSettings::excludeEmailsFromMe()) {
         for (const QString &email : std::as_const(mSpecialNotificationInfo.listEmails)) {
-            if (mFrom.contains(email)) {
+            if (mFrom.contains(email, Qt::CaseInsensitive)) {
                 // Exclude this notification
                 deleteLater();
                 return;
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.