about summary refs log tree commit homepage
path: root/t/filter_rubylang.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-11-26 07:24:02 +0000
committerEric Wong <e@80x24.org>2022-11-28 23:38:14 +0000
commitd9b0f6432682e4ad0a49f7befccde208e4565f1d (patch)
tree5ac5ba103cfd56c5f61817148fa7accf1beec50c /t/filter_rubylang.t
parentb66f13a1764606b9c4d0a6a8e22ab1a8e30570ad (diff)
downloadpublic-inbox-d9b0f6432682e4ad0a49f7befccde208e4565f1d.tar.gz
The host serving ruby-core and ruby-dev no longer set
X-Mail-Count, but the serial number remains active in
the Subject.
Diffstat (limited to 't/filter_rubylang.t')
-rw-r--r--t/filter_rubylang.t16
1 files changed, 12 insertions, 4 deletions
diff --git a/t/filter_rubylang.t b/t/filter_rubylang.t
index 4e9695e1..490a2154 100644
--- a/t/filter_rubylang.t
+++ b/t/filter_rubylang.t
@@ -1,8 +1,7 @@
-# Copyright (C) 2017-2021 all contributors <meta@public-inbox.org>
+#!perl -w
+# Copyright (C) all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
-use strict;
-use warnings;
-use Test::More;
+use v5.12;
 use PublicInbox::Eml;
 use PublicInbox::TestCommon;
 use_ok 'PublicInbox::Filter::RubyLang';
@@ -56,6 +55,15 @@ EOF
         $mime = PublicInbox::Eml->new($msg);
         $ret = $f->delivery($mime);
         is($ret, 100, "delivery rejected without X-Mail-Count");
+
+        $mime = PublicInbox::Eml->new(<<'EOM');
+Message-ID: <new@host>
+Subject: [ruby-core:13] times
+
+EOM
+        $ret = $f->delivery($mime);
+        is($ret, $mime, "delivery successful");
+        is($mm->num_for('new@host'), 13, 'MM entry created based on Subject');
 }
 
 done_testing();