user/dev discussion of public-inbox itself
 help / color / Atom feed
fc220a167665b3bc02f9638f90a190403b8a4a46 blob 751 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 
#!/usr/bin/env perl
# Copyright (C) 2016-2019 all contributors <meta@public-inbox.org>
# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
use strict;
use warnings;
use PublicInbox::WatchMaildir;
use PublicInbox::Config;
my ($config, $watch_md);
my $reload = sub {
	$config = PublicInbox::Config->new;
	$watch_md->quit if $watch_md;
	$watch_md = PublicInbox::WatchMaildir->new($config);
};
$reload->();
if ($watch_md) {
	my $scan = sub { $watch_md->trigger_scan('full') if $watch_md };
	$SIG{HUP} = $reload;
	$SIG{USR1} = $scan;
	$SIG{ALRM} = sub { $SIG{ALRM} = 'DEFAULT'; $scan->() };
	$SIG{QUIT} = $SIG{TERM} = $SIG{INT} = sub {
		$watch_md->quit if $watch_md;
		$watch_md = undef;
	};
	alarm(1);
	$watch_md->watch while ($watch_md);
}
debug log:

solving fc220a1 ...
found fc220a1 in https://public-inbox.org/meta/20190924204312.7875-1-hi@alyssa.is/
found 5cbf761 in https://80x24.org/public-inbox.git
preparing index
index prepared:
100755 5cbf761b501a133d0b25937433e877e9950adb9c	script/public-inbox-watch

applying [1/1] https://public-inbox.org/meta/20190924204312.7875-1-hi@alyssa.is/
diff --git a/script/public-inbox-watch b/script/public-inbox-watch
index 5cbf761..fc220a1 100755

Checking patch script/public-inbox-watch...
Applied patch script/public-inbox-watch cleanly.

index at:
100755 fc220a167665b3bc02f9638f90a190403b8a4a46	script/public-inbox-watch

user/dev discussion of public-inbox itself

Archives are clonable:
	git clone --mirror https://public-inbox.org/meta
	git clone --mirror http://czquwvybam4bgbro.onion/meta
	git clone --mirror http://hjrcffqmbrq6wope.onion/meta
	git clone --mirror http://ou63pmih66umazou.onion/meta

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.mail.public-inbox.meta
	nntp://ou63pmih66umazou.onion/inbox.comp.mail.public-inbox.meta
	nntp://czquwvybam4bgbro.onion/inbox.comp.mail.public-inbox.meta
	nntp://hjrcffqmbrq6wope.onion/inbox.comp.mail.public-inbox.meta
	nntp://news.gmane.org/gmane.mail.public-inbox.general

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git