From 0bce6aa8226a955208d45c418adf9e0ac5ee8aa5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 12 Apr 2014 09:59:41 +0000 Subject: derive -primary_address in config This may be useful for generating List-Id headers and HTML pages. --- t/config.t | 2 ++ 1 file changed, 2 insertions(+) (limited to 't') diff --git a/t/config.t b/t/config.t index cd61fe09..cb5ccee2 100644 --- a/t/config.t +++ b/t/config.t @@ -28,6 +28,7 @@ my $tmpdir = tempdir(CLEANUP => 1); is_deeply($cfg->lookup('bugs@public-inbox.org'), { 'mainrepo' => '/home/pi/bugs-main.git', 'address' => 'bugs@public-inbox.org', + -primary_address => 'bugs@public-inbox.org', 'description' => 'development discussion', 'listname' => 'bugs', }, "lookup matches expected output"); @@ -40,6 +41,7 @@ my $tmpdir = tempdir(CLEANUP => 1); 'address' => ['try@public-inbox.org', 'sandbox@public-inbox.org', 'test@public-inbox.org'], + -primary_address => 'try@public-inbox.org', 'mainrepo' => '/home/pi/test-main.git', 'description' => 'test/sandbox area, occasionally reset', 'listname' => 'test', -- cgit v1.2.3-24-ge0c7