| 131 | } |
| 132 | |
| 133 | Address * Address::addressWithNonEncodedIMFMailbox(struct mailimf_mailbox * mailbox) |
| 134 | { |
| 135 | Address * address; |
| 136 | |
| 137 | address = new Address(); |
| 138 | if (mailbox->mb_display_name != NULL) { |
| 139 | address->setDisplayName(String::stringWithUTF8Characters(mailbox->mb_display_name)); |
| 140 | } |
| 141 | if (mailbox->mb_addr_spec != NULL) { |
| 142 | address->setMailbox(String::stringWithUTF8Characters(mailbox->mb_addr_spec)); |
| 143 | } |
| 144 | if (address->mailbox() == NULL) { |
| 145 | address->setMailbox(String::string()); |
| 146 | } |
| 147 | |
| 148 | return (Address *) address->autorelease(); |
| 149 | } |
| 150 | |
| 151 | Address * Address::addressWithNonEncodedRFC822String(String * nonEncodedRFC822String) |
| 152 | { |
nothing calls this directly
no test coverage detected