]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Add a test case
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 17 Feb 2022 21:24:58 +0000 (21:24 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 17 Feb 2022 21:24:58 +0000 (21:24 +0000)
Issue: #4081

test/rspamd_cxx_unit_utils.hxx

index d83af501066fb48a44605ecd83e87098019012a1..c853153793aab4262eed90d246697b5111422934 100644 (file)
@@ -44,6 +44,7 @@ TEST_CASE("rspamd_strip_smtp_comments_inplace")
                        {"ab(trol\\\1lo)c(foo)",   "abc"},
                        {"\\ab(trol\\\1lo)c(foo)", "abc"},
                        {"",                       ""},
+                       {"<test_id@example.net> (added by postmaster@example.net)", "<test_id@example.net> "}
        };
 
        for (const auto &c : cases) {