diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-07-23 13:21:24 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-07-23 13:21:24 +0000 |
commit | 6f8f6a2834de1b996a7c958b5055d0451fdece03 (patch) | |
tree | 3489ed505b31693e68f79b143207ea2bbb4bf241 /driver.c | |
parent | 4d5ea12cb31631543e3c53730e497fb63baa25ca (diff) | |
download | fetchmail-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.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |