Closed Bug 1801274 Opened 3 years ago Closed 3 years ago

Loss of tel type attributes on contacts when sending an email to CardDAV contact

Categories

(Thunderbird :: Address Book, defect)

Thunderbird 102
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1792542

People

(Reporter: adrien.rybarczyk, Unassigned)

References

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

Steps to reproduce:

  1. Create a contact on a CardDAV address book (for the test I created it from the server (Tested with a Zimbra server) but I have the impression that you can also trigger by creating from Thunderbird)
  2. Specify phone numbers with attributes (home, work,...)
  3. Send an email to this contact

Actual results:

The attributes (home, work) will be lost.

Example of card sent to server after sending email
BEGIN:VCARD
VERSION:3.0
FN:testBobby, test
N:testBobby;test;;;
TEL;TYPE="cell,voice":06
TEL;TYPE="work,voice":04
EMAIL;TYPE=internet:test
REV:20221118T110652Z
UID:282e135b-86e3-459e-8ce6-55160fe9b5a0:31899
END:VCARD

I tested by resending the request from Thunderbird with the above example by removing the " around the phone types. This worked and the attributes were not lost.


I tested by changing the attributes in Thunderbird and then sending an email. Same observation, I lost the attributes.
However, when I modified in Thunderbird, there was a difference in syntax (example below)

BEGIN:VCARD
VERSION:3.0
FN:testBobby, test
N:testBobby;test;;;
TEL;TYPE=cell:06
TEL;TYPE=work:04
EMAIL;TYPE=internet;PREF=1:test
REV:20221118T110526Z
UID:282e135b-86e3-459e-8ce6-55160fe9b5a0:31899
END:VCARD

The functions called during this writing are:
makeRequest/<
resource:///modules/CardDAVUtils.jsm:242:15
makeRequest
resource:///modules/CardDAVUtils.jsm:128:12
_makeRequest
resource:///modules/CardDAVDirectory.jsm:226:37
_sendCardToServer
resource:///modules/CardDAVDirectory.jsm:412:29
_modifyCard
resource:///modules/CardDAVDirectory.jsm:130:18
modifyCard
resource:///modules/CardDAVDirectory.jsm:126:10
expandRecipients
chrome://messenger/content/messengercompose/MsgComposeCommands.js:8858:15
GenericSendMessage
chrome://messenger/content/messengercompose/MsgComposeCommands.js:5649:7
SendMessage
chrome://messenger/content/messengercompose/MsgComposeCommands.js:6478:9
doCommand
chrome://messenger/content/messengercompose/MsgComposeCommands.js:1023:11
doCommand
chrome://messenger/content/messengercompose/MsgComposeCommands.js:1201:9
goDoCommand
chrome://global/content/globalOverlay.js:128:18
oncommand
chrome://messenger/content/messengercompose/messengercompose.xhtml:1:12

I tested the behavior also in Beta version and it is the same.

Expected results:

Do not lose attributes during an email sending.

Attached image beforeSendingMail.PNG
Attached image afterSendingMail.PNG

Bug 1799096 perhaps

See Also: → 1799096
Summary: Loss of attributes on contacts when sending an email to CardDAV contact → Loss of tel type attributes on contacts when sending an email to CardDAV contact

That's right. But it doesn't depend on the OS.

When you modify the contact directly, it doesn't happen all the time but sometimes there is the same effect.

Same thing possible for addresses

Fixed in Beta (Bug 1792542)

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Duplicate of bug: 1792542
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: