git » chasquid » master » tree

[master] / test / t-10-hooks / config / hooks / post-data.good

#!/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"
echo "X-Post-Data-Multiline: multiline"
echo "  header for testing."