table of contents
- bookworm 1.8.14-1
- bookworm-backports 1.10.8-2~bpo12+1
- testing 1.12.6-1
- unstable 1.12.7-1
MU ADD(1) | General Commands Manual | MU ADD(1) |
NAME¶
muadd - add one or more messages to the database
SYNOPSIS¶
mu [common-options] add [options] <file> [<files>]
DESCRIPTION¶
mu add is the command to add specific message files to the database. Each file must be specified with an absolute path.
ADD OPTIONS¶
--muhome¶
use a non-default directory to store and read the database, write the logs, etc. By default, mu uses the XDG Base Directory Specification (e.g. on GNU/Linux this defaults to ~/.cache/mu and ~/.config/mu). Earlier versions of mu defaulted to ~/.mu, which now requires --muhome=~/.mu.
The environment variable MUHOME can be used as an alternative to --muhome. The latter has precedence.
COMMON OPTIONS¶
-d, --debug¶
makes mu generate extra debug information, useful for debugging the program itself. By default, debug information goes to the log file, ~/.cache/mu/mu.log. It can safely be deleted when mu is not running. When running with --debug option, the log file can grow rather quickly. See the note on logging below.
-q, --quiet¶
causes mu not to output informational messages and progress information to standard output, but only to the log file. Error messages will still be sent to standard error. Note that mu index is much faster with --quiet, so it is recommended you use this option when using mu from scripts etc.
--log-stderr¶
causes mu to not output log messages to standard error, in addition to sending them to the log file.
--nocolor¶
do not use ANSI colors. The environment variable NOCOLOR can be used as an alternative to --nocolor.
-V, --version¶
prints mu version and copyright information.
-h, --help¶
lists the various command line options.
EXIT CODE¶
This command returns 0 upon successful completion, or a non-zero exit code otherwise. Typical values are 2 (no matches found), 11 (database schema mismatch) and 12 (failed to acquire database lock).
no matches found (2)¶
Nothing matching found; try a different query
database schema mismatch (11)¶
You need to re-initialize mu, see mu-init(1)
failed to acquire lock (19)¶
Some other program has exclusive access to the mu (Xapian) database
REPORTING BUGS¶
Please report bugs at https://github.com/djcb/mu/issues.
AUTHOR¶
Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
COPYRIGHT¶
This manpage is part of mu 1.10.8.
Copyright © 2022-2023 Dirk-Jan C. Binnema. License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.