3 lei-import - one-time import of messages into local store
7 lei import [OPTIONS] LOCATION [LOCATION...]
9 lei import [OPTIONS] (--stdin|-)
13 Import messages into the local storage of L<lei(1)>. C<LOCATION> is a
14 source of messages: a directory (Maildir), a file, or a URL
15 (C<imap://>, C<imaps://>, C<nntp://>, or C<nntps://>). URLs requiring
16 authentication use L<git-credential(1)> to
17 fill in the username and password.
19 For a regular file, the location must have a C<E<lt>formatE<gt>:>
20 prefix specifying one of the following formats: C<eml>, C<mboxrd>,
21 C<mboxcl2>, C<mboxcl>, or C<mboxo>.
29 =item --in-format=MAIL_FORMAT
31 Message input format. Unless messages are given on stdin, using a
32 format prefix with C<LOCATION> is preferred.
36 Read messages from stdin.
40 L<mbox(5)> locking method(s) to use: C<dotlock>, C<fcntl>, C<flock> or
43 Default: fcntl,dotlock
47 Don't import message keywords (or "flags" in IMAP terminology).
49 =item --no-incremental
51 Import already seen IMAP and NNTP articles.
53 =item --torsocks=auto|no|yes
57 Whether to wrap L<git(1)> and L<curl(1)> commands with torsocks.
61 =item --proxy=PROTO://HOST[:PORT]
63 Use the specified proxy (e.g., C<socks5h://0:9050>).
69 Feedback welcome via plain-text mail to L<mailto:meta@public-inbox.org>
71 The mail archives are hosted at L<https://public-inbox.org/meta/> and
72 L<http://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/meta/>
76 Copyright 2021 all contributors L<mailto:meta@public-inbox.org>
78 License: AGPL-3.0+ L<https://www.gnu.org/licenses/agpl-3.0.txt>
83 L<lei-add-external(1)>