From 389767f3b7eccc58859d7eade9ee2ba26b28f20d Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Wed, 10 Feb 2021 23:04:14 -0500 Subject: doc: add lei-import(1) --- Documentation/lei-add-external.pod | 2 +- Documentation/lei-import.pod | 54 ++++++++++++++++++++++++++++++++++++++ Documentation/lei-overview.pod | 10 ++++++- Documentation/lei.pod | 4 +-- Documentation/txt2pre | 1 + 5 files changed, 67 insertions(+), 4 deletions(-) create mode 100644 Documentation/lei-import.pod (limited to 'Documentation') diff --git a/Documentation/lei-add-external.pod b/Documentation/lei-add-external.pod index ebefb4cf..1be3f905 100644 --- a/Documentation/lei-add-external.pod +++ b/Documentation/lei-add-external.pod @@ -44,6 +44,6 @@ License: AGPL-3.0+ L =head1 SEE ALSO -L, L, +L, L, L, L, L, L diff --git a/Documentation/lei-import.pod b/Documentation/lei-import.pod new file mode 100644 index 00000000..14ca2d45 --- /dev/null +++ b/Documentation/lei-import.pod @@ -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. C 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, C, C, C, +C. + +=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 + +The mail archives are hosted at L +and L + +=head1 COPYRIGHT + +Copyright 2021 all contributors L + +License: AGPL-3.0+ L + + +=head1 SEE ALSO + +L diff --git a/Documentation/lei-overview.pod b/Documentation/lei-overview.pod index d1903045..33ddb528 100644 --- a/Documentation/lei-overview.pod +++ b/Documentation/lei-overview.pod @@ -12,7 +12,15 @@ provides some basic examples. L initializes writable local storage based on L. -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 diff --git a/Documentation/lei.pod b/Documentation/lei.pod index e12a157d..9ce9e9a4 100644 --- a/Documentation/lei.pod +++ b/Documentation/lei.pod @@ -27,9 +27,9 @@ Subcommands for initializing and managing local, writable storage: =item * L -=back +=item * L -TODO: Add commands like lei-import once they're implemented. +=back The following subcommands can be used to manage and inspect external locations: diff --git a/Documentation/txt2pre b/Documentation/txt2pre index 604490ef..8421cad7 100755 --- a/Documentation/txt2pre +++ b/Documentation/txt2pre @@ -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) -- cgit v1.2.3-24-ge0c7