Skip to content

fix: Keep an empty EMAIL or TEL verbatim instead of reading it as a value - #30

Merged
odolbeau merged 1 commit into
mainfrom
fix-empty-email-phone
Oct 5, 2026
Merged

odolbeau merged 1 commit into
mainfrom
fix-empty-email-phone

Conversation

@odolbeau

@odolbeau odolbeau commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Problem

Nextcloud Contacts writes EMAIL;TYPE=HOME: (and sometimes an empty TEL) for a field left blank. The decoder turned it into an EmailAddress whose address is "". An app that matches contacts by email, like Rondeto, then sees every such card as sharing one address, and merges them all into the first.

Fix

An EMAIL or TEL whose value is empty (or blank) is kept verbatim in vCardProps and reported as an issue, the way an empty ADR or NICKNAME already is. Nothing is lost, and the property still takes its key position.

Tests

testAnEmptyEmailOrPhoneIsKeptVerbatim; make qa is green.

🤖 Generated with Claude Code

…alue

Nextcloud Contacts writes EMAIL;TYPE=HOME: without a value. It became an
EmailAddress with an empty address, which an app matching contacts by
email takes for a shared address. Like an empty ADR or NICKNAME, it is
now kept in vCardProps and reported.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@odolbeau
odolbeau merged commit 507032e into main Oct 5, 2026
4 checks passed
@odolbeau
odolbeau deleted the fix-empty-email-phone branch October 5, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant