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 --- NEWS | 10 ++++++++++ conf.c | 1 + driver.c | 13 +++++++++++++ fetchmail-features.html | 11 +++++++++-- fetchmail.c | 5 +++++ fetchmail.h | 1 + fetchmail.man | 17 +++++++++++++++-- fetchmailconf | 7 +++++++ rcfile_l.l | 2 ++ rcfile_y.y | 5 ++++- 10 files changed, 67 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index e9f6659c..6c432729 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,16 @@ * Guenther H. Leber's fix to show expunge parameters for POP3 in fetchmail -V. * Richard Gooch's fixes to use sigation(2) in sink.c and daemon.c +* Petr Kristof's fix for sslcert configuration in fetchmailconf. +* Jiri Pavolvsky's updated cs.po. +* Cyrille Lefevre 's patch for IPV6, + resolving FreeBSD Problem Report ports/19996. +* Added John Summerfield's pop2test to contrib. +* In the fetchmail RPM spec, stop compressing the man pages. Turns out + rpm-4.0 does a find(1) over the stuff to be installed and gzip(1)s the + manpages it finds. This gets messed up by the explicit symlink among + manpages in the spec file, which rpm redoes and gets all wrong. +* Added Antoine Beaupre's dropdelivered option. fetchmail-5.4.3 (Sun Jul 2 14:24:28 EDT 2000), 19080 lines: diff --git a/conf.c b/conf.c index acb68f65..7ac6fb66 100644 --- a/conf.c +++ b/conf.c @@ -328,6 +328,7 @@ void dump_config(struct runctl *runp, struct query *querylist) booldump("forcecr", ctl->forcecr); booldump("pass8bits", ctl->pass8bits); booldump("dropstatus", ctl->dropstatus); + booldump("dropdelivered", ctl->dropdelivered); booldump("mimedecode", ctl->mimedecode); booldump("idle", ctl->idle); 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 diff --git a/fetchmail-features.html b/fetchmail-features.html index 983a55a0..563596d7 100644 --- a/fetchmail-features.html +++ b/fetchmail-features.html @@ -10,7 +10,7 @@
Back to Fetchmail Home Page To Site Map -$Date: 2000/06/07 02:21:34 $ +$Date: 2000/07/23 13:21:22 $

@@ -18,6 +18,13 @@

Since 5.0: