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

Method main

src/async/imap/MCIMAPFetchContentOperation.cpp:76–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void IMAPFetchContentOperation::main()
77{
78 ErrorCode error;
79 if (mUid != 0) {
80 if (mPartID != NULL) {
81 mData = session()->session()->fetchMessageAttachmentByUID(folder(), mUid, mPartID, mEncoding, this, &error);
82 }
83 else {
84 mData = session()->session()->fetchMessageByUID(folder(), mUid, this, &error);
85 }
86 }
87 else {
88 if (mPartID != NULL) {
89 mData = session()->session()->fetchMessageAttachmentByNumber(folder(), mNumber, mPartID, mEncoding, this, &error);
90 }
91 else {
92 mData = session()->session()->fetchMessageByNumber(folder(), mNumber, this, &error);
93 }
94 }
95 MC_SAFE_RETAIN(mData);
96 setError(error);
97}
98

Callers

nothing calls this directly

Calls 5

fetchMessageByUIDMethod · 0.80
fetchMessageByNumberMethod · 0.80
sessionMethod · 0.45

Tested by

no test coverage detected