]> Sergey Matveev's repositories - public-inbox.git/commitdiff
examples/unsubscribe.milter: skip gmane-mx
authorEric Wong <e@yhbt.net>
Fri, 10 Jan 2020 22:55:29 +0000 (22:55 +0000)
committerEric Wong <e@yhbt.net>
Sun, 12 Jan 2020 21:27:50 +0000 (21:27 +0000)
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

index d6db766a51beb5bebc750045369ce882f92b8fb1..f7bf6f1d38b4f18503b8be906d6e9bc35b9c7760 100644 (file)
@@ -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
 }