diff --git a/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPInboundProtocol.cpp b/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPInboundProtocol.cpp index b4d642aff8..63e914fc5c 100644 --- a/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPInboundProtocol.cpp +++ b/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPInboundProtocol.cpp @@ -468,8 +468,16 @@ IMAPInboundProtocol::FetchBody(const entry_ref& ref) fIMAPMailboxThread->StopWatchingMailbox(); int32 uid = fStorage.RefToUID(ref); + + ResetProgress("Fetch body"); + SetTotalItems(1); + status_t status = fIMAPMailbox.FetchBody(fIMAPMailbox.UIDToMessageNumber( uid)); + + ReportProgress(0, 1); + ResetProgress(); + fIMAPMailboxThread->SyncAndStartWatchingMailbox(); return status; }