LEI-CONFIG(1)
π LEI-CONFIG(1) π
okay so this is a page from the public-inbox user manual, and it's literally all about lei-config β the little git-config wrapper that handles your lei configuration file. bestie, let's get into it π
β¨ NAME β¨
lei-config β a git-config wrapper for the lei configuration file. that's it, that's the vibe π¦
β¨ SYNOPSIS β¨
lei config <name> [[<value>] [<value-pattern>]]
lei config -l | --list
lei config -e | --edit
β¨ DESCRIPTION β¨
so basically it calls git-config(1) but with "$XDG_CONFIG_HOME/lei/config" as the configuration file. all "OPTIONS" get passed straight through, no notes β except the ones that would override the configuration file, and those are not permitted, periodt. π
ββοΈ
every single "imap" and "nntp" option can be specified per-host, or (if you're on git 2.26+) with wildcards, like so:
[imap "imap://*.onion"]
proxy = socks5h://127.0.0.1:9050
[nntp "nntp://example.com"]
proxy = socks5h://127.0.0.1:1080
iconic wildcard behavior honestly π§
πΈ VARIABLES πΈ
external.*β managed bylei-add-external(1)andlei-forget-external(1). you don't touch these by hand, they run themselves πimap.proxy,nntp.proxyβ the"socks5h://"proxy address. older versions of SOCKS may be supported, but only if there's user demand.imap.starttls,nntp.starttlsβ enable or disable STARTTLS on non-imaps://and non-nntps://hosts. by default, STARTTLS is enabled if available β unless you're connecting to a Tor.onionorlocalhost. π§imap.compress,nntp.compressβ enable protocol-level compression. lowkey warning: this may be incompatible or broken with some servers π
note: Net::NNTP compression support is pending: <https://rt.cpan.org/Ticket/Display.html?id=129967>
imap.debug,nntp.debugβ enable debugging output of the underlying IMAP and NNTP libraries, currently Mail::IMAPClient and Net::NNTP, respectively. and ifimap.proxyornntp.proxypoints to a SOCKS proxy, debugging output for IO::Socket::Socks gets enabled too. β¨
ngl, you might need to disable imap.compress just so the output is readable. do with that what you will π
imap.timeout,nntp.timeoutβ the read timeout for responses.
Default: 600 seconds (IMAP); 120 seconds (NNTP) β°
imap.fetchBatchSizeβ how many full messages get fetched at once. larger values reduce network round trips, but at the cost of higher memory use β especially when you're retrieving large messages. π«Ά
small responses for IMAP flags are fetched at 10000 times this value.
Default: 1
color.SLOTβ"quoted","hdrdefault","status","attachment"color slots are supported for the-f textand-f replyoutput formats oflei-lcat(1)andlei-q(1).
any per-project .git/config, and global ~/.gitconfig files will also be parsed for diff coloring. the git diff color slots ("color.diff.SLOT") supported are "new", "old", "meta", "frag", "func", and "context". π
β¨ OPTIONS β¨
most git-config(1) command-line switches are accepted by lei config as-is. the ones you'll actually be reaching for are:
-e,--editβ open an editor to edit the lei config file. go off, edit your lil heart out βοΈ-l,--listβ list all variables set in the config file, along with their values. the receipts, basically π
β¨ CONTACT β¨
feedback welcome via plain-text mail to <mailto:meta@public-inbox.org> π
the mail archives are hosted at <https://public-inbox.org/meta/> and <http://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/meta/> β yes that second one is a whole onion address, we love a Tor moment π§ β¨
β¨ COPYRIGHT β¨
copyright all contributors <mailto:meta@public-inbox.org> π«Ά
license: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt> π
aaaand that's the whole page, bestie π this version came straight out of public-inbox.git, dated 1993-10-02 β yeah, that date is a whole mood, and it's literally the footer of the original. slay, bye π
π¦ where this page comes from
- arch rolling: lei 2.1.0-2 Β· AGPL
- nixos 26.05: perl5.42.3-public-inbox 2.1.0
- nixpkgs unstable: perl5.42.3-public-inbox 2.1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms