LEI-IMPORT(1)
π lei-import β bestie edition
okay so this is lei-import(1), straight out of the public-inbox user manual, and it's literally the "one-time import of messages into local store" page. iykyk π
β¨ NAME β¨
lei-import β one-time import of messages into your local store. yes, one-time. it's giving "grab the mail and go" π
πΈ SYNOPSIS πΈ
lei import [OPTIONS] LOCATION [LOCATION...] [+L:LABEL]
lei import [OPTIONS] (--stdin|-)
π¦ DESCRIPTION π¦
So here's the tea: you're importing messages into the local storage of lei(1) (aka lei/store) β that's the whole vibe. π
LOCATION is where your messages come from. It can be:
- a directory (Maildir),
- a file,
- or a URL β and the URL can be
imap://,imaps://,nntp://, ornntps://.
If a URL needs authentication, it uses git-credential(1) to fill in the username and password. no cap, it handles that for you π₯
For a regular file, theLOCATIONmust have a<format>:prefix telling it which format you mean. the allowed formats aremboxrd,mboxcl2,mboxcl, andmboxo. don't skip the prefix bestie, it's required π
π OPTIONS π
-F MAIL_FORMAT,--in-format=MAIL_FORMATβ message input format. unless the messages are coming in on stdin, using a format prefix withLOCATIONis preferred (like, that's the cuter way to do it β¨).--stdinβ read messages from stdin. classic.--lockβ whichmbox(5)locking method(s) to use:dotlock,fcntl,flockornone.
Default: fcntl,dotlock
+L:LABELβ adds the givenLABELto all messages imported.LABELis an arbitrary user-defined value consisting of lowercase and digits. seelei-tag(1)for more info on labels π·οΈ
like, for example, specifying +L:inbox applies the inbox label to all messages being imported. cute, right?
may be specified multiple times to apply multiple labels π
Default: none
+kw:KEYWORDβ applyKEYWORDto all messages being imported, on top of any per-message keywords from the store (unless--no-kwis specified). seelei-tag(1)for more info on keywords.
may be specified multiple times to apply multiple keywords π
Default: none
--no-kwβ don't import message keywords (or "flags" in IMAP terminology). we're leaving those at home π--no-incrementalβ import already seen IMAP and NNTP articles. yep, even the ones it's already seen. main character energy.--torsocks=auto|no|yes,--no-torsocksβ whether to wrapgit(1)andcurl(1)commands withtorsocks(1).
Default: auto
--proxy=PROTOCOL://HOST[:PORT]β use the specified proxy (e.g.,socks5h://0:9050).
consider imap.proxy and nntp.proxy which can be persistently configured on a per-host basis in lei-config(1). lowkey the better move π«Ά
--noisyβ warn on misformatted email headers. not particularly useful, but this was the default prior to public-inbox 2.0.0. new in public-inbox 2.0.0. π
also: see lei-config(1) for various imap.* and nntp.* options. there's lore there.
π¬ 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/>
Β©οΈ COPYRIGHT Β©οΈ
copyright all contributors <mailto:meta@public-inbox.org>
license: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
π SEE ALSO π
lei-config(1), lei-index(1), lei-store-format(5)
okay that's the whole page, go import something iconic πβ¨
β signed off from public-inbox.git, dated 1993-10-02, and yes it's giving vintage but it's still slaying π
π¦ 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