From 6f8f6a2834de1b996a7c958b5055d0451fdece03 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 23 Jul 2000 13:21:24 +0000 Subject: Added dropdelivered. svn path=/trunk/; revision=2931 --- driver.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 14ab1602..f8e02ec6 100644 --- a/driver.c +++ b/driver.c @@ -625,6 +625,19 @@ static int readheaders(int sock, continue; } + /* + * We remove all Delivered-To: headers. + * + * This is to avoid false mail loops messages when delivering + * local messages to and from a Postfix/qmail mailserver. + * + * Should be controlled by an option + */ + if (ctl->dropdelivered && !strncasecmp(line, "Delivered-To:", 13)) { + free(line); + continue; + } + /* * If we see a Status line, it may have been inserted by an MUA * on the mail host, or it may have been inserted by the server -- cgit v1.2.3