Files
chasquid/test/t-10-hooks/config/hooks/post-data.bad4
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

6 lines
110 B
Bash
Executable File

#!/bin/bash
echo $0 > ../.data/post-data.out
echo -n "X-Post-DATA: valid header with no newline at the end"