diff --git a/src/servers/mail/MailDaemon.cpp b/src/servers/mail/MailDaemon.cpp index 443fbf767f..4cb4f819ae 100644 --- a/src/servers/mail/MailDaemon.cpp +++ b/src/servers/mail/MailDaemon.cpp @@ -437,8 +437,8 @@ MailDaemonApp::MessageReceived(BMessage* msg) AccountMap::iterator it = fAccounts.find(account); if (it == fAccounts.end()) break; - InboundProtocol* inboundProtocol = it->second.inboundProtocol; - inboundProtocol->MarkMessageAsRead(ref, read); + InboundProtocolThread* inboundThread = it->second.inboundThread; + inboundThread->MarkMessageAsRead(ref, read); break; }