summaryrefslogtreecommitdiffstats
path: root/comm/mailnews/import/test/unit/resources/addressbook.json
blob: c9545d3027c0d930c172ade6686f6a6aedd4d86a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
{
  "basic_addressbook": [
    {
      "DisplayName": "Display Name",
      "PrimaryEmail": "primaryemail@host.invalid",
      "FirstName": "First",
      "LastName": "Last",
      "NickName": "Nickname",
      "SecondEmail": "secondemail@host.invalid",
      "_AimScreenName": "screenname",
      "LastModifiedDate": 1213818826,
      "_vCard": [
        "VERSION:4.0",
        "FN:Display Name",
        "EMAIL;PREF=1:primaryemail@host.invalid",
        "EMAIL:secondemail@host.invalid",
        "NICKNAME:Nickname",
        "NOTE:Notes line 1\\nNotes line 2\\nNotes line 3\\nNotes line 4",
        "ORG:Organization Name;Department",
        "TITLE:Job Title",
        "BDAY;VALUE=DATE:19000102",
        "N:Last;First;;;",
        "ADR;TYPE=home:;Home Address Line 2;Home Address Line 1;Home City;Home State",
        " ;Home Zip;Home Country",
        "ADR;TYPE=work:;Work Address Line 2;Work Address Line 1;Work City;Work State",
        " ;Work Zip;Work Country",
        "TEL;TYPE=home;VALUE=TEXT:234-567-8901",
        "TEL;TYPE=work;VALUE=TEXT:123-456-7890",
        "TEL;TYPE=fax;VALUE=TEXT:345-678-9012",
        "TEL;TYPE=pager;VALUE=TEXT:456-789-0123",
        "TEL;TYPE=cell;VALUE=TEXT:567-890-1234",
        "URL;TYPE=work;VALUE=URL:http://127.0.0.1",
        "URL;TYPE=home;VALUE=URL:http://localhost",
        "X-CUSTOM1;VALUE=TEXT:Custom Field 1",
        "X-CUSTOM2;VALUE=TEXT:Custom Field 2",
        "X-CUSTOM3;VALUE=TEXT:Custom Field 3",
        "X-CUSTOM4;VALUE=TEXT:Custom Field 4",
        "UID:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      ]
    }
  ],
  "bug_263304": [
    {
      "DisplayName": "Display Name",
      "PrimaryEmail": "primaryemail@host.invalid",
      "_vCard": [
        "VERSION:4.0",
        "FN:Display Name",
        "EMAIL;PREF=1:primaryemail@host.invalid",
        "URL;TYPE=work;VALUE=URL:http://127.0.0.1",
        "UID:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      ]
    }
  ],
  "utf16_csv": [
    {
      "DisplayName": "John Doe",
      "PrimaryEmail": "johndoe@host.invalid",
      "FirstName": "John",
      "LastName": "Doe"
    }
  ],
  "shiftjis_csv": [
    {
      "DisplayName": "名無しの権兵衛",
      "PrimaryEmail": "名無しの権兵衛@host.invalid"
    }
  ],
  "quote_csv": [
    {
      "DisplayName": "Acer America",
      "_vCard": [
        "VERSION:4.0",
        "FN:Acer America",
        "ORG:Acer America;",
        "TEL;TYPE=work;VALUE=TEXT:(800) 000-0000",
        "UID:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      ]
    }
  ],
  "vcard_import": [
    {
      "DisplayName": "John Doe",
      "FirstName": "John",
      "LastName": "Doe",
      "PrimaryEmail": "john.doe@genericemail.invalid"
    },
    {
      "DisplayName": "Jane Doe",
      "FirstName": "Jane",
      "LastName": "Doe",
      "PrimaryEmail": "jane.doe@genericemail.invalid"
    }
  ],
  "dos_vcard_import": [
    {
      "DisplayName": "Name Surname",
      "FirstName": "Name",
      "LastName": "Surname",
      "PrimaryEmail": "example@gmail.com"
    }
  ],
  "csv_import": [
    {
      "DisplayName": "John Doe",
      "FirstName": "John",
      "LastName": "Doe",
      "PrimaryEmail": "john@doe.invalid"
    },
    {
      "DisplayName": "Jane Doe",
      "FirstName": "Jane",
      "LastName": "Doe",
      "PrimaryEmail": "jane@doe.invalid"
    }
  ],
  "becky_addressbook": [
    {
      "DisplayName": "The first man",
      "PrimaryEmail": "first@host.invalid",
      "_vCard": [
        "VERSION:3.0",
        "FN:The first man",
        "ORG:Organization;Post;",
        "X-BECKY-IMAGE:0",
        "N:The nick name of the first man",
        "TEL;TYPE=HOME:11-1111-1111",
        "TEL;TYPE=WORK:22-2222-2222",
        "TEL;TYPE=CELL:333-3333-3333",
        "EMAIL;TYPE=INTERNET:first@host.invalid",
        "NOTE:This is a note.",
        "UID:4E4D17E8.0043655C"
      ]
    },
    {
      "DisplayName": "The second man",
      "PrimaryEmail": "second@host.invalid",
      "_vCard": [
        "VERSION:3.0",
        "FN:The second man",
        "ORG:Organization;post;",
        "X-BECKY-IMAGE:0",
        "N:The nick name of the second man",
        "TEL;TYPE=HOME:44-4444-4444",
        "TEL;TYPE=WORK:55-5555-5555",
        "TEL;TYPE=CELL:666-6666-6666",
        "EMAIL;TYPE=INTERNET:second@host.invalid",
        "NOTE:This is a note.",
        "UID:4EBBF6FE.00AC632B"
      ]
    },
    {
      "DisplayName": "The third man",
      "PrimaryEmail": "third@host.invalid",
      "_vCard": [
        "VERSION:3.0",
        "FN:The third man",
        "ORG:Organization;post;",
        "X-BECKY-IMAGE:0",
        "N:The third man",
        "TEL;TYPE=HOME:77-7777-7777",
        "TEL;TYPE=WORK:88-8888-8888",
        "TEL;TYPE=CELL:999-9999-9999",
        "EMAIL;TYPE=INTERNET:third@host.invalid",
        "NOTE:This is a note.",
        "UID:4E57AB44.0001D53E"
      ]
    }
  ]
}