Add forgotten mailbox close command.

This commit is contained in:
Lefteris Chatzimparmpas 2012-02-21 00:11:28 +01:00
parent 4160f7c708
commit f78ed3c3d7

View File

@ -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