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

Function testIMAPMove

tests/test-all.cpp:162–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162static void testIMAPMove()
163{
164 mailcore::IMAPSession * session;
165 mailcore::HashMap *uidMapping;
166 mailcore::ErrorCode error;
167
168 session = new mailcore::IMAPSession();
169 session->setHostname(MCSTR("imap.mail.ru"));
170 session->setPort(993);
171 session->setUsername(email);
172 session->setPassword(password);
173 session->setConnectionType(mailcore::ConnectionTypeTLS);
174
175 session->moveMessages(MCSTR("INBOX"),
176 mailcore::IndexSet::indexSetWithIndex(14990),
177 MCSTR("Personal"), &uidMapping, &error);
178
179 MCLog("mapping: %s, error: %i", MCUTF8DESC(uidMapping), error);
180
181 session->release();
182}
183
184static void testIMAPCapability()
185{

Callers

nothing calls this directly

Calls 7

moveMessagesMethod · 0.80
releaseMethod · 0.80
setHostnameMethod · 0.45
setPortMethod · 0.45
setUsernameMethod · 0.45
setPasswordMethod · 0.45
setConnectionTypeMethod · 0.45

Tested by

no test coverage detected