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

Method deleteMessage

src/core/pop/MCPOPSession.cpp:549–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547}
548
549void POPSession::deleteMessage(unsigned int index, ErrorCode * pError)
550{
551 int r;
552
553 listIfNeeded(pError);
554 if (* pError != ErrorNone) {
555 return;
556 }
557
558 r = mailpop3_dele(mPop, index);
559 if (r == MAILPOP3_ERROR_STREAM) {
560 * pError = ErrorConnection;
561 return;
562 }
563 else if (r != MAILPOP3_NO_ERROR) {
564 * pError = ErrorDeleteMessage;
565 return;
566 }
567
568 * pError = ErrorNone;
569}
570
571void POPSession::deleteMessage(POPMessageInfo * msg, ErrorCode * pError)
572{

Callers 1

mc_foreachindexsetFunction · 0.80

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected