From ee1568cb4146ea84a75c421b52b818df4525f27f Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Sun, 20 Feb 2011 08:15:24 +0000 Subject: [PATCH] Also add IMAP body fetch status message. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40576 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../inbound_protocols/imap/IMAPInboundProtocol.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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; }