]> Sergey Matveev's repositories - public-inbox.git/blob - Documentation/lei-import.pod
doc: lei: favor "-o format:$PATHNAME" over "-f"
[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) or a file.  For a regular
15 file, the location must have a C<E<lt>formatE<gt>:> prefix specifying
16 one of the following formats: C<eml>, C<mboxrd>, C<mboxcl2>,
17 C<mboxcl>, or C<mboxo>.
18
19 TODO: Update when URL support is added.
20
21 =head1 OPTIONS
22
23 =over
24
25 =item -f MAIL_FORMAT, --format=MAIL_FORMAT
26
27 Message input format.  Unless messages are given on C<stdin>, using a
28 format prefix with C<LOCATION> is preferred.
29
30 =item --stdin
31
32 Read messages from stdin.
33
34 =item --no-kw, --no-keywords, --no-flags
35
36 Don't import message keywords (or "flags" in IMAP terminology).
37
38 =back
39
40 =head1 CONTACT
41
42 Feedback welcome via plain-text mail to L<mailto:meta@public-inbox.org>
43
44 The mail archives are hosted at L<https://public-inbox.org/meta/>
45 and L<http://hjrcffqmbrq6wope.onion/meta/>
46
47 =head1 COPYRIGHT
48
49 Copyright 2021 all contributors L<mailto:meta@public-inbox.org>
50
51 License: AGPL-3.0+ L<https://www.gnu.org/licenses/agpl-3.0.txt>
52
53
54 =head1 SEE ALSO
55
56 L<lei-add-external(1)>