about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiOverview.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-05-28 22:37:21 +0000
committerEric Wong <e@80x24.org>2021-05-28 22:38:43 +0000
commite3b920c4fdf4fb981306cc3fc832bdd367ccc922 (patch)
tree2ed199def390bd48faa48f0e073ae08b473ebe74 /lib/PublicInbox/LeiOverview.pm
parent5944277a4dc986f9adf9ba69a1e6e44899ad98c1 (diff)
downloadpublic-inbox-e3b920c4fdf4fb981306cc3fc832bdd367ccc922.tar.gz
This allows "lei-managed pseudo mailing lists" as described
by Konstantin.

Alternates use is optional and can be enables via --shared.

This doesn't manage or edit ~/.public-inbox/config; presumably
there'll need to be some tweaking of search parameters before
finalizing and making the inbox publicly accessible via HTTP/NNTP.

Link: https://public-inbox.org/meta/20210426164454.5zd5kgugfhfwfkpo@nitro.local/T/
Diffstat (limited to 'lib/PublicInbox/LeiOverview.pm')
-rw-r--r--lib/PublicInbox/LeiOverview.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/PublicInbox/LeiOverview.pm b/lib/PublicInbox/LeiOverview.pm
index 28891460..e4242d9b 100644
--- a/lib/PublicInbox/LeiOverview.pm
+++ b/lib/PublicInbox/LeiOverview.pm
@@ -108,6 +108,8 @@ sub new {
                         $opt->{alert} //= [ ':WINCH,:bell' ] if -t $lei->{1};
                 }
         }
+        return $lei->fail('--shared is only for v2 inbox output') if
+                $self->{fmt} ne 'v2' && $lei->{opt}->{shared};
         $self;
 }