Commit graph

6317 commits

Author SHA1 Message Date
Georg Faerber
c117306f2d Fix typos as found by codespell
Signed-off-by: Georg Faerber <georg@riseup.net>
2018-03-24 20:09:54 -03:00
Daniel Kahn Gillmor
f6430bc06d doc: Examples of notmuch-reindex use and crypto policy
Currently, notmuch has the levers needed to set coherent crypto policy
around how cleartext is indexed, which also has an impact on how
messages are rendered.  But we don't have a lot of documentation about
how to do sensible things.  This is an initial attempt to address
that.

The first example shows a way to selectively index specific messages.

The next two examples are about aligning the existing database with
crypto indexing policy

The default crypto policy is to not index cleartext, and to only
decrypt messages on display when explicitly requested.

The other sensible crypto policy is to index cleartext while stashing
session keys. messages indexed in this way will be searchable, and
will be decrypted on display automatically unless the user explicitly
asks for it to *not* be decrypted.

The policy for indexing *new* messages is stored in the database as
the config variable index.decrypt.

But setting policy for new messages doesn't retroactively affect
already indexed messages.

This patch attempts to document ways that someone can efficiently
align their pre-existing database with their new policy.

I'm not sure this is the right place to document these examples, but i
do want them to be user-facing and relatively easy to find.  I'm happy
to entertain suggestions for where else we should put them.
2018-03-24 20:08:27 -03:00
Daniel Kahn Gillmor
b6e3efde05 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>
2018-03-24 20:08:11 -03:00
Matthew Lear
0cbe982bfd Clarify the syntax required when searching using timestamps.
Need to be clearer about specifying time ranges using timestamps.
Legacy syntax which predates the date prefix is still supported, but
timestamps used in conjunction with the date prefix require additional
syntax.
2018-03-24 20:07:20 -03:00
Daniel Kahn Gillmor
a9f1c7c294 debian: drop export-dir from gbp.conf
No one knows why this invocation is here.  it does weird things during
the build.  If a developer really wants this behavior, they can
specify it in their own ~/.gbp.conf

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2018-02-07 06:41:01 -04:00
Antoine Amarilli
cf8c689eab doc: create manpage folders with right permissions
Avoids the issue where umask can make man pages unreadable after
installation. Relevant email on the mailing-list:
<87h8rt30sy.fsf@fifthhorseman.net>
2018-01-31 21:22:04 -04:00
David Bremner
12541fea7f travis: disable gdb based tests
Apparently something broke with gdb on travis.
2018-01-12 20:50:05 -04:00
Daniel Kahn Gillmor
2ed6357407 travis: build against python3-sphinx instead of python-sphinx
Ubuntu trusty has python3-sphinx 1.2.2+dfsg-1ubuntu1, so this should
be OK.
2018-01-12 20:48:46 -04:00
David Bremner
431c41a4f2 INSTALL: fix typo 2018-01-12 20:48:22 -04:00
Daniel Kahn Gillmor
1b9eec0041 INSTALL: refer to python3-sphinx
We're now preferring to build with python3 instead of python2.  Update
the INSTALL to match.

Thanks to Antoine Amarilli <a3nm@a3nm.net> for pointing this out!
2018-01-12 20:47:13 -04:00
David Bremner
a727e7d4d3 notmuch 0.26 release
-----BEGIN PGP SIGNATURE-----
 
 iQGzBAABCAAdFiEE3VS2dnyDRXKVCQCp8gKXHaSnniwFAlpUqBwACgkQ8gKXHaSn
 nixrpAv+NnjUvhw0yWLqkMMP88KW7xY/ecA/4KPa18m/ucfsJRVfEW6hDkhmFogc
 KYeGOYGcABIX72DIOtzI8EnW6vhnf1E5APeBeWNWBeTWAi9+uEP6L/TSdk1PQiNU
 BXUvtMsfCPesLT14+469xt5MEIiZeIFu4//RPgAtQputphe5KYFOOpGlLW0qY05O
 GW0rCMfwIH9sn8Z5oBgaMCsRzoQNPCRDqKeqIa1D9fkjdnUfxgdn9ENYHOdWi3yO
 fFiwwBk6bIvN5zUU78OKl2CgJeAiNrlMUUZMgMYVr82q7CzB4sZ9PNBhj67tb+Rv
 qt2hePqnuYBLzG6/pAn08nEHas+vNofs590KZBvu1gtqAmZTDKhH7lO/p/UHlmwk
 reOX5oOCkxXUxdqlRhmvXF5fer4ZOm069bOhVZULA+yWyDX1BVSmykcvDCxceL3r
 R9JsOTSp0B75Q5OEsQJ1pn5JG1IU9NrFJ3s1vFxRIgkeva1Y5hE3hy1p6uupl3zi
 0hFt2un4
 =OH4T
 -----END PGP SIGNATURE-----

Merge tag '0.26'

notmuch 0.26 release
2018-01-09 07:46:57 -04:00
David Bremner
3c4e64d976 NEWS: Fix markup of headline 2018-01-09 07:28:21 -04:00
David Bremner
eba5537af1 NEWS: set release date 2018-01-09 07:15:45 -04:00
David Bremner
461260c3c6 version: bump to 0.26 2018-01-09 07:15:16 -04:00
David Bremner
50da90ef03 debian: add some hints about upstream changes. 2018-01-09 07:14:28 -04:00
Daniel Kahn Gillmor
f27a8475b5 notes about debian packaging changes 2018-01-09 07:08:43 -04:00
David Bremner
4cb1eeba83 version: bump to 0.26~rc2
Update debian version to follow.
2018-01-06 09:41:39 -04:00
David Bremner
d151b73836 NEWS: don't start headlines with --
This confuses our simple tooling, and it's questionable style anyway.
2018-01-06 09:30:28 -04:00
David Bremner
c5944537c8 NEWS: minimalist notes for Vladimir's changes 2018-01-05 07:58:20 -04:00
David Bremner
4820291bc5 NEWS: minimalist notes for Yuri's changes 2018-01-05 07:58:20 -04:00
David Bremner
42330234df NEWS: minimalist notes for Jani's changes 2018-01-05 07:56:03 -04:00
David Bremner
e4a7a9ff6e NEWS: move test suite news down 2018-01-04 20:46:43 -04:00
Daniel Kahn Gillmor
54982e520c fix typos 2018-01-04 20:35:58 -04:00
David Bremner
0c6ec8c557 Merge branch 'release'
debian updates
2018-01-04 20:26:06 -04:00
Daniel Kahn Gillmor
4a9ed32033 Standards-Version: bump to 4.1.3 (no changes needed) 2018-01-04 19:06:13 -04:00
Daniel Kahn Gillmor
23c0ef2e61 move to debhelper 10 2018-01-04 19:06:03 -04:00
David Bremner
c8fc3d1428 notmuch 0.26~rc1 release
-----BEGIN PGP SIGNATURE-----
 
 iQGzBAABCAAdFiEE3VS2dnyDRXKVCQCp8gKXHaSnniwFAlpK4EkACgkQ8gKXHaSn
 niygiQv/TxmOsXmlxOqBI3pWqhvRjiqE7XlF7ueCBADOxET6cQRfj6CG31vbjAUd
 xNH4SLZR7pKE7K3Dx7jNfqSESgM48Ianlau8ofC2eNpSXegRqX3vTE+9IM64xYpo
 BrdrHJlwOmM2JN/X02mTQFexNgoXZG88Y7WXQOo3ktLxBOna3I1+dS/cEMuHKkGC
 zs80sjqJKixBigI3u9Sg1TMEg/gKj0K3jTRiNtsrR2k3W0ktPmYjMf6l5CKleKx1
 8HGT2VWUip4V3Ih18addQdyxfKPAtvb74SFMu/W6qegTvctr8UIsQhpCzlnzq+37
 UnaTLlmVCWNqMzxt3TUDRq6w4R5MW8wG4iBRuQOYiuzq7vCVV9etRFlWY1KzFbp2
 frtFvq48PyfTupC1B/B6/402V6mooUJXfmu9FP0WxAYawuCsaVVGFXjOwkCeXf6d
 JHuN1Gog4DYPq6y0gakUgFG8sWGouvJVncLHHn26nyDNXnRl5NTGIUrRfce8nXBH
 GV5fHOJ4
 =0A1D
 -----END PGP SIGNATURE-----

Merge tag '0.26_rc1'

notmuch 0.26~rc1 release
2018-01-01 21:50:24 -04:00
David Bremner
1ed211d042 debian: bump date of upload 2018-01-01 21:18:22 -04:00
David Bremner
b75797150b doc: add 2018 to copyright year 2018-01-01 21:17:05 -04:00
Daniel Kahn Gillmor
333187b341 NEWS: document notmuch-properties(7) 2017-12-31 22:34:32 -04:00
Daniel Kahn Gillmor
904d2a8cb0 NEWS: document notmuch_message_remove_all_properties_with_prefix 2017-12-31 22:34:04 -04:00
Daniel Kahn Gillmor
9649f6047f NEWS: notmuch {show, reply} --decrypt takes explicit argument 2017-12-31 22:33:31 -04:00
Daniel Kahn Gillmor
65b96daa35 NEWS: note decrypt_policy in python bindings for index_file 2017-12-31 22:33:16 -04:00
Daniel Kahn Gillmor
8c41578a24 NEWS: transition n_d_add_message to n_d_index_file 2017-12-31 22:32:54 -04:00
Daniel Kahn Gillmor
d09f41a7f4 NEWS: cleartext indexing section includes session keys
These are part and parcel of the same feature, so include the overview
here.
2017-12-31 22:32:19 -04:00
David Bremner
d0dffdae31 doc/{reply, show}: match indentation
This is essentially a conflict resolution Jani's normalization and
Daniel's doc changes, but it's easier to do as a second commit.
2017-12-31 09:34:28 -04:00
David Bremner
99407db25c Merge branch 'release'
Conflicts:
        doc/man1/notmuch-reply.rst
	doc/man1/notmuch-show.rst

Conflicts taken from release (dkg's doc changes)
2017-12-31 09:26:13 -04:00
Jani Nikula
e5e252de55 doc: unify definition list usage across man pages
Make all parameter descriptions etc. use reStructuredText definition
lists with uniform style and indentation. Remove redundant indentation
from around the lists. Remove blank lines between term lines and
definition blocks. Use four spaces for indentation.

This is almost completely whitespace and paragraph reflow changes.
2017-12-31 09:06:11 -04:00
David Bremner
eff029de4a NEWS: Python bindings changes for 0.26
These are my own changes, plus those of Florian Klink and Lucas
Hoffmann. Gaute's change fixed a bug that was never in a released
version, so I left it out.
2017-12-30 16:51:34 -04:00
David Bremner
762617b96c NEWS: CLI changes for 0.26
As with the lib changes, these are based on the commits with me as author.
2017-12-30 16:51:34 -04:00
David Bremner
5eb9086594 NEWS: library changes for 0.26
These are just "my" changes, as arbited by "git shortlog", which
sometimes lies.
2017-12-30 16:51:34 -04:00
David Bremner
c86928bb2c debian: minimalist changelog for 0.26~rc1-1 2017-12-29 16:49:50 -04:00
David Bremner
ae07f6559e version: bump 0.26~rc1 2017-12-29 16:48:42 -04:00
Daniel Kahn Gillmor
af8255fb71 cli/reply: make --decrypt take a keyword
This brings the --decrypt argument to "notmuch reply" into line with
the other --decrypt arguments (in "show", "new", "insert", and
"reindex").  This patch is really just about bringing consistency to
the user interface.

We also use the recommended form in the emacs MUA when replying, and
update test T350 to match.
2017-12-29 16:45:55 -04:00
Daniel Kahn Gillmor
8ea4a99d74 cli/show: make --decrypt take a keyword.
We also expand tab completion for it, update the emacs bindings, and
update T350, T357, and T450 to match.

Make use of the bool-to-keyword backward-compatibility feature.
2017-12-29 16:45:46 -04:00
Daniel Kahn Gillmor
0ada2a05c9 cli: some keyword options can be supplied with no argument
We might change some notmuch command line tools that used to be
booleans into keyword arguments.

In that case, there are some legacy tools that will expect to be able
to do "notmuch foo --bar" instead of "notmuch foo --bar=baz".

This patch makes it possible to support that older API, while
providing a warning and an encouragement to upgrade.
2017-12-29 16:45:35 -04:00
W. Trevor King
07a6214233 NEWS: Add nmbug 0.3 release notes to the notmuch 0.26 section 2017-12-29 16:45:17 -04:00
W. Trevor King
75477003e9 nmbug: Bump to version 0.3
Changes since 0.2:

* Accept failures to unset core.worktree in clone (0a155847,
  2017-10-10, unreleased).
* Use --no-renames in log (f9189a06, 2016-09-26, v0.24).
* Auto-checkout in clone if it wouldn't clobber (7ef3b653, 2017-10-10,
  unreleased).
* Add a 'help' command for folks who don't like --help
  (9d25c97d, 2014-10-03, v0.20).
* Setup a 'config' branch on clone to track origin/config (244f8739,
  2015-03-22, v0.20).  This branch may be consumed by
  notmuch-report(1).
* Only error for invalid diff lines in tags/ (57225988, 2017-10-16,
  unreleased).
* Ignore # comments in 'notmuch dump ...' output (9bbc54bd,
  2016-03-27, v0.22).
* Respect 'expect' in _spawn(..., wait=True) (e263c5b1, 2017-10-10,
  unreleased).
* Update URLs in documentation (554b90b5 and 6a833a6e8, 2016-06-02,
  v0.23).
2017-12-29 16:44:20 -04:00
David Bremner
0fab493ffe notmuch 0.26~rc0 release
-----BEGIN PGP SIGNATURE-----
 
 iQGzBAABCAAdFiEE3VS2dnyDRXKVCQCp8gKXHaSnniwFAlpFDroACgkQ8gKXHaSn
 niyimgv/bKLRin2t+bXnDAGG4fD54shoqFufg8ErspcCjeDSVDkSlTg5tUTMGSA0
 sL7wbEe0YEacchJsbA4lBF3L6yfEIHEx7F1cENIJ1+yNP53h6zctDBithtWk+bxe
 1wjcKzFLLtluzzV+7gemGAodYWlwoRrTNQukmwm46In2Hji/J7ZeS1SRyvXLZnwQ
 8iS8WtZuyNat++6Txx51fJV8wx3wO44vR/L9X+sNQNZAlUQ9pzYTMjf1EU/JYuKd
 9sSau4hU30w433ce0TQx0+17Iu3VgJxZo2XJ9ZhIqKvD86MqSd8pmYS5/R0ThDOr
 Lh+wOVOBkUVKIo49+fR7+hJQWi2Y2kkgGc+gawQ1EvEDt+ZZNzu5bOnPL5GsOegn
 L+imIzEfb+jCIhd456lvESHpEY3SvnSqulXz5kgxN05hNuykx2VZyN1I8Ggo8dLG
 gh3Hz/jkeLuW7Pc3rGoiRTVC5SjkyAPRkmkoKGl3VrPcUEng2ic7krUjR++Ql5Bj
 6qlQekN0
 =1B4G
 -----END PGP SIGNATURE-----

Merge tag '0.26_rc0'

notmuch 0.26~rc0 release
2017-12-28 12:02:40 -04:00
David Bremner
aa35cfda41 debian: update libnotmuch5.symbols for 0.26
Several added symbols, no SONAME bump.
2017-12-28 11:26:41 -04:00