Open Bug 1779864 Opened 3 years ago Updated 3 years ago

Preserve preferred phone number when editing contacts (TEL;TYPE=cell,pref:123-4567)

Categories

(Thunderbird :: Address Book, defect, P4)

Thunderbird 102

Tracking

(Not tracked)

People

(Reporter: kevin, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: ux-consistency, Whiteboard: [datalossy])

Thunderbird Daily 104.0a1 build 20220715105930 does not appear to recognize or preserve pref in the TYPE parameter of TEL to indicate a preferred-use telephone number, as described in Section 3.3.1 of RFC 2426. For example, with DAVx⁵ 4.2.2-ose on Android, if I create a contact named Jane Doe with home 867-5308 and mobile 867-5309 marked as default, it syncs as:

BEGIN:VCARD
VERSION:3.0
PRODID:+//IDN bitfire.at//DAVx5/4.2.2-ose ez-vcard/0.11.3
UID:3ea1b6d3-a6e1-4963-996d-01de2fa1d52f
FN:Jane Doe
N:Doe;Jane ;;;
REV:2022-07-16T01:03:01Z
TEL;TYPE=home:867-5308
TEL;TYPE=cell,pref:867-5309
END:VCARD

If I edit then save in Thunderbird (without any changes) it becomes

BEGIN:VCARD
VERSION:3.0
PRODID:+//IDN bitfire.at//DAVx5/4.2.2-ose ez-vcard/0.11.3
UID:3ea1b6d3-a6e1-4963-996d-01de2fa1d52f
FN:Jane Doe
N:Doe;Jane ;;;
REV:20220716T010301Z
TEL;TYPE=home:867-5308
TEL;TYPE=cell:867-5309
END:VCARD

Note that pref was removed from TEL;TYPE=cell,pref.

As a user, I would appreciate it if the preference information was not lost when editing unrelated properties.

Note: TYPE=pref is preserved for ADR and EMAIL in my testing. It is only lost for TEL.

Thanks Kevin for this perfect report!
Indeed, TYPE=pref should also be preserved for phone numbers.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: ux-consistency
Priority: -- → P4
Summary: [AddressBook] Preserve preferred phone number when editing contacts → Preserve preferred phone number when editing contacts (TEL;TYPE=cell,pref:123-4567)
Whiteboard: [datalossy]

Note: TYPE=pref is preserved for ADR and EMAIL in my testing. It is only lost for TEL.

...which looks like a ux-consistency bug.

Version: Trunk → Thunderbird 102

TYPE=pref seems like invalid syntax. Valid syntax would be something like TEL;TYPE=cell;PREF=1:867-5309.
See https://datatracker.ietf.org/doc/html/rfc6350#section-5.6

(In reply to Magnus Melin [:mkmelin] from comment #3)
TYPE=pref seems like invalid syntax. Valid syntax would be something like TEL;TYPE=cell;PREF=1:867-5309.
See https://datatracker.ietf.org/doc/html/rfc6350#section-5.6

I believe TYPE=pref is vCard 3 (RFC 2426) and PREF=1 is vCard 4 (RFC 6350).

Ah, you're right!

You need to log in before you can comment on or make changes to this bug.