mirror of
https://github.com/moparisthebest/imapfilter
synced 2024-12-21 23:28:49 -05:00
Add shortcuts to some possibly useful functions.
This commit is contained in:
parent
51da675056
commit
95ce717bcf
@ -272,6 +272,8 @@ function Account.unsubscribe_mailbox(self, name)
|
||||
return r
|
||||
end
|
||||
|
||||
Account.login = Account._login_user
|
||||
Account.logout = Account._logout_user
|
||||
|
||||
Account._mt.__index = function () end
|
||||
Account._mt.__newindex = function () end
|
||||
|
@ -63,3 +63,5 @@ function become_daemon(interval, commands, nochdir, noclose)
|
||||
commands()
|
||||
until ifsys.sleep(interval) ~= 0
|
||||
end
|
||||
|
||||
sleep = ifsys.sleep
|
||||
|
@ -1151,6 +1151,8 @@ function Mailbox.enter_idle(self)
|
||||
return r
|
||||
end
|
||||
|
||||
Mailbox.select = _cached_select
|
||||
Mailbox.close = _cached_close
|
||||
|
||||
Mailbox._mt.__index = function () end
|
||||
Mailbox._mt.__newindex = function () end
|
||||
|
Loading…
Reference in New Issue
Block a user