ViMbAdmin icon indicating copy to clipboard operation
ViMbAdmin copied to clipboard

extends possibilities for plugin

Open micdech opened this issue 2 years ago • 1 comments

Hi all, is there in program to extends possibilities for plugins?

Can't see any hooks for domains, and i want to try to write a plugin for opendkim.

Anyone wants to help me or find a way to do that?

micdech avatar May 04 '22 22:05 micdech

See https://github.com/opensolutions/ViMbAdmin/wiki/Plugins

The domain events are missing in the wiki, but there's quite a number of domain events you can hook into. Events are triggered using $this->notify() in DomainController (e.g. the domain_add_addPostflush event), simply check ViMbAdmin's code. There are separate events for adding (includes edits) and deleting (purging) a domain. If you need more events, you might simply add them and open a pull request - even though the project isn't as active as it used to be. There are more events for mailboxes and aliases, check their respective controller classes. Also see application/plugins/ for existing plugins; you might simply use one of them as a basis.

PhrozenByte avatar Jul 20 '22 21:07 PhrozenByte