Opened 3 years ago

Closed 3 years ago

#1487024 closed Bug Patches (fixed)

vcard_attachments and Thunderbird lowercase keywords.

Reported by: jkaiser Owned by:
Priority: 7 Milestone: 0.4.2
Component: Addressbook Version: 0.4-stable
Severity: normal Keywords:
Cc:

Description

When Mozilla Thunderbird sends a vcard, the keywords are in lowercase. (From rfc2426, it seems to me that the keywords should be in upper case)

begin:vcard
fn:first_name last_name
n:last_name;first_name
email;internet:email@example.com
tel;work:w123
tel;fax:f789
tel;pager:p012
tel;home:h456
tel;cell:m345
version:2.1
end:vcard

In the file program/include/rcube_vcard.php, (3863 2010-08-04)
lines 221 and 229, calling strtoupper resolves the problem,
allowing Thunderbird vcards to be recognized by the vcard_attachments plugin.

# diff rcube_vcard.php.orig rcube_vcard.php
221c221
< if (trim($line) == 'END:VCARD') {
---

if (trim(strtoupper($line)) == 'END:VCARD') {

229c229
< else if (trim($line) == 'BEGIN:VCARD') {
---

else if (trim(strtoupper($line)) == 'BEGIN:VCARD') {

Change History (1)

comment:1 Changed 3 years ago by alec

  • Milestone changed from later to 0.4.2
  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [928bcaed].

Note: See TracTickets for help on using tickets.