Bug 489620

Summary: Events duplicate identity name in <>
Product: [Applications] korganizer Reporter: Anthony Messina <amessina>
Component: invitationsAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: a.samberg, winter
Priority: NOR    
Version First Reported In: 6.1.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
URL: https://github.com/cyrusimap/cyrus-imapd/issues/4955
Latest Commit: Version Fixed In: 6.4.2
Sentry Crash Report:

Description Anthony Messina 2024-07-02 15:27:43 UTC
Events created with KOrganizer duplicate the identity name inside <>, which creates confusion for downstream applications that don't properly parse the CN and turn it into an email address: "ORGANIZER;CN=Anthony Messina <Anthony Messina>".  Additionally, the invites are sent From: "Anthony Messina <Anthony Messina>" <amessina@example.com>"

While it may be technically OK do do this, duplicating the identity name doesn't seem to serve a purpose. Please don't duplicate the identity name in <> brackets in the From: or the CN.
Comment 1 a.samberg 2024-09-14 13:17:07 UTC
I also see this behavior on KOrganizer 24.08.1 on Arch Linux.
Comment 2 Bug Janitor Service 2025-05-26 14:40:46 UTC
A possibly relevant merge request was started @ https://invent.kde.org/pim/incidenceeditor/-/merge_requests/68
Comment 3 Allen Winter 2025-05-26 15:57:37 UTC
Git commit 938b9c13564ddf341e62f0e878f71283f6ec8c6b by Allen Winter.
Committed on 26/05/2025 at 14:46.
Pushed by winterz into branch 'master'.

Fix the organizer name to remove the extra angle brackets

The organizer's name was of the form "Name <<Name> <email>>"
becuase the KOrganizerEditorConfig::allOrganizers() method
returns a Organizer structure with a fullEmail identity
since it was used for encyption purposes.

Solve this by stripping the name part out of the fullEMail.
i.e. fullEMail="Name <email>" becomes "email"

M  +1    -1    src/editorconfig.h
M  +5    -3    src/incidenceattendee.cpp

https://invent.kde.org/pim/incidenceeditor/-/commit/938b9c13564ddf341e62f0e878f71283f6ec8c6b
Comment 4 Allen Winter 2025-05-26 15:57:58 UTC
Git commit cd02a4401e337df250ad87a7fa66a20aecbe26d6 by Allen Winter.
Committed on 26/05/2025 at 15:57.
Pushed by winterz into branch 'release/25.04'.

Fix the organizer name to remove the extra angle brackets

The organizer's name was of the form "Name <<Name> <email>>"
becuase the KOrganizerEditorConfig::allOrganizers() method
returns a Organizer structure with a fullEmail identity
since it was used for encyption purposes.

Solve this by stripping the name part out of the fullEMail.
i.e. fullEMail="Name <email>" becomes "email"


(cherry picked from commit 938b9c13564ddf341e62f0e878f71283f6ec8c6b)

Co-authored-by: Allen Winter <winter@kde.org>

M  +1    -1    src/editorconfig.h
M  +5    -3    src/incidenceattendee.cpp

https://invent.kde.org/pim/incidenceeditor/-/commit/cd02a4401e337df250ad87a7fa66a20aecbe26d6