mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-21 15:17:01 +00:00
This patch adds a test to make sure we handle correctly the case where a hook exits with a permanent failure.
20 lines
327 B
Bash
Executable File
20 lines
327 B
Bash
Executable File
#!/bin/bash
|
|
|
|
env > ../.data/post-data.out
|
|
echo >> ../.data/post-data.out
|
|
|
|
cat >> ../.data/post-data.out
|
|
|
|
if [ "$RCPT_TO" == "blockme@testserver" ]; then
|
|
echo "¡No pasarán!"
|
|
exit 1
|
|
fi
|
|
|
|
if [ "$RCPT_TO" == "permanent@testserver" ]; then
|
|
echo "Nos hacemos la permanente"
|
|
exit 20 # permanent
|
|
fi
|
|
|
|
echo "X-Post-Data: success"
|
|
|