]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/precheck.t
mda: support aliased addresses
[public-inbox.git] / t / precheck.t
index 974d6a3879d2d0440a56f193f588004b41beca5a..89564097bb1e645952a9606e7d689a1300e6cdc1 100644 (file)
@@ -12,9 +12,6 @@ sub do_checks {
 
        my $f = Email::Filter->new(data => $s->as_string);
 
-       ok(PublicInbox::MDA->precheck($f, undef),
-               "ORIGINAL_RECIPIENT unset is OK");
-
        my $recipient = 'foo@example.com';
        ok(!PublicInbox::MDA->precheck($f, $recipient),
                "wrong ORIGINAL_RECIPIENT rejected");
@@ -26,6 +23,10 @@ sub do_checks {
        $recipient = 'c@example.com';
        ok(PublicInbox::MDA->precheck($f, $recipient),
                "ORIGINAL_RECIPIENT in Cc: is OK");
+
+       $recipient = [ 'c@example.com', 'd@example.com' ];
+       ok(PublicInbox::MDA->precheck($f, $recipient),
+               "alias list is OK");
 }
 
 {