3 public-inbox-watch - mailbox watcher for public-inbox
9 In ~/.public-inbox/config:
12 ; generic public-inbox-config keys:
13 address = test@example.com
14 url = http://example.com/test
15 inboxdir = /path/to/test.example.com.git
17 ; config keys specific to public-inbox-watch:
19 watch = maildir:/path/to/maildirs/.INBOX.test/
21 ; optional, emails that don't have a header matching
22 ; value will be skipped
23 watchheader = List-Id:<test.example.com>
26 ; optional, enable use of spamc(1) for checking:
29 ; optional, emails marked as read which appear
30 ; here will be trained as spam and deleted from
31 ; the inboxdirs of any public-inboxes which are
32 ; configured for watch.
33 ; This is global for all publicinbox.* sections
34 watchspam = maildir:/path/to/maildirs/.INBOX.spam
38 public-inbox-watch allows watching a mailbox or newsgroup
39 for the arrival of new messages and automatically
40 importing them into public-inbox git repositories and indices.
41 public-inbox-watch is useful in situations when a user wishes to
42 mirror an existing mailing list, but has no access to run
43 L<public-inbox-mda(1)> on a server. Unlike public-inbox-mda
44 which is invoked once per-message, public-inbox-watch is a
45 persistent process, making it faster for after-the-fact imports
48 Upon startup, it scans the mailbox for new messages to be
49 imported while it was not running.
51 As of public-inbox 1.6.0, Maildirs, IMAP folders, and NNTP
52 newsgroups are supported. Previous versions of public-inbox
53 only supported Maildirs.
55 public-inbox-watch should be run inside a L<screen(1)> session
56 or as a L<systemd(1)> service. Errors are emitted to stderr.
60 public-inbox-watch takes no command-line options.
64 These configuration knobs should be used in the
65 L<public-inbox-config(5)> file
69 =item publicinbox.<name>.watch
71 A location to watch. public-inbox 1.5.0 and earlier only supported
75 watch = maildir:/path/to/maildirs/.INBOX.test/
77 public-inbox 1.6.0 supports C<nntp://>, C<nntps://>,
78 C<imap://> and C<imaps://> URLs:
80 watch = nntp://news.example.com/inbox.test.group
81 watch = imaps://mail.example.com/INBOX.test.foo
85 =item publicinbox.<name>.watchheader
88 watchheader = List-Id:<test.example.com>
90 If specified, L<public-inbox-watch(1)> will only process mail
91 matching the given header. If specified multiple times in
92 public-inbox 1.5 or later, mail will be processed if it matches
93 any of the values. Only the last value was used in public-inbox
98 =item publicinboxwatch.spamcheck
100 This may be set to C<spamc> to enable the use of SpamAssassin
101 L<spamc(1)> for filtering spam before it is imported into git
102 history. Other spam filtering backends may be supported in
107 =item publicinboxwatch.watchspam
109 A Maildir to watch for confirmed spam messages to appear in.
110 Messages which appear in this folder with the (S)een flag
111 will be hidden from all configured inboxes based on Message-ID
112 and content matching.
114 Messages without the (S)een flag are not considered for hiding.
115 This hiding affects all configured public-inboxes in PI_CONFIG.
117 As with C<publicinbox.$NAME.watch>, C<imap://> and C<imaps://> URLs
118 are supported in public-inbox 1.6.0.
120 Default: none; only for L<public-inbox-watch(1)> users
130 Reload the config file (default: ~/.public-inbox/config)
134 Rescan all watched mailboxes. This is done automatically after
137 =item SIGQUIT / SIGTERM / SIGINT
139 Gracefully shut down. In-flight messages will be stored
150 config file. default: ~/.public-inbox/config
151 See L<public-inbox-config(5)>
153 =item PERL_INLINE_DIRECTORY
155 This may affect any public-inbox processes, but is intended
156 for long-lived ones such as C<public-inbox-watch> or network
157 daemons. See L<public-inbox-daemon(8)>.
163 Feedback welcome via plain-text mail to L<mailto:meta@public-inbox.org>
165 The mail archives are hosted at L<https://public-inbox.org/meta/>
166 and L<http://hjrcffqmbrq6wope.onion/meta/>
170 Copyright 2016-2020 all contributors L<mailto:meta@public-inbox.org>
172 License: AGPL-3.0+ L<https://www.gnu.org/licenses/agpl-3.0.txt>
176 L<public-inbox-config(5)>