about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-04-28 10:25:58 +0000
committerEric Wong <e@80x24.org>2014-04-28 10:25:58 +0000
commite7875ff77b4cd09831574cc4965e3f7012b81b89 (patch)
tree1256922c2aefcc74642b741992b9bc16c78be515 /t
parentac958d1d52ce32f3ad2c5af134fb229153b26062 (diff)
downloadpublic-inbox-e7875ff77b4cd09831574cc4965e3f7012b81b89.tar.gz
This mimics functionality found in -learn.  Originally the design
allowed for only one address per-list, but when migrating/hijacking
existing mailing lists, having multiple addresses map to the same
inbox is useful.
Diffstat (limited to 't')
-rw-r--r--t/precheck.t7
1 files changed, 4 insertions, 3 deletions
diff --git a/t/precheck.t b/t/precheck.t
index 974d6a38..89564097 100644
--- a/t/precheck.t
+++ b/t/precheck.t
@@ -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");
 }
 
 {