SUMMARY In the "To" field, insert a name which has a comma inside it. For example, "Badwaik, Jayesh" <j.badwaik@fz-juelich.de> The recipients gets dropped from the list of recipients in the SMTP log. STEPS TO REPRODUCE 1. Create a new mail. 2. In "To" field, enter the name "Badwaik, Jayesh" <j.badwaik@fz-juelich.de> 3. Send the mail. OBSERVED RESULT Observe that in the SMTP logs that the "To" commands of SMTP do not contain the recipient. You need to enable SMTP Session Logging by setting KSMTP_SESSION_LOG and restarting akonadictl to observe this. EXPECTED RESULT The recipients should not be dropped. SOFTWARE/OS VERSIONS Linux/KDE Plasma: KDE Plasma Version: 5.21.2 KDE Frameworks Version: 5.79.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION
This line seems to be the issue: https://github.com/KDE/kmail/blob/2b953d990fd7db69d1192171e92a40eee6a0b4aa/src/editor/kmcomposerwin.cpp#L557 const QStringList lst = info.to.split(QLatin1Char(','));
(In reply to Jayesh Badwaik (FZ Juelich) from comment #1) > This line seems to be the issue: > https://github.com/KDE/kmail/blob/2b953d990fd7db69d1192171e92a40eee6a0b4aa/ > src/editor/kmcomposerwin.cpp#L557 > > const QStringList lst = info.to.split(QLatin1Char(',')); Hi, for sure not :) "void KMComposerWin::insertSnippetInfo(const MailCommon::SnippetInfo &info)" but indeed this line can create some problem. I will fix pb here. What is the problem exactly ? mail is not sending ?
Git commit c2faa6588fa880e30820282049fa51914ea82ba5 by Laurent Montel. Committed on 04/03/2021 at 06:03. Pushed by mlaurent into branch 'master'. Fix extra mails M +3 -3 src/editor/kmcomposerwin.cpp https://invent.kde.org/pim/kmail/commit/c2faa6588fa880e30820282049fa51914ea82ba5
Could you send me your log (verify that there is not password and co) in private email. Here it's ok.
I have sent you the mail. I have been able to reproduce this on multiple machines (all Archlinux though). But since you say it is okay on your end, I need to check if this is an Archlinux problem. Let me check with Ubuntu machines.
The intended commit does not solve the bug: https://invent.kde.org/pim/kmail/commit/c2faa6588fa880e30820282049fa51914ea82ba5
From what I see, I cannot insert a `,` in my addresses anymore. But if someone sends me an email where the address list as a comma in it, and I click "Reply" to that email. Then, the comma remains in the address field and causes issues.
This issue is now solved. Thanks a lot.