summaryrefslogtreecommitdiffstats
path: root/roles/lists/files/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'roles/lists/files/usr/local')
-rwxr-xr-xroles/lists/files/usr/local/bin/sympa-queue17
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/lists/files/usr/local/bin/sympa-queue b/roles/lists/files/usr/local/bin/sympa-queue
new file mode 100755
index 0000000..85001bb
--- /dev/null
+++ b/roles/lists/files/usr/local/bin/sympa-queue
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+PATH=/bin:/usr/bin
+set -ue
+
+[ $# -eq 1 ] || exit 1
+
+username="${1#*/}"
+domainname="${1%%/*}"
+
+if [ "$username" = 'abuse-feedback-report' ] || [ "$username" = bounce ]; then
+ exec /usr/lib/sympa/lib/sympa/bouncequeue "sympa@$domainname"
+elif [ "${username%-owner}" != "$username" ]; then
+ exec /usr/lib/sympa/lib/sympa/bouncequeue "${username%-owner}@$domainname"
+else
+ exec /usr/lib/sympa/lib/sympa/queue "$username@$domainname"
+fi