Bug 403681 - Distribution lists with names containing spaces are being resolved incorrectly
Summary: Distribution lists with names containing spaces are being resolved incorrectly
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: commands and actions (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-28 10:37 UTC by anbrep
Modified: 2019-01-30 12:19 UTC (History)
1 user (show)

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 anbrep 2019-01-28 10:37:07 UTC
SUMMARY
Sending out mail by using distribution lists may lead to an incorrect mail delivery. The problem occurs if two or more distribution list names start with the same string, followed by a SPACE, followed by a unique identifier.

Example:

Name for distribution list 1: GRP A
Name for distribution list 2: GRP B

Each distribution list contains at least one valid email address which differs.

STEPS TO REPRODUCE
1. Create 2 distribution lists named "GRP A" and "GRP B" (without quotes, there is a blank between GRP and the group identifier A/B).
2. Add one email address to "GRP A" and a different email address to "GRP B".
3. Create and send out two emails. The first should be addressed to "GRP A" and the second to "GRP B".

OBSERVED RESULT
As a result you should see 2 emails which have been sent to the recipients contained in "GRP B". The recipients in "GRP A" will never receive the email.

EXPECTED RESULT
The members of "GRP A" and "GRP B" should get the email which has been addressed to them.

SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: openSUSE Tumbleweed 20190125
(available in About System)
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 5.54.0
Qt Version: 5.12.0

ADDITIONAL INFORMATION
Replacing the SPACE with a "-" will lead to a correct delivery.
Replacing the SPACE with a "_" will lead to a message that says the email address isn't correct because the address contains no "."
Comment 1 Laurent Montel 2019-01-30 07:51:09 UTC
There is another bug
We can't create another list when there is a existing list name

for example I create "GRP A"
I try to create "GRP B" it tolds me that it's already exist...

I need to fix it first
Comment 2 anbrep 2019-01-30 09:59:51 UTC
Thank's for letting me know.

On my system I was able to create those two groups without any comments from the system / software. That's why the email I sent out was delivered to the wrong recipients.
Comment 3 Laurent Montel 2019-01-30 10:21:13 UTC
How did you created it ?
In kaddressbook directly ?
Comment 4 anbrep 2019-01-30 12:19:39 UTC
Yes, I created those lists by using the addressbook. I did not use the feature by creating distribution lists from kmail directly.