[kontact] [Bug 392018] New: Contact group resolution can go crazy due to recursively resolving on a part of the group name

Anton Kreuzkamp bugzilla_noreply at kde.org
Sun Mar 18 20:22:15 GMT 2018


https://bugs.kde.org/show_bug.cgi?id=392018

            Bug ID: 392018
           Summary: Contact group resolution can go crazy due to
                    recursively resolving on a part of the group name
           Product: kontact
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: mail
          Assignee: kdepim-bugs at kde.org
          Reporter: akreuzkamp at web.de
  Target Milestone: ---

I had a contact group named "Family Mustermann". Guess what happens if you try
to write a mail to "Max Mustermann <max.mustermann at example.com>".

Kontact wants to resolve the contact group "Family Mustermann" based on the
match "Mustermann". That causes "Erika Mustermann
<erika.mustermann at example.com>" and "Max Mustermann
<max.mustermann at example.com>" to be loaded into the recipient list. Both of
them cause Kontact to resolve the contact group "Family Mustermann" based on
the match "Mustermann"... That doesn't only go until the maximal number of
recipients is reached, but continues after that, causing error messages about
the full recipient list to be created infinitely.
If you don't kill Kontact immediately the mail will be auto-saved and reappear
on a restart of Kontact, driving Kontact completely unusuable until you delete
the draft manually in the file system.

The same thing doesn't happen in KMail, as KMail apparently doesn't resolve
contact groups. It also doesn't happen if you insert e.g. "Max
<Mustermann at example.com>" so resolution does only happen based on the name, not
on the e-mail address.

Reproducible: Always

Steps to Reproduce:
1. Create a contact group (e.g. "Family Mustermann"), whose name contains a
word (e.g. "Mustermann") that is also part of the name of one of the group
members (e.g. "Max Mustermann").
2. Compose a new mail
3. Insert the name of one of those recipients that have a partial name match
with the contact group name (e.g. "Max Mustermann <max.mustermann at example.com")
4. choose the proposed auto completion item or write the full address manually
and click outside the line edit.

Actual Results:
The contact group is resolved, resulting in the original recipient to appear a
second time and kicks off an infinite recursion of resolving the contact group.

Expected behaviour:
Only the inserted recipient (e.g. "Max Mustermann
<max.mustermann at example.com>") is added to the recipient list, without the
contact group being resolved.

Proposed fix:
You could either not resolve contact groups based on only part of the name
and/or you could during contact group resolution filter out lines that contain
a full email address.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list