mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-05-14 11:13:47 +00:00
aliases: Implement aliases hooks
This patch implements two new hooks: alias-resolve and alias-exists. They are called during the aliases resolution process, to allow for more complex integration with other systems, such as storing the aliases in a database. See the included documentation for more details.
This commit is contained in:
@@ -77,5 +77,16 @@ The `chasquid-util` command-line tool can be used to check and resolve
|
||||
aliases.
|
||||
|
||||
|
||||
## Hooks
|
||||
|
||||
There are two hooks that allow more sophisticated aliases resolution:
|
||||
`alias-exists` and `alias-resolve`.
|
||||
|
||||
If they exist, they are invoked as part of the resolution process and the
|
||||
results are merged with the file-based resolution results.
|
||||
|
||||
See the [hooks](hooks.md) documentation for more details.
|
||||
|
||||
|
||||
[chasquid]: https://blitiri.com.ar/p/chasquid
|
||||
[email aliases]: https://en.wikipedia.org/wiki/Email_alias
|
||||
|
||||
Reference in New Issue
Block a user