about summary refs log tree commit homepage
path: root/examples
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-01-10 22:55:29 +0000
committerEric Wong <e@yhbt.net>2020-01-12 21:27:50 +0000
commitda0eeb321433b70819dd417afcaf1ac86e1da5df (patch)
treee41358ca6366ddcde592be2d7666a0d62f4cdef7 /examples
parent195c40c82e77c73e171f75529b80c7561565d512 (diff)
downloadpublic-inbox-da0eeb321433b70819dd417afcaf1ac86e1da5df.tar.gz
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/
Diffstat (limited to 'examples')
-rw-r--r--examples/unsubscribe.milter2
1 files changed, 1 insertions, 1 deletions
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
 }