]> Sergey Matveev's repositories - public-inbox.git/blob - Documentation/lei-import.pod
7d70191d9af582f41465e7aa08554781443a951c
[public-inbox.git] / Documentation / lei-import.pod
1 =head1 NAME
2
3 lei-import - one-time import of messages into local store
4
5 =head1 SYNOPSIS
6
7 lei import [OPTIONS] LOCATION [LOCATION...]
8
9 lei import [OPTIONS] (--stdin|-)
10
11 =head1 DESCRIPTION
12
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 must use L<netrc(5)> and/or L<git-credential(1)> to
17 fill in the username and password.
18
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>.
22
23 =head1 OPTIONS
24
25 =over
26
27 =item -F MAIL_FORMAT, --in-format=MAIL_FORMAT
28
29 Message input format.  Unless messages are given on stdin, using a
30 format prefix with C<LOCATION> is preferred.
31
32 =item --stdin
33
34 Read messages from stdin.
35
36 =item --lock
37
38 L<mbox(5)> locking method(s) to use: C<dotlock>, C<fcntl>, C<flock> or
39 C<none>.
40
41 Default: fcntl,dotlock
42
43 =item --no-kw
44
45 Don't import message keywords (or "flags" in IMAP terminology).
46
47 =back
48
49 =head1 CONTACT
50
51 Feedback welcome via plain-text mail to L<mailto:meta@public-inbox.org>
52
53 The mail archives are hosted at L<https://public-inbox.org/meta/>
54 and L<http://hjrcffqmbrq6wope.onion/meta/>
55
56 =head1 COPYRIGHT
57
58 Copyright 2021 all contributors L<mailto:meta@public-inbox.org>
59
60 License: AGPL-3.0+ L<https://www.gnu.org/licenses/agpl-3.0.txt>
61
62
63 =head1 SEE ALSO
64
65 L<lei-add-external(1)>