#1078776 roundcube-core: Contacts import: Contacts with matching e-mail address treated as duplicates

Package:
roundcube
Source:
roundcube
Submitter:
Einhard Leichtfuß
Date:
2024-08-17 05:27:03 UTC
Severity:
normal
Tags:
#1078776#5
Date:
2024-08-15 22:03:51 UTC
From:
To:
Dear Maintainer,

when importing contacts from a vCard file that contains two vcard
objects with the same e-mail address, or one vcard object with an e-mail
address that is already assigned to an existing contact, the contacts
are treated as duplicates and one of them is not imported, with the
message "Skipped 1 existing entries: [...]".

This does not happen if "Replace the entire address book" is activated
on importing.

I would expect that a contact is only skipped on import if it would be
an exact duplicate of another contact.

Further, I would expect that duplicates within a file are treated the
same regardless of whether "Replace the entire address book" is
activated on importing.

Example (note that vCard mandates CRLF as newline sequence):
---
BEGIN:VCARD
VERSION:3.0
N:Doe;Jane;;;
FN:Jane Doe
EMAIL:doe@example.net
END:VCARD
BEGIN:VCARD
VERSION:3.0
N:Doe;John;;;
FN:John Doe
EMAIL:doe@example.net
END:VCARD
---

Result of importing above example:

* "Successfully imported 1 contacts: Jane Doe"
* "Skipped 1 existing contacts: John Doe"
* Only the record for "Jane Doe" is imported.


- Einhard Leichtfuß

#1078776#10
Date:
2024-08-15 22:52:22 UTC
From:
To:
Hi,

Looks like this issue and the others 3 you just reported are upstream
issues, please report them at the upstream bug tracker
https://github.com/roundcube/roundcubemail/issues

#1078776#17
Date:
2024-08-17 00:43:42 UTC
From:
To:
Hi,

I have now reported the issues upstream:

#1078774: https://github.com/roundcube/roundcubemail/issues/9591
#1078775: https://github.com/roundcube/roundcubemail/issues/9593
#1078776: https://github.com/roundcube/roundcubemail/issues/9592
#1078777: https://github.com/roundcube/roundcubemail/issues/9590

- Einhard Leichtfuß