From f78ed3c3d7c8f18b334713641639dc446cbcc848 Mon Sep 17 00:00:00 2001 From: Lefteris Chatzimparmpas Date: Tue, 21 Feb 2012 00:11:28 +0100 Subject: [PATCH] Add forgotten mailbox close command. --- src/mailbox.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mailbox.lua b/src/mailbox.lua index a201944..a4d574d 100644 --- a/src/mailbox.lua +++ b/src/mailbox.lua @@ -367,6 +367,8 @@ function Mailbox._fetch_message(self, messages) end end + if options.close == true then self._cached_close(self) end + return results end @@ -1060,6 +1062,8 @@ function Mailbox.enter_idle(self) local r = ifcore.idle(self._account._session) if r == nil then error("idle request failed", 0) end + if options.close == true then self._cached_close(self) end + return r end