diff options
author | he <he@pkgsrc.org> | 2005-07-23 14:44:39 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2005-07-23 14:44:39 +0000 |
commit | e20364cf8850f9e3f1541d45ed235658245d3ea3 (patch) | |
tree | d1ac00bd712cdb99252e7bb6d90b6a965157ffa7 /mail/majordomo | |
parent | e0ceb37b7761b65861ca8f68aa620aa7176fd352 (diff) | |
download | pkgsrc-e20364cf8850f9e3f1541d45ed235658245d3ea3.tar.gz |
When the approve script processes a list bounce, remove any
"Delivered-To:" header pointing to the list so that if postfix is
involved in the message delivery, it will not think the message is
looping.
Idea and patch from cjs@
Diffstat (limited to 'mail/majordomo')
-rw-r--r-- | mail/majordomo/distinfo | 3 | ||||
-rw-r--r-- | mail/majordomo/patches/patch-am | 16 |
2 files changed, 18 insertions, 1 deletions
diff --git a/mail/majordomo/distinfo b/mail/majordomo/distinfo index 7e4cf1dee65..efb81aea801 100644 --- a/mail/majordomo/distinfo +++ b/mail/majordomo/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.3 2005/02/24 09:59:24 agc Exp $ +$NetBSD: distinfo,v 1.4 2005/07/23 14:44:39 he Exp $ SHA1 (majordomo-1.94.5.tgz) = 44b18c7b9133f2cd992f6e718551d613d9d45c00 RMD160 (majordomo-1.94.5.tgz) = 7f6b48fb5cc5b23948133658b055588d0d6608c4 @@ -15,3 +15,4 @@ SHA1 (patch-ai) = 771c487d1a3392bf3b523330b8d60fd9a190c58b SHA1 (patch-aj) = 6d4fe712af39cb986c24d0227f86aacb6d048870 SHA1 (patch-ak) = 401da2e552ff92ef35a60e45d6b8994dfd091b49 SHA1 (patch-al) = 776088c5916b1b0516e8abaecd69870ba57f4a76 +SHA1 (patch-am) = bbdc7c4d650c99e182bac2ae50ccd82f111c7bcc diff --git a/mail/majordomo/patches/patch-am b/mail/majordomo/patches/patch-am new file mode 100644 index 00000000000..632eebcd563 --- /dev/null +++ b/mail/majordomo/patches/patch-am @@ -0,0 +1,16 @@ +$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 $_; + } |