| 547 | } |
| 548 | |
| 549 | void 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 | |
| 571 | void POPSession::deleteMessage(POPMessageInfo * msg, ErrorCode * pError) |
| 572 | { |
no test coverage detected