]> Sergey Matveev's repositories - public-inbox.git/blob - Documentation/lei-config.pod
lei q: improve --limit behavior and progress
[public-inbox.git] / Documentation / lei-config.pod
1 =head1 NAME
2
3 lei-config - git-config wrapper for lei configuration file
4
5 =head1 SYNOPSIS
6
7 lei config [OPTIONS]
8
9 =head1 DESCRIPTION
10
11 Call L<git-config(1)> with C<$XDG_CONFIG_HOME/lei/config> as the
12 configuration file.  All C<OPTIONS> are passed through, but those that
13 override the configuration file are not permitted.
14
15 All C<imap> and C<nntp> options may be specified per-host or
16 (if using git 2.26+) with wildcards:
17
18         [imap "imap://*.onion"]
19                 proxy = socks5h://127.0.0.1:9050
20
21         [nntp "nntp://example.com"]
22                 proxy = socks5h://127.0.0.1:1080
23
24 =head2 VARIABLES
25
26 =over 8
27
28 =item external.*
29
30 Managed by L<lei-add-external(1)> and L<lei-forget-external(1)>
31
32 =item imap.proxy
33
34 =item nntp.proxy
35
36 The C<socks5h://> proxy address.  Older versions of SOCKS may
37 be supported if there is user demand.
38
39 =item imap.starttls
40
41 =item nntp.starttls
42
43 Enable or disable STARTTLS on non-imaps:// and non-nntps://
44 hosts.  By default, STARTTLS is enabled if available unless
45 connecting to a Tor .onion or localhost.
46
47 =item imap.compress
48
49 =item nntp.compress
50
51 Enable protocol-level compression.  This may be incompatible
52 or broken with some servers.
53
54 Note: L<Net::NNTP> compression support is pending:
55 L<https://rt.cpan.org/Ticket/Display.html?id=129967>
56
57 =item imap.debug
58
59 =item nntp.debug
60
61 Enable debugging output of underlying IMAP and NNTP libraries,
62 currently L<Mail::IMAPClient> and L<Net::NNTP>, respectively.
63 If using L<imap.proxy> or L<nntp.proxy> point to a SOCKS proxy,
64 debugging output for L<IO::Socket::Socks> will be enabled, as
65 well.
66
67 Disabling L<imap.compress> may be required for readability.
68
69 =item imap.timeout
70
71 =item nntp.timeout
72
73 The read timeout for responses.
74
75 Default: 600 seconds (IMAP); 120 seconds (NNTP)
76
77 =item imap.fetchBatchSize
78
79 Number of full messages to fetch at once.  Larger values reduce
80 network round trips at the cost of higher memory use, especially
81 when retrieving large messages.
82
83 Small responses for IMAP flags are fetched at 10000 times this value.
84
85 Default: 1
86
87 =item imap.ignoreSizeErrors
88
89 Ignore size mismatches from broken IMAP server implementations.
90
91 Default: false
92
93 =item color.SLOT
94
95 C<quoted>, C<hdrdefault>, C<status>, C<attachment> color slots
96 are supported for the C<-f text> and C<-f reply> output formats
97 of L<lei-lcat(1)> and L<lei-q(1)>.
98
99 Any per-project .git/config, and global ~/.gitconfig files
100 will also be parsed for diff coloring.  git diff color slots
101 (C<color.diff.SLOT>) supported are C<new>, C<old>, C<meta>,
102 C<frag>, C<func>, and C<context>.
103
104 =head1 CONTACT
105
106 Feedback welcome via plain-text mail to L<mailto:meta@public-inbox.org>
107
108 The mail archives are hosted at L<https://public-inbox.org/meta/> and
109 L<http://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/meta/>
110
111 =head1 COPYRIGHT
112
113 Copyright 2021 all contributors L<mailto:meta@public-inbox.org>
114
115 License: AGPL-3.0+ L<https://www.gnu.org/licenses/agpl-3.0.txt>