Skip to content

Commit

Permalink
Add forgotten mailbox close command.
Browse files Browse the repository at this point in the history
  • Loading branch information
lefcha committed Feb 20, 2012
1 parent 4160f7c commit f78ed3c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mailbox.lua
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit f78ed3c

Please sign in to comment.