Commit Graph

319 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema f813498f4d mu: add --reindex option for mu index
I.e. without having to reinit explicitly.
2024-04-05 19:03:42 +03:00
Adam Porter 9275068204 man: Escape Org heading-like lines in example 2024-03-28 11:04:05 -05:00
Ulrich Ölmann fcdc47fcec mu-index.1: fix typo 2024-03-19 08:31:42 +01:00
Dirk-Jan C. Binnema 7e89e3715b mu-query: use mu info tables 2024-03-17 10:59:37 +02:00
Stefan van der Walt 7ca566bda6 Document personal and calendar flags 2024-03-16 15:44:09 -07:00
Dirk-Jan C. Binnema 0b68afe9aa mu-index.1: add note about encryption
mu index does not decrypt.

Fixes #2660.
2024-03-07 22:56:10 +02:00
Jeremy Sowden 721aadc140 man: change quoting style
The man-page sources use single quotes to quote text.  However, this can be
problematic in man-pages because if a single quote appears at the beginning of a
line the following word is interpreted by troff as a macro.  For example, this
paragraph in mu-easy.7:

    What if we want to see some of the body of the message? You can get a 'summary'
    of the first lines of the message using the \fI\-\-summary\-len\fP option, which will
   'summarize' the first \fIn\fP lines of the message:

elicits this warning:

    $ man --warnings obj-x86_64-linux-gnu/man/mu-easy.7 >/dev/null
    troff:<standard input>:166: warning: macro 'summarize'' not defined

and gets truncated:

    What  if  we want to see some of the body of the message? You can get a
    'summary' of the first lines of the message using the --summary-len op‐
    tion, which will

One could adjust the line-wrapping to move the quoted text away from the
beginning of the line, but that is fragile.  Another possibility would be to use
the troff escape-sequences for open and close quotes (`\(oq` and `\(cq`
respectively), but ox-man is being used precisely to avoid having to handle
troff directly.  Instead use back-ticks for left quotes.  Thus:

    What if we want to see some of the body of the message? You can get a `summary'
    of the first lines of the message using the \fI\-\-summary\-len\fP option, which will
   `summarize' the first \fIn\fP lines of the message:

which is rendered correctly:

    What  if  we want to see some of the body of the message? You can get a
    `summary' of the first lines of the message using the --summary-len op-
    tion, which will `summarize' the first n lines of the message:

Signed-off-by: Jeremy Sowden <azazel@debian.org>
2024-03-06 21:12:32 +00:00
Jeremy Sowden c76aa53156 man: fix formatting of `NAME` sections
The command names are formatted inconsistently, e.g.:

    * NAME

    ~mu add~ - add one or more messages to the database

versus:

    * NAME

    *mu cfind* is the *mu* command to find contacts in the *mu* database and export them

versus:

    * NAME

    mu server - the mu backend for the mu4e e-mail client

and the format, with a space between "mu" and the subcommand, is not compatible
with mandb(8).  Use formatting which is consistent and replace the spaces with
hyphens.

Signed-off-by: Jeremy Sowden <azazel@debian.org>
2024-03-06 21:12:32 +00:00
Jeremy Sowden e5fe18c2c2 man: disable captions in tables
The tables don't define any captions, and ox-man outputs a `.TB` macro that
groff does not support.

Signed-off-by: Jeremy Sowden <azazel@debian.org>
2024-03-06 21:12:32 +00:00
Jeremy Sowden d8389e9721 man: fix formatting of underscores
In org-mode, underscores are used to represent subscripts.  Thus, `a_b`
will be transcoded to `a\d\s-2b\s+2\u`.  Configure org-mode only to do
this for `a_{b}`.

Signed-off-by: Jeremy Sowden <azazel@debian.org>
2024-03-06 21:12:32 +00:00
Jeremy Sowden f70efd3cec man: fix bold syntax-error
There's a closing asterisk missing from a bold string.

Signed-off-by: Jeremy Sowden <azazel@debian.org>
2024-03-06 21:12:32 +00:00
Jeremy Sowden 0e0457190d man: build mu-move.1
1.12.0 includes a new mu-move.1 man-page but the list of man-pages in
man/meson.build was not updated, so it is not built.

Signed-off-by: Jeremy Sowden <azazel@debian.org>
2024-03-06 21:12:32 +00:00
Dirk-Jan C. Binnema dcbcd697f4 mu-init: insist that --maildir is absolute 2024-02-26 01:08:44 +02:00
Dirk-Jan C. Binnema b4c768e6d0 mu-init: guess maildir when --maildir is missing
Re-instate the guessing that's in the manpage. Add unit tests.
Update documentation.

Fixes #2616.
2024-01-01 10:33:03 +02:00
Dirk-Jan C. Binnema ae4f49cfc0 init: interpret batch-size 0 as 'default'
This makes writing tests easier.
2023-12-29 22:28:10 +02:00
Jeremy Sowden c9b06a55e7 man: fix unreproducible copyright years
967b724e75 ("build: avoid dynamic dates for reproducibility")
introduced the `mu_date` variable to hard-code a build-date.  This is
used for the dates embedded in the texinfo documentation, but `date` is
still called to set the copyright years in the man-pages.  Use `mu_date`
there too.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2023-11-19 12:30:34 +00:00
Dirk-Jan C. Binnema 967b724e75 build: avoid dynamic dates for reproducibility
We were using dates (in documentation, (c) notices etc) based on the
build-date; that makes it hard to do reproducible builds, so specify a
specific date in the top-level meson file, and use that throughout.
2023-10-14 15:24:00 +03:00
Dirk-Jan C. Binnema 2d20074b99 mu-move: add new move sub command
Add sub-command to move messages; add tests and docs.

Fixes #157
2023-09-24 17:29:08 +03:00
Dirk-Jan C. Binnema da49e77449 mu-info: add 'maildirs' topic
For showing all maildirs under the root.
2023-09-16 11:12:16 +03:00
Dirk-Jan C. Binnema 3ee2ce9647 mu/mu: tweak logging / exception handling 2023-09-13 23:04:44 +03:00
Dirk-Jan C. Binnema 976266631c man: update query manpage 2023-09-12 21:35:47 +03:00
Dirk-Jan C. Binnema 264bb092f0 support xapian ngrams
Xapian supports an "ngrams" option to help with languages/scripts
without explicit wordbreaks, such as Chinese / Japanese / Korean.

Add some plumbing for supporting this in mu as well. Experimental for
now.
2023-09-09 17:26:20 +03:00
Dirk-Jan C. Binnema f6122ecc9e mu-find: add --analyze option
For analyzing queries with the new query-parser.
2023-09-09 11:59:59 +03:00
Dirk-Jan C. Binnema a9bd6e69d3 lib: implement new query parser
Implement a new query parser; the results should be very similar to the
old one, but it adds an Sexp middle-representation, so users can see how
a query is interpreted.
2023-09-09 11:59:59 +03:00
Jeremy Sowden f56530d96a man: fix rendering of form-feed in mu-view.1
ox-man exports the string:

  \\f (=form-feed=)

as:

  $\(\fIform\-feed\fP)

Troff then complains:

  troff:tmp/usr/share/man/man1/mu-view.1:28: warning: special character '\f' not defined

and renders it as:

  $Iform-feed)

Insert a zero-width space character (U+200B) between the \\ and the f.
This causes the string to be exported as:

   \\​f (\fIform\-feed\fP)

which troff renders correctly.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2023-08-19 12:31:43 +01:00
Jeremy Sowden 0763d5d92b man: correct spelling error in mu.1
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2023-08-19 12:00:22 +01:00
Jeremy Sowden 671a958085 man: fix formatting of some man-page references
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2023-08-19 12:00:21 +01:00
Dirk-Jan C. Binnema fa2ceec4ae man: add performance notes to find/index/server manpages 2023-08-06 16:19:43 +03:00
Dirk-Jan C. Binnema 924bb2145e mu-server: implement temp-file optimization
It can be faster to feed big mu -> mu4e data, such as contacts are
message headers through a temp-file instead directly though stdout;
implement this, and add the server parameter --allow-temp-file.

Implement this the "contacts" and "find" commands.
2023-08-04 00:09:02 +03:00
Dirk-Jan C. Binnema b91272aca2 mu-mkdir manpage: small fix 2023-08-03 19:49:39 +03:00
Dirk-Jan C. Binnema 30b0209f8d mu-info: add 'topic mu' information; improve manpage
Show some more runtime information in the 'mu' topic, and make that the
default. Update manpage.
2023-07-26 19:09:18 +03:00
Dirk-Jan C. Binnema 3337c9babb mu-view: add --format=html
Support showing the HTML body (if any) instead of the default plain-text
body.

Update manpage.
2023-07-23 21:04:26 +03:00
Dirk-Jan C. Binnema b08fe636f3 man: update mu mkdir manpage 2023-07-19 08:48:57 +03:00
Dirk-Jan C. Binnema f3c303106d man: update mu-index manpage 2023-07-18 23:14:25 +03:00
Dirk-Jan C. Binnema 66e113ef2a man: mu-init: document --max-message-size and --batch-size
They were missing.
2023-07-16 13:19:35 +03:00
Dirk-Jan C. Binnema d96e9cc4ba mu-info: improve docs; better colors 2023-07-06 19:13:14 +03:00
Dirk-Jan C. Binnema 9004363aa5 cli: merge 'fields' with 'info' command
Update the 'info' command to handle 'fields' as well; remove
fields.
2023-07-05 20:39:47 +03:00
Dirk-Jan C. Binnema 8fdbe95527 man: small improvements 2023-07-02 11:17:55 +03:00
Dirk-Jan C. Binnema c4b5795328 cli: support --ignored-address for init command
Allow for skipping unwanted addresses (such as 'noreply') from the
contacts cache.
2023-07-02 10:00:40 +03:00
Dirk-Jan C. Binnema fee95e1010 man: update documentation (language detection) 2023-05-11 23:29:05 +03:00
Dirk-Jan C. Binnema 9544473e35 mu extract/view/verify: allow reading message from stdin
Fixes #1463.
2023-04-30 10:35:28 +03:00
Dirk-Jan C. Binnema 0ab2371c5c mu-cfind: re-enable --after option
It was still there, but disabled.

Fixes #2470.
2023-04-08 20:48:46 +03:00
Dirk-Jan C. Binnema ff08731298 mu: add --uncooked option for mu extract
To avoid replacing spaces with dashes

Fixes #2434.
2023-02-23 20:23:25 +02:00
Dirk-Jan C. Binnema 4449ac9d29 man: improve exit code descriptions 2023-01-29 15:38:06 +02:00
Dirk-Jan C. Binnema e21d59e346 mu init: implement --reinit option
Create new mu database from an existing one.
2023-01-29 13:40:40 +02:00
Dirk-Jan C. Binnema dcc1b9dced man: update copyright year 2023-01-01 15:01:26 +02:00
Stephen Eglen 0cd98c80b1
Update mu-init.1.org
Typo: b -> be
2022-12-31 07:40:00 +00:00
Dirk-Jan C. Binnema 5300b7ce82 cfind: rework, add support for json output
Update the old cfind code, and add json output support while doing so.
2022-12-30 15:14:17 +02:00
Dirk-Jan C. Binnema 4b00ea0635 man: update man pages
Explicitly mention PCRE where appropriate.

Include section headers (through MAN_CLASS_OPTIONS)

Fix mu-easy manpage

Make date dynamic
2022-12-30 11:15:03 +02:00
Dirk-Jan C. Binnema a259ae4162 man: generate manpages from .org files
Generate the manpages from org-documents which makes it a bit easier to
keep them update to date since I find org-syntax easier than troff, and
we can use include files.
2022-12-29 10:41:16 +02:00