mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-01-07 17:47:14 +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:
14
test/t-04-aliases/alias-resolve-hook
Executable file
14
test/t-04-aliases/alias-resolve-hook
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
case "$1" in
|
||||
"vicuña@testserver")
|
||||
# Test one naked, one full. These exist in the static aliases file.
|
||||
echo pepe, joan@testserver
|
||||
;;
|
||||
"ñandú@testserver")
|
||||
echo "| writemailto ../.data/pipe_alias_worked"
|
||||
;;
|
||||
"roto@testserver")
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user