From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 58AB51FD47 for ; Fri, 10 Jan 2020 22:55:30 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/2] examples/unsubscribe.milter: skip gmane-mx Date: Fri, 10 Jan 2020 22:55:29 +0000 Message-Id: <20200110225530.17615-2-e@yhbt.net> In-Reply-To: <20200110225530.17615-1-e@yhbt.net> References: <20200110225530.17615-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Mail to gmane is being delivered to gmane-mx.org, nowadays, and we don't want ordinary readers to be able to trigger unconfirmed unsubscription off any mailing lists which go through our unsubscribe.milter. https://lars.ingebrigtsen.no/2020/01/06/whatever-happened-to-news-gmane-org/ --- examples/unsubscribe.milter | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/unsubscribe.milter b/examples/unsubscribe.milter index d6db766a..f7bf6f1d 100644 --- a/examples/unsubscribe.milter +++ b/examples/unsubscribe.milter @@ -75,7 +75,7 @@ $cbs{header} = sub { # We don't want people unsubscribing archivers: sub archive_addr { my ($addr) = @_; - return 1 if ($addr =~ /\@m\.gmane\.org\z/); + return 1 if ($addr =~ /\@m\.gmane(?:-mx)?\.org\z/); return 1 if ($addr eq 'archive@mail-archive.com'); 0 }