#
# $Id$
#

if not first_delivery
then
  finish
endif

#headers add "X-Infradead-Auth-Sender: <$authenticated_sender>"
#headers add "X-Infradead-Auth-ID: <$authenticated_id>"
headers add "X-Infradead-Mail-From: <$sender_address>"

if "$h_subject:" begins "Re: " and "$h_References:" is "" and
        "$h_In-Reply-To:" is "" then
        headers add "X-Bad-Reply: No References"
endif

if ( "$h_In-Reply-To:" is not "" or "$h_References:" is not "" ) and
	"$h_subject:" does not contain "Re: " then
	headers add "X-Bad-Reply: References but no Re:"
endif

headers remove X-SA-Exim-Rcpt-To
