Software / code / prosody-modules
File
mod_alias/mod_alias_postfixadmin.sh @ 6253:4d040f506c6c
mod_vcard_muc: deprecated
diff --git a/mod_vcard_muc/README.md b/mod_vcard_muc/README.md
--- a/mod_vcard_muc/README.md
+++ b/mod_vcard_muc/README.md
@@ -1,6 +1,7 @@
---
summary: Support for MUC vCards and avatars
labels:
+- 'Stage-Deprecated'
- 'Stage-Stable'
...
@@ -21,8 +22,8 @@ modules_enabled = {
# Compatibility
- ------------------------- ----------
- trunk^[as of 2024-10-22] Works
+ ------------------------- ----------------------------------------
+ 0.13 Room avatar feature included in Prosody
0.12 Works
- ------------------------- ----------
+ ------------------------- ----------------------------------------
| author | Menel <menel@snikket.de> |
|---|---|
| date | Mon, 12 May 2025 12:13:25 +0200 |
| parent | 1953:0c3ba5ff7a3b |
line wrap: on
line source
#!/bin/sh # Copyright (C) 2015 Travis Burtrum # This file is MIT/X11 licensed. # run like ./mod_alias_postfixadmin.sh "mysql -N -upostfixadmin -ppostfixadmin postfixadmin" > /etc/prosody/aliases.cfg.lua # then put: # Include "aliases.cfg.lua" # in prosody.cfg.lua mysql="$1" echo "-- alias plugin, generated by mod_alias_postfixadmin.sh" echo "aliases = {" echo "SELECT concat('["'"'"', address, '"'"'"] = "'"'"', goto, '"'"'";') FROM alias WHERE address != goto; SELECT concat('["'"'"', address, '"'"'"] = "'"'"', goto, '"'"'";') FROM ( select replace(address, concat('@', target_domain), concat('@', alias_domain)) as address, goto FROM alias JOIN alias_domain ON alias_domain.target_domain = SUBSTRING(alias.address, locate('@',alias.address) + 1, length(alias.address)) ) a WHERE a.address != a.goto;" | $mysql | sort | uniq echo "}"