[pim/kdepim-addons] kmail/editorsendcheckplugins/automaticaddcontacts: USe temail directly otherwise it will not catch email

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

USe temail directly otherwise it will not catch email

M  +3    -3    kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactsjob.cpp

https://invent.kde.org/pim/kdepim-addons/-/commit/0d8564a6e61e28e34b2580d78c104c5d9c839164

diff --git a/kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactsjob.cpp b/kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactsjob.cpp
index 71dc354df..8666b122b 100644
--- a/kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactsjob.cpp
+++ b/kmail/editorsendcheckplugins/automaticaddcontacts/automaticaddcontactsjob.cpp
@@ -201,12 +201,12 @@ void AutomaticAddContactsJob::verifyContactExist()
     if (temail.isEmpty()) {
         addNextContact();
     } else {
-        if (mProcessedEmails.contains(email)) {
+        if (mProcessedEmails.contains(temail, Qt::CaseInsensitive)) {
             addNextContact();
         } else {
-            mProcessEmail = email;
+            mProcessEmail = temail;
             mName = tname;
-            mProcessedEmails.append(email);
+            mProcessedEmails.append(temail);
             auto searchJob = new Akonadi::ContactSearchJob(this);
             searchJob->setLimit(1);
             searchJob->setQuery(Akonadi::ContactSearchJob::Email, mProcessEmail.toLower(), Akonadi::ContactSearchJob::ExactMatch);
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.