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

Method main

src/async/imap/MCIMAPSubscribeFolderOperation.cpp:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void IMAPSubscribeFolderOperation::main()
36{
37 ErrorCode error;
38 if (mUnsubscribeEnabled) {
39 session()->session()->unsubscribeFolder(folder(), &error);
40 }
41 else {
42 session()->session()->subscribeFolder(folder(), &error);
43 }
44 setError(error);
45}

Callers

nothing calls this directly

Calls 3

unsubscribeFolderMethod · 0.80
subscribeFolderMethod · 0.80
sessionMethod · 0.45

Tested by

no test coverage detected