Bug 459050 - snippet variable reliably picks middle name instead of family name
Summary: snippet variable reliably picks middle name instead of family name
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: 5.20.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-13 09:52 UTC by m.eik michalke
Modified: 2022-09-13 09:52 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description m.eik michalke 2022-09-13 09:52:48 UTC
SUMMARY
when you use the family name variable in a text snippet for kmail, but the from/to address name consists of more than two text strings, kmail consistently uses the second string for family name. most of the time, this is wrong and picks a middle name (perhaps depends on the language).


STEPS TO REPRODUCE
1. add a new text snippet in kmail's mail editor, e.g. call it "family name"
2. from variables, choose "To" -> "family name in To: field"
3. put "first middle last <foo@example.com>" in the To: field of the new email
4. use the "family name" template (drag & drop or double click)

OBSERVED RESULT
editor shows "middle".

EXPECTED RESULT
editor should show "last".

SOFTWARE/OS VERSIONS
this is the current backports packages for kubuntu 22.04, but this issue is acutally bugging me for years, it's not exclusive to a certain version or setup and likely still not fixed.

ADDITIONAL INFORMATION
handling addresses in the form of "last, first" <foo@example.com> also seems to be broken (produces an empty string).