diff options
| author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2018-02-08 23:10:58 -0500 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2018-03-24 20:08:11 -0300 |
| commit | b6e3efde05ed72fa1b9c017093aaf56d70b533c1 (patch) | |
| tree | 2760adf0bc546aeef42228f1eb6931699003c7de /doc | |
| parent | 0cbe982bfd4516ee441ca5bbdd858616e54cc141 (diff) | |
cli/insert: add --world-readable flag
In some cases (e.g. when building a publicly-visible e-mail archive)
it doesn't make any sense to restrict visibility of the message to the
current user account.
This adds a --world-readable boolean option for "notmuch insert", so
that those who want to archive their mail publicly can feed their
archiver with:
notmuch insert --world-readable
Other local delivery agents (postfix's local, and dovecot's lda) all
default to delivery in mode 0600 rather than relying on the user's
umask, so this fix doesn't change the default.
Also, this does not override the user's umask. if the umask is
already set tight, it will not become looser as the result of passing
--world-readable.
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/man1/notmuch-insert.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/man1/notmuch-insert.rst b/doc/man1/notmuch-insert.rst index 47884515..86e2f567 100644 --- a/doc/man1/notmuch-insert.rst +++ b/doc/man1/notmuch-insert.rst @@ -51,6 +51,12 @@ Supported options for **insert** include ``--no-hooks`` Prevent hooks from being run. +``--world-readable`` + When writing mail to the mailbox, allow it to be read by users + other than the current user. Note that this does not override + umask. By default, delivered mail is only readable by the current + user. + ``--decrypt=(true|nostash|auto|false)`` If ``true`` and the message is encrypted, try to decrypt the message while indexing, stashing any session keys discovered. If |
