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

Method attachmentWithIMAPBody

src/core/imap/MCIMAPPart.cpp:86–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86AbstractPart * IMAPPart::attachmentWithIMAPBody(struct mailimap_body * body)
87{
88 String * partID;
89 AbstractPart * result;
90
91 partID = NULL;
92 if (body->bd_type == MAILIMAP_BODY_1PART) {
93 partID = MCSTR("1");
94 }
95 result = attachmentWithIMAPBodyInternal(body, partID);
96 result->applyUniquePartID();
97
98 return result;
99}
100
101AbstractPart * IMAPPart::attachmentWithIMAPBodyInternal(struct mailimap_body * body, String * partID)
102{

Callers

nothing calls this directly

Calls 1

applyUniquePartIDMethod · 0.80

Tested by

no test coverage detected