mirror of
https://github.com/pulb/mailnag.git
synced 2026-05-07 19:26:03 +02:00
Allow plugins to remove accounts
This commit is contained in:
@@ -161,7 +161,7 @@ class MailnagDaemon:
|
||||
lst = self._accounts[:]
|
||||
for f in self._hookreg.get_hook_funcs(HookTypes.ACCOUNTS_LOADED):
|
||||
try_call( lambda: f(lst) )
|
||||
self._accounts += [a for a in lst if a not in self._accounts]
|
||||
self._accounts[:] = lst
|
||||
|
||||
# Immediate check, check *all* accounts
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user