]> Sergey Matveev's repositories - public-inbox.git/commitdiff
doc: add lei-import(1)
authorKyle Meyer <kyle@kyleam.com>
Thu, 11 Feb 2021 04:04:14 +0000 (23:04 -0500)
committerEric Wong <e@80x24.org>
Thu, 11 Feb 2021 05:03:24 +0000 (05:03 +0000)
Documentation/lei-add-external.pod
Documentation/lei-import.pod [new file with mode: 0644]
Documentation/lei-overview.pod
Documentation/lei.pod
Documentation/txt2pre
MANIFEST
Makefile.PL

index ebefb4cfa919d36a79bc516ed946544754932b4e..1be3f9057aa5c5ccfcb46460bcba427650985aa8 100644 (file)
@@ -44,6 +44,6 @@ License: AGPL-3.0+ L<https://www.gnu.org/licenses/agpl-3.0.txt>
 
 =head1 SEE ALSO
 
-L<lei-forget-external(1)>, L<lei-ls-external(1)>,
+L<lei-forget-external(1)>, L<lei-ls-external(1)>, L<lei-import(1)>,
 L<public-inbox-index(1)>, L<public-inbox-extindex(1)>,
 L<public-inbox-extindex-format(5)>
diff --git a/Documentation/lei-import.pod b/Documentation/lei-import.pod
new file mode 100644 (file)
index 0000000..14ca2d4
--- /dev/null
@@ -0,0 +1,54 @@
+=head1 NAME
+
+lei-import - one-time import of messages into local store
+
+=head1 SYNOPSIS
+
+lei import [OPTIONS] LOCATION [LOCATION...]
+
+lei import [OPTIONS] --stdin
+
+=head1 DESCRIPTION
+
+Import messages into the local storage of L<lei(1)>.  C<LOCATION> is a
+source of messages: a directory (Maildir) or a file (whose format is
+specified via C<--format>).
+
+TODO: Update when URL support is added.
+
+=head1 OPTIONS
+
+=over
+
+=item -f MAIL_FORMAT, --format=MAIL_FORMAT
+
+Message input format: C<eml>, C<mboxrd>, C<mboxcl2>, C<mboxcl>,
+C<mboxo>.
+
+=item --stdin
+
+Read messages from stdin.
+
+=item --no-kw, --no-keywords, --no-flags
+
+Don't import message keywords (or "flags" in IMAP terminology).
+
+=back
+
+=head1 CONTACT
+
+Feedback welcome via plain-text mail to L<mailto:meta@public-inbox.org>
+
+The mail archives are hosted at L<https://public-inbox.org/meta/>
+and L<http://hjrcffqmbrq6wope.onion/meta/>
+
+=head1 COPYRIGHT
+
+Copyright 2021 all contributors L<mailto:meta@public-inbox.org>
+
+License: AGPL-3.0+ L<https://www.gnu.org/licenses/agpl-3.0.txt>
+
+
+=head1 SEE ALSO
+
+L<lei-add-external(1)>
index d190304569ec109682da526f64c2cc5705646eed..33ddb528f7c06ab4072967e04a0c4c8d162e25ad 100644 (file)
@@ -12,7 +12,15 @@ provides some basic examples.
 L<lei-init(1)> initializes writable local storage based on
 L<public-inbox-v2-format(5)>.
 
-TODO: Extend when lei-import and friends are added.
+=head2 EXAMPLES
+
+=over
+
+=item $ lei import --format=mboxrd t.mbox
+
+Import the messages from an mbox into the local storage.
+
+=back
 
 =head1 EXTERNALS
 
index e12a157db1c1993f83aecd5c27134e619282c2d8..9ce9e9a4dc6cde8149cfbef5bcf530325958c59e 100644 (file)
@@ -27,9 +27,9 @@ Subcommands for initializing and managing local, writable storage:
 
 =item * L<lei-init(1)>
 
-=back
+=item * L<lei-import(1)>
 
-TODO: Add commands like lei-import once they're implemented.
+=back
 
 The following subcommands can be used to manage and inspect external
 locations:
index 604490ef2ee3d7d3219369faef060fd209e48c54..8421cad74e7b4321e5727e9d3ac38c9280efd5e5 100755 (executable)
@@ -16,6 +16,7 @@ for (qw[lei(1)
        lei-daemon-kill(1)
        lei-daemon-pid(1)
        lei-forget-external(1)
+       lei-import(1)
        lei-init(1)
        lei-ls-external(1)
        lei-overview(7)
index 92226d5a6cda77d42d59d891608139cfb8c9c2cc..1794d930b934bfff6939bb5a042fca8b778e2cfd 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -26,6 +26,7 @@ Documentation/lei-config.pod
 Documentation/lei-daemon-kill.pod
 Documentation/lei-daemon-pid.pod
 Documentation/lei-forget-external.pod
+Documentation/lei-import.pod
 Documentation/lei-init.pod
 Documentation/lei-ls-external.pod
 Documentation/lei-overview.pod
index 6fb0d5604b7fea04919b1d1e9c8e80a498e0eb6f..89f1774e0a6d879b671a353d84f7444570e15f44 100644 (file)
@@ -45,7 +45,7 @@ $v->{-m1} = [ map {
        } @EXE_FILES,
        qw(
        lei-add-external lei-config lei-daemon-kill lei-daemon-pid
-       lei-forget-external lei-init lei-ls-external lei-q)];
+       lei-forget-external lei-import lei-init lei-ls-external lei-q)];
 $v->{-m5} = [ qw(public-inbox-config public-inbox-v1-format
                public-inbox-v2-format public-inbox-extindex-format) ];
 $v->{-m7} = [ qw(lei-overview public-inbox-overview public-inbox-tuning) ];