[kmail2] [Bug 355883] New: Comma in Sender name causes e-mail to be sent without from header
Andre Heinecke via KDE Bugzilla
bugzilla_noreply at kde.org
Wed Nov 25 10:16:41 GMT 2015
https://bugs.kde.org/show_bug.cgi?id=355883
Bug ID: 355883
Summary: Comma in Sender name causes e-mail to be sent without
from header
Product: kmail2
Version: Git (master)
Platform: Compiled Sources
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: composer
Assignee: kdepim-bugs at kde.org
Reporter: aheinecke at intevation.de
When a comma is part of the name the message is sent without a from header. The
from might be added during transport but at least in the Sent mails folder the
from header is not part of the mail.
German users especially might use a name like: <last name>, <first name>
Noticed with Kdepim 4.14 but I've also tested with master rev.
24dc40872fa1af73354f8b8283d77d028df243b3
Reproducible: Always
Steps to Reproduce:
1. Either create an identity that has a name with a comma or change the From
directly in the messagecomposer.
For example change the From:
Andre Heinecke <aheinecke at intevation.de>
To:
Andre, Heinecke <aheinecke at intevation.de>
2. Send the mail
3. Look at the sent mails folder. Mail does not have a from header.
Actual Results:
Mails do not have a from header.
Expected Results:
Should be parsed correctly.
In kdepim 4.14 I've tracked this down to:
composerviewerbase.cpp: MessageComposer::ComposerViewBase::fillQueueJobHeaders
And the line:
qjob->addressAttribute().setFrom( KPIMUtils::extractEmailAddress(
KPIMUtils::normalizeAddressesAndEncodeIdn( infoPart->from() ) ) );
According to added debug output
infoPart->from() is: Andre, Heinecke <andre.heinecke at intevation.de>
The extract / normalize call returns an empty string.
Debug output from kpimutils (also 4.14):
kontact(4031)/kdepimlibs (kpimutils) KPIMUtils::extractEmailAddress: Input:
"Andre, Heinecke <andre.heinecke at intevation.de>"
Error: "The email address you have entered is not valid because it contains an
unexpected comma."
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list