$NetBSD: patch-am,v 1.1 2005/07/23 14:44:39 he Exp $

--- approve.orig	1997-04-05 21:18:36.000000000 +0200
+++ approve
@@ -214,6 +214,11 @@ sub process_bounce {
 	    $from_skipped = 1;
 	    next;
 	}
+	if (/^delivered-to: $post_to/i) {
+		# Remove Delivered-To: lines that point to the list, since they
+		# will cause postfix to think that the message is looping.
+		next;
+	}
 	s/^~/~~/;
 	print MAIL $_;
     }
