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

Method attachmentWithIMAPBody1PartText

src/core/imap/MCIMAPPart.cpp:236–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236IMAPPart * IMAPPart::attachmentWithIMAPBody1PartText(struct mailimap_body_type_text * text,
237 struct mailimap_body_ext_1part * extension)
238{
239 IMAPPart * attachment;
240
241 attachment = new IMAPPart();
242 attachment->importIMAPFields(text->bd_fields, extension);
243 attachment->setMimeType(String::stringWithUTF8Format("text/%s", text->bd_media_text));
244
245 return (IMAPPart *) attachment->autorelease();
246}
247
248IMAPMultipart * IMAPPart::attachmentWithIMAPBodyMultipart(struct mailimap_body_type_mpart * body_mpart,
249 String * partID)

Callers

nothing calls this directly

Calls 3

importIMAPFieldsMethod · 0.45
setMimeTypeMethod · 0.45
autoreleaseMethod · 0.45

Tested by

no test coverage detected