Closed Bug 299699 Opened 19 years ago Closed 19 years ago

don't check for "Internet" property in "Email" line of vCard

Categories

(Thunderbird :: Mail Window Front End, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird1.1

People

(Reporter: mozilla.org, Assigned: mscott)

References

()

Details

Attachments

(1 file, 1 obsolete file)

Thunderbird requires an "Email" property in a vCard object to contain the
parameter "Internet" indicating an Internet address type:

EMAIL;INTERNET:example@example.com

However, Thunderbird should accept

EMAIL:example@example.com

because INTERNET is the default in vCard 2.1
(http://www.imc.org/pdi/vcard-21.txt). The same is true in vCard 3.0 (RFC 2426).
I will attach a patch that fixes this.

I suppose the really correct thing to do would be to make sure the vCard does
not specify a non-Internet address type (X.400, eWorld, etc.), but that would
probably be overkill--I doubt there are many vCards floating around with eWorld
addresses in them.
tested in my Mac OS X build, seems to work
Attachment #188270 - Flags: review?(mscott)
tested in Mac OS X build
Attachment #188270 - Attachment is obsolete: true
Attachment #188272 - Flags: review?(mscott)
Flags: blocking-aviary1.1?
Flags: blocking-aviary1.1? → blocking1.8b4?
Attachment #188270 - Flags: review?(mscott)
Comment on attachment 188272 [details] [diff] [review]
patch to make vCard parsing more lenient

this looks pretty straight forward to me. 

My only question is, if internet is the assumed default, are there are other
valid values that we would now be incorrectly assuming as email addresses?

i.e. with this change

email;randomprop:myaddress

would now end up as an address where before we would have skipped it.
Attachment #188272 - Flags: review?(mscott) → review+
Attachment #188272 - Flags: superreview?(bienvenu)
Comment on attachment 188272 [details] [diff] [review]
patch to make vCard parsing more lenient

seems OK to me - I agree that eWorld addresses aren't going to be too common. I
think the internet has won :-)
Attachment #188272 - Flags: superreview?(bienvenu) → superreview+
Comment on attachment 188272 [details] [diff] [review]
patch to make vCard parsing more lenient

re: comment 3 and comment 4, yeah, I think in this case doing fewer checks on
the type is optimal even if one out of every 10,000 times it's the wrong thing
to do.
Attachment #188272 - Flags: approval1.8b4?
Attachment #188272 - Flags: approval1.8b4? → approval1.8b4+
Thanks -- mscott or bienvenu, can you please check this patch in and mark the
bug resolved? I don't have checkin privileges. (Patch has r, sr, and approval1.8b4).
fixed. thanks for the patch. 
Status: NEW → RESOLVED
Closed: 19 years ago
Flags: blocking1.8b4?
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird1.1
No longer blocks: 229001
*** Bug 229001 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: