1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00

aliases: Support '*' as the destination user

This patch implements support for aliases that contain '*' as the
destination user.

In that case, we replace it with the original user.

For example, `*: *@pond` will redirect `lilly@domain` to `lilly@pond`.

This is experimental for now, and marked as such in the documentation.
The semantics can be subtle, so we may need to adjust them later.
This commit is contained in:
Alberto Bertogli
2025-03-24 10:38:11 +00:00
parent 8e4d31c74c
commit 2ee64deec0
4 changed files with 104 additions and 0 deletions

View File

@@ -76,6 +76,17 @@ pepe: jose
*: pepe, rose@backgarden
```
!!! warning "Experimental"
If the destination address has `*` as its user, then it will be replaced
by the sender user. Note that in this case, the user is copied as-is, no
characters or suffixes will be dropped.
For example, `*: *@pond` will redirect `lilly@domain` to `lilly@pond`.
This is experimental as of chasquid 1.16.0, and subject to change.
### Overrides
If the same left-side address appears more than once, the last one will take