From f0d35c6dbf28a35de86d9d33cbcd7a24cdebfe9e Mon Sep 17 00:00:00 2001 From: Kuroneko Date: Fri, 12 Oct 2018 09:35:20 +1100 Subject: [PATCH] add-ons/mail-daemon: IMAP: fix folder not selected bug on fetch req MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As the IMAP connection handler disconnects when idle, it loses the folder state at that time - however, it wasn't resetting it's internal folder selected flag. This is now fixed. Change-Id: Ib56f55664ab5d7383a13705a8f4a8585b29f2c92 Reviewed-on: https://review.haiku-os.org/627 Reviewed-by: waddlesplash Reviewed-by: Stephan Aßmus --- .../mail_daemon/inbound_protocols/imap/IMAPConnectionWorker.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPConnectionWorker.cpp b/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPConnectionWorker.cpp index 308d08c761..ba0c2c2f82 100644 --- a/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPConnectionWorker.cpp +++ b/src/add-ons/mail_daemon/inbound_protocols/imap/IMAPConnectionWorker.cpp @@ -865,6 +865,7 @@ void IMAPConnectionWorker::_Disconnect() { fProtocol.Disconnect(); + fSelectedBox = NULL; }