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

Method RFC822String

src/core/abstract/MCAddress.cpp:377–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377String * 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
404String * Address::nonEncodedRFC822String()
405{

Callers 2

testAddressesFunction · 0.45

Calls

no outgoing calls

Tested by 1

testAddressesFunction · 0.36