| 74 | } |
| 75 | |
| 76 | void 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 |
nothing calls this directly
no test coverage detected