Files
chasquid/test/t-10-hooks/config/hooks/post-data.bad2
Alberto Bertogli ac7f32c2ce smtpsrv: Implement a post-DATA hook
This patch implements a post-DATA hook, which is run after receiving the
data but before sending a reply.

It can be used to implement content filtering when receiving email, for
example for passing the email through an anti-spam or an anti-virus.
2016-10-21 22:18:53 +01:00

9 lines
122 B
Bash
Executable File

#!/bin/bash
echo $0 > ../.data/post-data.out
echo "X-Post-DATA: This starts like a header"
echo
echo "But then is not"