1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-18 14:47:03 +00:00
Files
go-chasquid-smtp/test/t-04-aliases/alias-exists-hook
Alberto Bertogli f399fe3e84 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.
2019-10-24 21:37:09 +01:00

16 lines
138 B
Bash
Executable File

#!/bin/bash
case "$1" in
"vicuña@testserver")
exit 0
;;
"ñandú@testserver")
exit 0
;;
"roto@testserver")
exit 0
;;
esac
exit 1