MCPcopy Create free account
hub / github.com/MailCore/mailcore2 / addressWithNonEncodedIMFMailbox

Method addressWithNonEncodedIMFMailbox

src/core/abstract/MCAddress.cpp:133–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133Address * 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
151Address * Address::addressWithNonEncodedRFC822String(String * nonEncodedRFC822String)
152{

Callers

nothing calls this directly

Calls 4

setDisplayNameMethod · 0.45
setMailboxMethod · 0.45
mailboxMethod · 0.45
autoreleaseMethod · 0.45

Tested by

no test coverage detected