| 375 | } |
| 376 | |
| 377 | String * Address::RFC822String() |
| 378 | { |
| 379 | struct mailimf_mailbox * mb; |
| 380 | MMAPString * str; |
| 381 | int col; |
| 382 | struct mailimf_mailbox_list * mb_list; |
| 383 | clist * list; |
| 384 | String * result; |
| 385 | |
| 386 | mb = createIMFMailbox(); |
| 387 | |
| 388 | list = clist_new(); |
| 389 | clist_append(list, mb); |
| 390 | mb_list = mailimf_mailbox_list_new(list); |
| 391 | |
| 392 | str = mmap_string_new(""); |
| 393 | col = 0; |
| 394 | mailimf_mailbox_list_write_mem(str, &col, mb_list); |
| 395 | |
| 396 | result = String::stringWithUTF8Characters(str->str); |
| 397 | |
| 398 | mailimf_mailbox_list_free(mb_list); |
| 399 | mmap_string_free(str); |
| 400 | |
| 401 | return result; |
| 402 | } |
| 403 | |
| 404 | String * Address::nonEncodedRFC822String() |
| 405 | { |
no outgoing calls