aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-07-23 13:21:24 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-07-23 13:21:24 +0000
commit6f8f6a2834de1b996a7c958b5055d0451fdece03 (patch)
tree3489ed505b31693e68f79b143207ea2bbb4bf241 /driver.c
parent4d5ea12cb31631543e3c53730e497fb63baa25ca (diff)
downloadfetchmail-6f8f6a2834de1b996a7c958b5055d0451fdece03.tar.gz
fetchmail-6f8f6a2834de1b996a7c958b5055d0451fdece03.tar.bz2
fetchmail-6f8f6a2834de1b996a7c958b5055d0451fdece03.zip
Added dropdelivered.
svn path=/trunk/; revision=2931
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index 14ab1602..f8e02ec6 100644
--- a/driver.c
+++ b/driver.c
@@ -626,6 +626,19 @@ static int readheaders(int sock,
}
/*
+ * 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
* program after the headers in the transaction stream. This