]> git.notmuchmail.org Git - notmuch/blob - NEWS
NEWS: message piping working directory
[notmuch] / NEWS
1 Notmuch 0.18~rc0 (2014-04-22)
2 =============================
3
4 Overview
5 --------
6
7 This new release includes some enhancements to searching for messages
8 by filesystem location (`folder:` and `path:` prefixes under *General*
9 below).  Saved searches in *Emacs* have also been enhanced to allow
10 distinct search orders for each one.  Another enhancement to the
11 *Emacs* interface is that replies to encrypted messages are now
12 encrypted, reducing the risk of unintentional information disclosure.
13 The default dump output format has changed to the more robust
14 `batch-tag` format. The previously deprecated parsing of single
15 message mboxes has been removed. For detailed release notes, see
16 below.
17
18 General
19 -------
20
21 The `folder:` search prefix now requires an exact match
22
23   The `folder:` prefix has been changed to search for email messages
24   by the exact, case sensitive maildir or MH folder name. The new
25   behaviour allows for more accurate mail folder based searches, and
26   should lead to less surprising results than the old behaviour. Users
27   are advised to see the `notmuch-search-terms` manual page for
28   details, and review how the change affects their existing `folder:`
29   searches.
30
31 There is a new `path:` search prefix.
32
33   The new `path:` search prefix complements the `folder:` prefix. The
34   `path:` prefix searches for email messages that are in particular
35   directories within the mail store, optionally recursively using a
36   special syntax. See the `notmuch-search-terms` manual page for
37   details.
38
39 Notmuch database upgrade due to `folder:` and `path:` changes
40
41   The above mentioned changes to the `folder:` prefix and the addition
42   of `path:` prefix require a Notmuch database upgrade. This will be
43   done automatically, without prompting on the next time `notmuch new`
44   is run after the upgrade. The upgrade is not reversible, and the
45   upgraded database will not be readable by older versions of
46   Notmuch. As a safeguard, a database dump will be created in the
47   `.notmuch` directory before upgrading.
48
49 Library changes
50 ---------------
51
52 Notmuch database upgrade
53
54   The libnotmuch consumers are reminded to handle database upgrades
55   properly, either by relying on running `notmuch new`, or checking
56   `notmuch_database_needs_upgrade()` and calling
57   `notmuch_database_upgrade()` as necessary. This has always been the
58   case, but in practise there have been no database upgrades in any
59   released version of Notmuch before now.
60
61 Support for indexing mbox files has been dropped
62
63   There has never been proper support for mbox files containing
64   multiple messages, and the support for single-message mbox files has
65   been deprecated since Notmuch 0.15. The support has now been
66   dropped, and all mbox files will be rejected during indexing.
67
68 Message header parsing changes
69
70   Notmuch previously had an internal parser for message headers. The
71   parser has now been dropped in favour of letting GMime parse both
72   the headers and the message MIME structure at the same pass. This is
73   mostly an internal change, but the GMime parser is stricter in its
74   interpretation of the headers. This may result in messages with
75   slightly malformed message headers being now rejected.
76
77 Command-Line Interface
78 ----------------------
79
80 `notmuch dump` now defaults to `batch-tag` format
81
82   The old format is still available with `--format=sup`.
83
84 `notmuch new` has a --quiet option
85
86   This option suppresses the progress and summary reports.
87
88 `notmuch insert` respects maildir.synchronize_flags config option
89
90   Do not synchronize tags to maildir flags in `notmuch insert` if the
91   user does not want it.
92
93 The commands set consistent exit status codes on failures
94
95   The cli commands now consistently set exit status of 1 on failures,
96   except where explicitly otherwise noted. The notable expections are
97   the status codes for format version mismatches for commands that
98   support formatted output.
99
100 Emacs Interface
101 ---------------
102
103 Init file
104
105   If the file pointed by new variable `notmuch-init-file` (typically
106   `~/.emacs.d/notmuch-config.el`) exists, it is loaded at the end of
107   `notmuch.el`. Users can put their personal notmuch emacs lisp based
108   configuration/customization items there instead of filling
109   `~/.emacs` with these.
110
111 Changed format for saved searches
112
113   The format for `notmuch-saved-searches` has changed, but old style
114   saved searches are still supported. The new style means that a saved
115   search can store the desired sort order for the search, and it can
116   store a separate query to use for generating the count notmuch
117   shows.
118
119   The variable is fully customizable and any configuration done
120   through customize should *just work*, with the additional options
121   mentioned above. For manual customization see the documentation for
122   `notmuch-saved-searches`.
123
124   IMPORTANT: a new style notmuch-saved-searches variable will break
125   previous versions of notmuch-emacs (even search will not work); to
126   fix remove the customization for notmuch-saved-searches.
127
128   If you have a custom saved search sort function (not unsorted or
129   alphabetical) then the sort function will need to be
130   modified. Replacing (car saved-search) by (notmuch-saved-search-get
131   saved-search :name) and (cdr saved-search) by
132   (notmuch-saved-search-get saved-search :query) should be sufficient.
133
134 The keys of `notmuch-tag-formats` are now regexps
135
136   Previously, the keys were literal strings.  Customized settings of
137   `notmuch-tag-formats` will continue to work as before unless tags
138   contain regexp special characters like `.` or `*`.
139
140 Changed tags are now shown in the buffer
141
142   Previously tag changes made in a buffer were shown immediately. In
143   some cases (particularly automatic tag changes like marking read)
144   this made it hard to see what had happened (e.g., whether the
145   message had been unread).
146
147   The changes are now shown explicitly in the buffer: by default
148   deleted tags are displayed with red strike-through and added tags
149   are displayed underlined in green (inverse video is used for deleted
150   tags if the terminal does not support strike-through).
151
152   The variables `notmuch-tag-deleted-formats` and
153   `notmuch-tag-added-formats`, which have the same syntax as
154   `notmuch-tag-formats`, allow this to be customized.
155
156   Setting `notmuch-tag-deleted-formats` to `'((".*" nil))` and
157   `notmuch-tag-added-formats` to `'((".*" tag))` will give the old
158   behavior of hiding deleted tags and showing added tags identically
159   to tags already present.
160
161 Version variable
162
163   The new, build-time generated variable `notmuch-emacs-version` is used
164   to distinguish between notmuch cli and notmuch emacs versions.
165   The function `notmuch-hello-versions` (bound to 'v' in notmuch-hello
166   window) prints both notmuch cli and notmuch emacs versions in case
167   these differ from each other.
168   This is especially useful when using notmuch remotely.
169
170 Ido-completing-read initialization in Emacs 23
171
172   `ido-completing-read` in Emacs 23 versions 1 through 3 freezes unless
173   it is initialized. Defadvice-based *Ido* initialization is defined
174   for these Emacs versions.
175
176 Bug fix for saved searches with newlines in them
177
178   Split lines confuse `notmuch count --batch`, so we remove embedded
179   newlines before calling notmuch count.
180
181 Bug fixes for sender identities
182
183   Previously, Emacs would rewrite some sender identities in unexpected
184   and undesirable ways.  Now it will use identities exactly as
185   configured in `notmuch-identities`.
186
187 Replies to encrypted messages will be encrypted by default
188
189   In the interest of maintaining confidentiality of communications,
190   the Notmuch Emacs interface now automatically adds the mml tag to
191   encrypt replies to encrypted messages. This should make it less
192   likely to accidentally reply to encrypted messages in plain text.
193
194 Reply pushes mark before signature
195
196   We push mark and set point on reply so that the user can easily cut
197   the quoted text. The mark is now pushed before the signature, if
198   any, instead of end of buffer so the signature is preserved.
199
200 Message piping uses the originating buffer's working directory
201
202   `notmuch-show-pipe-message` now uses the originating buffer's
203   current default directory instead of that of the `*notmuch-pipe*`
204   buffer's.
205
206 nmbug
207 -----
208
209 nmbug adds a `clone` command for setting up the initial repository and
210 uses `@{upstream}` instead of `FETCH_HEAD` to track upstream changes.
211
212   The `@{upstream}` change reduces ambiguity when fetching multiple
213   branches, but requires existing users update their `NMBGIT`
214   repository (usually `~/.nmbug`) to distinguish between local and
215   remote-tracking branches.  The easiest way to do this is:
216
217   1. If you have any purely local commits (i.e. they aren't in the
218      nmbug repository on nmbug.tethera.net), push them to a remote
219      repository.  We'll restore them from the backup in step 4.
220   2. Remove your `NMBGIT` repository (e.g. `mv .nmbug .nmbug.bak`).
221   3. Use the new `clone` command to create a fresh clone:
222
223         nmbug clone http://nmbug.tethera.net/git/nmbug-tags.git
224
225   4. If you had local commits in step 1, add a remote for that
226      repository and fetch them into the new repository.
227
228 Notmuch 0.17 (2013-12-30)
229 =========================
230
231 Incompatible change in SHA1 computation
232 ---------------------------------------
233
234 Previously on big endian architectures like sparc and powerpc the
235 computation of SHA1 hashes was incorrect. This meant that messages
236 with overlong or missing message-ids were given different computed
237 message-ids than on more common little endian architectures like i386
238 and amd64.  If you use notmuch on a big endian architecture, you are
239 strongly advised to make a backup of your tags using `notmuch dump`
240 before this upgrade. You can locate the affected files using something
241 like:
242
243     notmuch dump | \
244       awk '/^notmuch-sha1-[0-9a-f]{40} / \
245         {system("notmuch search --exclude=false --output=files id:" $1)}'
246
247 Command-Line Interface
248 ----------------------
249
250 New options to better support handling duplicate messages
251
252   If more than one message file is associated with a message-id,
253   `notmuch search --output=files` will print all of them. A new
254   `--duplicate=N` option can be used to specify which duplicate to
255   print for each message.
256
257   `notmuch count` now supports `--output=files` option to output the
258   number of files associated with matching messages. This may be
259   bigger than the number of matching messages due to duplicates
260   (i.e. multiple files having the same message-id).
261
262 Improved `notmuch new` performance for unchanged folders
263
264   `notmuch new` now skips over unchanged folders more efficiently,
265   which can substantially improve the performance of checking for new
266   mail in some situations (like NFS-mounted Maildirs).
267
268 `notmuch reply --format=text` RFC 2047-encodes headers
269
270   Previously, this used a mix of standard MIME encoding for the reply
271   body and UTF-8 for the headers.  Now, the text format reply template
272   RFC 2047-encodes the headers, making the output a valid RFC 2822
273   message.  The JSON/sexp format is unchanged.
274
275 `notmuch compact` command
276
277   The new `compact` command exposes Xapian's compaction
278   functionality through a more convenient interface than
279   `xapian-compact`. `notmuch compact` will compact the database to a
280   temporary location, optionally backup the original database, and
281   move the compacted database into place.
282
283 Emacs Interface
284 ---------------
285
286 `notmuch-tree` (formerly `notmuch-pick`) has been added to mainline
287
288   `notmuch-tree` is a threaded message view for the emacs
289   interface. Each message is one line in the results and the thread
290   structure is shown using UTF-8 box drawing characters (similar to
291   Mutt's threaded view). It comes between search and show in terms of
292   amount of output and can be useful for viewing both single threads
293   and multiple threads.
294
295   Using `notmuch-tree`
296
297   The main key entries to notmuch tree are
298
299   'z' enter a query to view using notmuch tree (works in hello,
300       search, show and tree mode itself)
301
302   'Z' view the current query in tree notmuch tree (works from search
303       and show)
304
305   Once in tree mode, keybindings are mostly in line with the rest of
306   notmuch and are all viewable with '?' as usual.
307
308   Customising `notmuch-tree`
309
310   `notmuch-tree` has several customisation variables. The most
311   significant is the first notmuch-tree-show-out which determines the
312   behaviour when selecting a message (with RET) in tree view. By
313   default tree view uses a split window showing the single message in
314   the bottom pane. However, if this option is set then it views the
315   whole thread in the complete window jumping to the selected message
316   in the thread. In either case command-prefix selects the other option.
317
318 Tagging threads in search is now race-free
319
320   Previously, adding or removing a tag from a thread in a search
321   buffer would affect messages that had arrived after the search was
322   performed, resulting in, for example, archiving messages that were
323   never seen.  Tagging now affects only the messages that were in the
324   thread when the search was performed.
325
326 `notmuch-hello` refreshes when switching to the buffer
327
328   The hello buffer now refreshes whenever you switch to the buffer,
329   regardless of how you get there.  You can disable automatic
330   refreshing by customizing `notmuch-hello-auto-refresh`.
331
332 Specific mini-buffer prompts for tagging operations
333
334   When entering tags to add or remove, the mini-buffer prompt now
335   indicates what operation will be performed (e.g., "Tag thread", "Tag
336   message", etc).
337
338 Built-in help improvements
339
340   Documentation for many commands has been improved, as displayed by
341   `notmuch-help` (usually bound to "?").  The bindings listed by
342   `notmuch-help` also now include descriptions of prefixed commands.
343
344 Quote replies as they are displayed in show view
345
346   We now render the parts for reply quoting the same way they are
347   rendered for show. At this time, the notable change is that replies
348   to text/calendar are now pretty instead of raw vcalendar.
349
350 Fixed inconsistent use of configured search order
351
352   All ways of interactively invoking search now honor the value of
353   `notmuch-search-oldest-first`.
354
355 Common keymap for notmuch-wide bindings
356
357   Several key bindings have been moved from mode-specific keymaps to
358   the single `notmuch-common-keymap`, which is inherited by each
359   notmuch mode.  If you've customized your key bindings, you may want
360   to move some of them to the common keymap.
361
362 The `notmuch-tag` function now requires a list of tag changes
363
364   For users who have scripted the Emacs interface: the `notmuch-tag`
365   API has changed.  Previously, it accepted either a list of tag
366   changes or a space-separated string of tag changes.  The latter is
367   no longer supported and the function now returns nothing.
368
369 Fixed `notmuch-reply` putting reply in primary selection
370
371   On emacs 24 notmuch-reply used to put the cited text into the
372   primary selection (which could lead to inadvertently pasting this
373   cited text elsewhere). Now the primary-selection is not changed.
374
375 Fixed `notmuch-show` invisible part handling
376
377   In some obscure cases part buttons and invisibility had strange
378   interactions: in particular, the default action for some parts gave
379   the wrong action. This has been fixed.
380
381 Fixed `notmuch-show` attachment viewers and stderr
382
383   In emacs 24.3+ viewing an attachment could cause spurious text to
384   appear in the show buffer (any stderr or stdout the viewer
385   produced). By default this output is now discarded. For debugging,
386   setting `notmuch-show-attachment-debug` causes notmuch to keep the
387   viewer's stderr and stdout in a separate buffer.
388
389 Fixed `notmuch-mua-reply` point placement when signature involved
390
391   By restricting cursor movement to body section for cursor placement
392   after signature is inserted, the cursor cannot "leak" to header
393   section anymore. Now inserted citation content will definitely go to
394   the body part of the message.
395
396 Vim Interface
397 -------------
398
399   It is now possible to compose new messages in the Vim interface, as
400   opposed reply to existing messages.  There is also support for
401   going straight to a search (bypassing the folders view).
402
403 Notmuch 0.16 (2013-08-03)
404 =========================
405
406 Command-Line Interface
407 ----------------------
408
409 Support for delivering messages to Maildir
410
411   There is a new command `insert` that adds a message to a Maildir
412   folder and notmuch index.
413
414 `notmuch count --batch` option
415
416   `notmuch count` now supports batch operations similar to `notmuch
417   tag`. This is mostly an optimization for remote notmuch usage.
418
419 `notmuch tag` option to remove all tags from matching messages
420
421   `notmuch tag --remove-all` option has been added to remove all tags
422   from matching messages. This can be combined with adding new tags,
423   resulting in setting (rather than modifying) the tags of the
424   messages.
425
426 Decrypting commands explicitly expect a gpg-agent
427
428   Decryption in `notmuch show` and `notmuch reply` has only ever
429   worked with a functioning gpg-agent. This is now made explicit in
430   code and documentation. The functional change is that it's now
431   possible to have gpg-agent running, but gpg "use-agent"
432   configuration option disabled, not forcing the user to use the agent
433   everywhere.
434
435 Configuration file saves follow symbolic links
436
437   The notmuch commands that save the configuration file now follow
438   symbolic links instead of overwrite them.
439
440 Top level option to specify configuration file
441
442   It's now possible to specify the configuration file to use on the
443   command line using the `notmuch --config=FILE` option.
444
445 Bash command-line completion
446
447   The notmuch command-line completion support for the bash shell has
448   been rewritten. Supported completions include all the notmuch
449   commands, command-line arguments, values for keyword arguments,
450   search prefixes (such as "subject:" or "from:") in all commands that
451   use search terms, tags after + and - in `notmuch tag`, tags after
452   "tag:" prefix, user's email addresses after "from:" and "to:"
453   prefixes, and config options (and some config option values) in
454   `notmuch config`. The new completion support depends on the
455   bash-completion package.
456
457 Deprecated commands "part" and "search-tags" are removed.
458
459 Emacs Interface
460 ---------------
461
462 New keymap to view/save parts; removed s/v/o/| part button bindings
463
464   The commands to view, save, and open MIME parts are now prefixed
465   with "." (". s" to save, ". v" to view, etc) and can be invoked with
466   point anywhere in a part, unlike the old commands, which were
467   restricted to part buttons.  The old "s"/"v"/"o"/"|" commands on
468   part buttons have been removed since they clashed with other
469   bindings (notably "s" for search!) and could not be invoked when
470   there was no part button.  The new, prefixed bindings appear in
471   show's help, so you no longer have to memorize them.
472
473 Default part save directory is now `mm-default-directory`
474
475   Previously, notmuch offered to save parts and attachments to a mix
476   of `mm-default-directory`, `mailcap-download-directory`, and `~/`.
477   This has been standardized on `mm-default-directory`.
478
479 Key bindings for next/previous thread
480
481   Show view has new key bindings M-n and M-p to move to the next and
482   previous thread in the search results.
483
484 Better handling of errors in search buffers
485
486   Instead of interleaving errors in search result buffers, search mode
487   now reports errors in the minibuffer.
488
489 Faster search and show
490
491   Communication between Emacs and the notmuch CLI is now more
492   efficient because it uses the CLI's S-expression support.  As a
493   result, search mode should now fill search buffers faster and
494   threads should show faster.
495
496 No Emacs 22 support
497
498   The Emacs 22 support added late 2010 was sufficient only for a short
499   period of time. After being incomplete for roughly 2 years the code
500   in question was now removed from this release.
501
502 Vim Front-End
503 -------------
504
505 The vim based front-end has been replaced with a new one that uses the Ruby
506 bindings. The old font-end is available in the contrib subfolder.
507
508 Python Bindings
509 ---------------
510
511 Fix loading of libnotmuch shared library on OS X (Darwin) systems.
512
513 Notmuch 0.15.2 (2013-02-17)
514 ===========================
515
516 Build fixes
517 -----------
518
519 Update dependencies to avoid problems when building in parallel.
520
521 Internal test framework changes
522 -------------------------------
523
524 Adjust Emacs test watchdog mechanism to cope with `process-attributes`
525 being unimplemented.
526
527 Notmuch 0.15.1 (2013-01-24)
528 ===========================
529
530 Internal test framework changes
531 -------------------------------
532
533 Set a default value for TERM when running tests. This fixes certain
534 build failures in non-interactive environments.
535
536 Notmuch 0.15 (2013-01-18)
537 =========================
538
539 General
540 -------
541
542 Date range search support
543
544   The `date:` prefix can now be used in queries to restrict the results
545   to only messages within a particular time range (based on the Date:
546   header) with a range syntax of `date:<since>..<until>`. Notmuch
547   supports a wide variety of expressions in `<since>` and
548   `<until>`. Please refer to the `notmuch-search-terms(7)` manual page
549   for details.
550
551 Empty tag names and tags beginning with "-" are deprecated
552
553   Such tags have been a frequent source of confusion and cause
554   (sometimes unresolvable) conflicts with other syntax.  notmuch tag
555   no longer allows such tags to be added to messages.  Removing such
556   tags continues to be supported to allow cleanup of existing tags,
557   but may be removed in a future release.
558
559 Command-Line Interface
560 ----------------------
561
562 `notmuch new` no longer chokes on mboxes
563
564   `notmuch new` now rejects mbox files containing more than one
565   message, rather than treating the file as one giant message.
566
567 Support for single message mboxes is deprecated
568
569   For historical reasons, `notmuch new` will index mbox files
570   containing a single message; however, this behavior is now
571   officially deprecated.
572
573 Fixed `notmuch new` to skip ignored broken symlinks
574
575   `notmuch new` now correctly skips symlinks if they are in the
576   ignored files list.  Previously, it would abort when encountering
577   broken symlink, even if it was ignored.
578
579 New dump/restore format and tagging interface
580
581   There is a new `batch-tag` format for dump and restore that is more
582   robust, particularly with respect to tags and message-ids containing
583   whitespace.
584
585   `notmuch tag` now supports the ability to read tag operations and
586   queries from an input stream, in a format compatible with the new
587   dump/restore format.
588
589 Bcc and Reply-To headers are now available in notmuch show json output
590
591   The `notmuch show --format=json` now includes "Bcc" and "Reply-To" headers.
592   For example notmuch Emacs client can now have these headers visible
593   when the headers are added to the `notmuch-message-headers` variable.
594
595 CLI callers can now request a specific output format version
596
597   `notmuch` subcommands that support structured output now support a
598   `--format-version` argument for requesting a specific version of the
599   structured output, enabling better compatibility and error handling.
600
601 `notmuch search` has gained a null character separated text output format
602
603   The new --format=text0 output format for `notmuch search` prints
604   output separated by null characters rather than newline
605   characters. This is similar to the find(1) -print0 option, and works
606   together with the xargs(1) -0 option.
607
608 Emacs Interface
609 ---------------
610
611 Removal of the deprecated `notmuch-folders` variable
612
613   `notmuch-folders` has been deprecated since the introduction of saved
614   searches and the notmuch hello view in notmuch 0.3. `notmuch-folders`
615   has now been removed. Any remaining users should migrate to
616   `notmuch-saved-searches`.
617
618 Visibility of MIME parts can be toggled
619
620   Each part of a multi-part MIME email can now be shown or hidden
621   using the button at the top of each part (by pressing RET on it or
622   by clicking).  For emails with multiple alternative formats (e.g.,
623   plain text and HTML), only the preferred format is shown initially,
624   but other formats can be shown using their part buttons.  To control
625   the behavior of this, see
626   `notmuch-multipart/alternative-discouraged` and
627   `notmuch-show-all-multipart/alternative-parts`.
628
629   Note notmuch-show-print-message (bound to '#' by default) will print
630   all parts of multipart/alternative message regardless of whether
631   they are currently hidden or shown in the buffer.
632
633 Emacs now buttonizes mid: links
634
635   mid: links are a standardized way to link to messages by message ID
636   (see RFC 2392).  Emacs now hyperlinks mid: links to the appropriate
637   notmuch search.
638
639 Handle errors from bodypart insertions
640
641   If displaying the text of a message in show mode causes an error (in
642   the `notmuch-show-insert-part-*` functions), notmuch no longer cuts
643   off thread display at the offending message.  The error is now
644   simply displayed in place of the message.
645
646 Emacs now detects version mismatches with the notmuch CLI
647
648   Emacs now detects and reports when the Emacs interface version and
649   the notmuch CLI version are incompatible.
650
651 Improved text/calendar content handling
652
653   Carriage returns in embedded text/calendar content caused insertion
654   of the calendar content fail. Now CRs are removed before calling icalendar
655   to extract icalendar data. In case icalendar extraction fails an error
656   is thrown for the bodypart insertion function to deal with.
657
658 Disabled coding conversions when reading in `with-current-notmuch-show-message`
659
660   Depending on the user's locale, saving attachments containing 8-bit
661   data may have performed an unintentional encoding conversion,
662   corrupting the saved attachment.  This has been fixed by making
663   `with-current-notmuch-show-message` disable coding conversion.
664
665 Fixed errors with HTML email containing images in Emacs 24
666
667   Emacs 24 ships with a new HTML renderer that produces better output,
668   but is slightly buggy.  We work around a bug that caused it to fail
669   for HTML email containing images.
670
671 Fixed handling of tags with unusual characters in them
672
673   Emacs now handles tags containing spaces, quotes, and parenthesis.
674
675 Fixed buttonization of id: links without quote characters
676
677   Emacs now correctly buttonizes id: links where the message ID is not
678   quoted.
679
680 `notmuch-hello` refresh point placement improvements
681
682   Refreshing the `notmuch-hello` buffer does a better job of keeping
683   the point where it was.
684
685 Automatic tag changes are now unified and customizable
686
687   All the automatic tag changes that the Emacs interface makes when
688   reading, archiving, or replying to messages, can now be
689   customized. Any number of tag additions and removals is supported
690   through the `notmuch-show-mark-read`, `notmuch-archive-tags`, and
691   `notmuch-message-replied-tags` customization variables.
692
693 Support for stashing the thread id in show view
694
695   Invoking `notmuch-show-stash-message-id` with a prefix argument
696   stashes the (local and database specific) thread id of the current
697   thread instead of the message id.
698
699 New add-on tool: notmuch-pick
700 -----------------------------
701
702 The new contrib/ tool `notmuch-pick` is an experimental threaded message
703 view for the emacs interface. Each message is one line in the results
704 and the thread structure is shown using UTF-8 box drawing characters
705 (similar to Mutt's threaded view). It comes between search and show in
706 terms of amount of output and can be useful for viewing both single
707 threads and multiple threads. See the notmuch-pick README file for
708 further details and installation.
709
710 Portability
711 -----------
712
713 notmuch now builds on OpenBSD.
714
715 Internal test framework changes
716 -------------------------------
717
718 The emacsclient binary is now user-configurable
719
720   The test framework now accepts `TEST_EMACSCLIENT` in addition to
721   `TEST_EMACS` for configuring the emacsclient to use.  This is
722   necessary to avoid using an old emacsclient with a new emacs, which
723   can result in buggy behavior.
724
725 Notmuch 0.14 (2012-08-20)
726 =========================
727
728 General bug fixes
729 -----------------
730
731 Maildir tag synchronization
732
733   Maildir flag-to-tag synchronization now applies only to messages in
734   maildir-like directory structures.  Previously, it applied to any
735   message that had a maildir "info" part, which meant it could
736   incorrectly synchronize tags for non-maildir messages, while at the
737   same time failing to synchronize tags for newly received maildir
738   messages (typically causing new messages to not receive the "unread"
739   tag).
740
741 Command-Line Interface
742 ----------------------
743
744   The deprecated positional output file argument to `notmuch dump` has
745   been replaced with an `--output` option. The input file positional
746   argument to `notmuch restore` has been replaced with an `--input`
747   option for consistency with dump.  These changes simplify the syntax
748   of dump/restore options and make them more consistent with other
749   notmuch commands.
750
751 Emacs Interface
752 ---------------
753
754 Search results now get re-colored when tags are updated
755
756 The formatting of tags in search results can now be customized
757
758   Previously, attempting to change the format of tags in
759   `notmuch-search-result-format` would usually break tagging from
760   search-mode.  We no longer make assumptions about the format.
761
762 Experimental support for multi-line search result formats
763
764   It is now possible to embed newlines in
765   `notmuch-search-result-format` to make individual search results
766   span multiple lines.
767
768 Next/previous in search and show now move by boundaries
769
770   All "next" and "previous" commands in the search and show modes now
771   move to the next/previous result or message boundary.  This doesn't
772   change the behavior of "next", but "previous" commands will first
773   move to the beginning of the current result or message if point is
774   inside the result or message.
775
776 Search now uses the JSON format internally
777
778   This should address problems with unusual characters in authors and
779   subject lines that could confuse the old text-based search parser.
780
781 The date shown in search results is no longer padded before applying
782 user-specified formatting
783
784   Previously, the date in the search results was padded to fixed width
785   before being formatted with `notmuch-search-result-format`.  It is
786   no longer padded.  The default format has been updated, but if
787   you've customized this variable, you may have to change your date
788   format from `"%s "` to `"%12s "`.
789
790 The thread-id for the `target-thread` argument for `notmuch-search` should
791 now be supplied without the "thread:" prefix.
792
793 Notmuch 0.13.2 (2012-06-02)
794 ===========================
795
796 Bug-fix release
797 ---------------
798
799 Update `contrib/notmuch-deliver` for API changes in 0.13. This fixes a
800 compilation error for this contrib package.
801
802 Notmuch 0.13.1 (2012-05-29)
803 ===========================
804
805 Bug-fix release
806 ---------------
807
808 Fix inserting of UTF-8 characters from *text/plain* parts in reply
809
810   While notmuch gained ability to insert content from other than *text/plain*
811   parts of email whenever *text/plain* parts are not available (notably
812   HTML-only emails), replying to mails that do have *text/plain* the
813   non-ASCII characters were incorrectly decoded. This is now fixed.
814
815 `notmuch_database_get_directory` and
816 `notmuch_database_find_message_by_filename` now work on read-only
817 databases
818
819   Previously, these functions attempted to create directory documents
820   that didn't exist and would return an error or abort when given a
821   read-only database.  Now they no longer create directory documents
822   and simply return a `NULL` object if the directory does not exist,
823   as documented.
824
825 Fix compilation of ruby bindings
826
827   Revert to dynamic linking, since the statically linked bindings did
828   not work well.
829
830 Notmuch 0.13 (2012-05-15)
831 =========================
832
833 Command-Line Interface
834 ----------------------
835
836 JSON reply format
837
838   `notmuch reply` can now produce JSON output that contains the headers
839   for a reply message and full information about the original message
840   begin replied to. This allows MUAs to create replies intelligently.
841   For example, an MUA that can parse HTML might quote HTML parts.
842
843   Calling notmuch reply with `--format=json` imposes the restriction that
844   only a single message is returned by the search, as replying to
845   multiple messages does not have a well-defined behavior. The default
846   retains its current behavior for multiple message replies.
847
848 Tag exclusion
849
850   Tags can be automatically excluded from search results by adding them
851   to the new `search.exclude_tags` option in the Notmuch config file.
852
853   This behaviour can be overridden by explicitly including an excluded
854   tag in your query, for example:
855
856         notmuch search $your_query and tag:$excluded_tag
857
858   Existing users will probably want to run `notmuch setup` again to add
859   the new well-commented [search] section to the configuration file.
860
861   For new configurations, accepting the default setting will cause the
862   tags "deleted" and "spam" to be excluded, equivalent to running:
863
864         notmuch config set search.exclude_tags deleted spam
865
866 Raw show format changes
867
868   The output of show `--format=raw` has changed for multipart and
869   message parts.  Previously, the output was a mash of somewhat-parsed
870   headers and transfer-decoded bodies.  Now, such parts are reproduced
871   faithfully from the original source.  Message parts (which includes
872   part 0) output the full message, including the message headers (but
873   not the transfer headers).  Multipart parts output the part as
874   encoded in the original message, including the part's headers.  Leaf
875   parts, as before, output the part's transfer-decoded body.
876
877 Listing configuration items
878
879   The new `config list` command prints out all configuration items and
880   their values.
881
882 Emacs Interface
883 ---------------
884
885 Changes to tagging interface
886
887   The user-facing tagging functions in the Emacs interface have been
888   normalized across all notmuch modes.  The tagging functions are now
889   notmuch-search-tag in search-mode, and notmuch-show-tag in
890   show-mode.  They accept a string representing a single tag change,
891   or a list of tag changes.  See 'M-x describe-function notmuch-tag'
892   for more information.
893
894   NOTE: This breaks compatibility with old tagging functions, so user
895   may need to update in custom configurations.
896
897 Reply improvement using the JSON format
898
899   Emacs now uses the JSON reply format to create replies. It obeys
900   the customization variables message-citation-line-format and
901   message-citation-line-function when creating the first line of the
902   reply body, and it will quote HTML parts if no text/plain parts are
903   available.
904
905 New add-on tool: notmuch-mutt
906 -----------------------------
907
908 The new contrib/ tool `notmuch-mutt` provides Notmuch integration for
909 the Mutt mail user agent. Using it, Mutt users can perform mail
910 search, thread reconstruction, and mail tagging/untagging without
911 leaving Mutt.  notmuch-mutt, formerly distributed under the name
912 `mutt-notmuch` by Stefano Zacchiroli, will be maintained as a notmuch
913 contrib/ from now on.
914
915 Library changes
916 ---------------
917
918 The API changes detailed below break binary and source compatibility,
919 so libnotmuch has been bumped to version 3.0.0.
920
921 The function `notmuch_database_close` has been split into
922 `notmuch_database_close` and `notmuch_database_destroy`
923
924   This makes it possible for long running programs to close the xapian
925   database and thus release the lock associated with it without
926   destroying the data structures obtained from it.
927
928 `notmuch_database_open`, `notmuch_database_create`, and
929 `notmuch_database_get_directory` now return errors
930
931   The type signatures of these functions have changed so that the
932   functions now return a `notmuch_status_t` and take an out-argument for
933   returning the new database object or directory object.
934
935 Go bindings changes
936 -------------------
937
938 Go 1 compatibility
939
940   The go bindings and the `notmuch-addrlookup` utility are now
941   compatible with go 1.
942
943 Notmuch 0.12 (2012-03-20)
944 =========================
945
946 Command-Line Interface
947 ----------------------
948
949 Reply to sender
950
951   `notmuch reply` has gained the ability to create a reply template
952   for replying just to the sender of the message, in addition to reply
953   to all. The feature is available through the new command line option
954   `--reply-to=(all|sender)`.
955
956 Mail store folder/file ignore
957
958   A new configuration option, `new.ignore`, lets users specify a
959   ;-separated list of file and directory names that will not be
960   searched for messages by `notmuch new`.
961
962   NOTE: *Every* file/directory that goes by one of those names will
963   be ignored, independent of its depth/location in the mail store.
964
965 Unified help and manual pages
966
967   The notmuch help command now runs man for the appropriate page.  If
968   you install notmuch somewhere "unusual", you may need to update
969   MANPATH.
970
971 Manual page for notmuch configuration options
972
973   The notmuch CLI configuration file options are now documented in the
974   notmuch-config(1) manual page in addition to the configuration file
975   itself.
976
977 Emacs Interface
978 ---------------
979
980 Reply to sender
981
982   The Emacs interface has, with the new CLI support, gained the
983   ability to reply to sender in addition to reply to all. In both show
984   and search modes, 'r' has been bound to reply to sender, replacing
985   reply to all, which now has key binding 'R'.
986
987 More flexible and consistent tagging operations
988
989   All tagging operations ('+', '-', '*') now accept multiple tags with
990   '+' or '-' prefix, like '*' operation in notmuch-search view before.
991
992   '*' operation (`notmuch-show-tag-all`) is now available in
993   notmuch-show view.
994
995   `notmuch-show-{add,remove}-tag` functions no longer accept tag
996   argument, `notmuch-show-tag-message` should be used instead.  Custom
997   bindings using these functions should be updated, e.g.:
998
999         (notmuch-show-remove-tag "unread")
1000
1001   should be changed to:
1002
1003         (notmuch-show-tag-message "-unread")
1004
1005 Refreshing the show view ('=' by default) no longer opens or closes messages
1006
1007   To get the old behavior of putting messages back in their initial
1008   opened/closed state, use a prefix argument, e.g., 'C-u ='.
1009
1010 Attachment buttons can be used to view or save attachments.
1011
1012   When the cursor is on an attachment button the key 's' can be used
1013   to save the attachment, the key 'v' to view the attachment in the
1014   default mailcap application, and the key 'o' prompts the user for an
1015   application to use to open the attachment. By default Enter or mouse
1016   button 1 saves the attachment but this is customisable (option
1017   Notmuch Show Part Button Default Action).
1018
1019 New functions
1020
1021   `notmuch-show-stash-mlarchive-link{,-and-go}` allow stashing and
1022   optionally visiting a URI to the current message at one of a number
1023   of Mailing List Archives.
1024
1025 Fix MML tag quoting in replies
1026
1027   The MML tag quoting fix of 0.11.1 unintentionally quoted tags
1028   inserted in `message-setup-hook`. Quoting is now limited to the
1029   cited message.
1030
1031 Show view archiving key binding changes
1032
1033   The show view archiving key bindings 'a' and 'x' now remove the
1034   "inbox" tag from the current message only (instead of thread), and
1035   move to the next message. At the last message, 'a' proceeds to the
1036   next thread in search results, and 'x' returns to search
1037   results. The thread archiving functions are now available in 'A' and
1038   'X'.
1039
1040 Support text/calendar MIME type
1041
1042   The text/calendar MIME type is now supported in addition to
1043   text/x-vcalendar.
1044
1045 Generate inline patch fake attachment file names from message subject
1046
1047   Use the message subject to generate file names for the inline patch
1048   fake attachments. The names are now similar to the ones generated by
1049   'git format-patch' instead of just "inline patch". See "Notmuch Show
1050   Insert Text/Plain Hook" in the notmuch customize interface.
1051
1052 Enable `notmuch-search-line-faces` by default
1053
1054   Make the `notmuch-search-line-faces` functionality more discoverable
1055   for new users by showing "unread" messages bold and "flagged"
1056   messages blue by default in the search view.
1057
1058 Printing Support
1059
1060   notmuch-show mode now has simple printing support, bound to '#' by
1061   default. You can customize the variable notmuch-print-mechanism.
1062
1063 Library changes
1064 ---------------
1065
1066 New functions
1067
1068   `notmuch_query_add_tag_exclude` supports the new tag exclusion
1069   feature.
1070
1071 Python bindings changes
1072 -----------------------
1073
1074 Python 3.2 compatibility
1075
1076   The python bindings are now compatible with both python 2.5+ and 3.2.
1077
1078 Added missing unicode conversions
1079
1080   Python strings have to be encoded to and decoded from utf-8 when
1081   calling libnotmuch functions. Porting the bindings to python 3.2
1082   revealed a few function calls that were missing these conversions.
1083
1084 Build fixes
1085 -----------
1086
1087 Compatibility with GMime 2.6
1088
1089   It is now possible to build notmuch against both GMime 2.4 and 2.6.
1090   However, a bug in GMime 2.6 before 2.6.5 causes notmuch not to
1091   report signatures where the signer key is unavailable (GNOME bug
1092   668085).  For compatibility with GMime 2.4's tolerance of "From "
1093   headers we require GMime 2.6 >= 2.6.7.
1094
1095 Notmuch 0.11.1 (2012-02-03)
1096 ===========================
1097
1098 Bug-fix release
1099 ---------------
1100
1101 Fix error handling in python bindings
1102
1103   The python bindings in 0.11 failed to detect NULL pointers being
1104   returned from libnotmuch functions and thus failed to raise
1105   exceptions to indicate the error condition. Any subsequent calls
1106   into libnotmuch caused segmentation faults.
1107
1108 Quote MML tags in replies
1109
1110   MML tags are text codes that Emacs uses to indicate attachments
1111   (among other things) in messages being composed.  The Emacs
1112   interface did not quote MML tags in the quoted text of a reply.
1113   User could be tricked into replying to a maliciously formatted
1114   message and not editing out the MML tags from the quoted text.  This
1115   could lead to files from the user's machine being attached to the
1116   outgoing message.  The Emacs interface now quotes these tags in
1117   reply text, so that they do not effect outgoing messages.
1118
1119 Notmuch 0.11 (2012-01-13)
1120 =========================
1121
1122 Command-Line Interface
1123 ----------------------
1124
1125 Hooks
1126
1127   Hooks have been introduced to notmuch. Hooks are scripts that notmuch
1128   invokes before and after certain actions. Initially, `notmuch new`
1129   supports `pre-new` and `post-new` hooks that are run before and after
1130   importing new messages into the database.
1131
1132 `notmuch reply --decrypt bugfix`
1133
1134   The `notmuch reply` command with `--decrypt` argument had a rarely
1135   occurring bug that caused an encrypted message not to be decrypted
1136   sometimes. This is now fixed.
1137
1138 Performance
1139 -----------
1140
1141 Automatic tag query optimization
1142
1143   `notmuch tag` now automatically optimizes the user's query to
1144   exclude messages whose tags won't change.  In the past, we've
1145   suggested that people do this by hand; this is no longer necessary.
1146
1147 Don't sort messages when creating a dump file
1148
1149   This speeds up tag dumps considerably, without any loss of
1150   information. To replicate the old behavior of sorted output (for
1151   example to compare two dump files), one can use e.g. `sort(1)`.
1152
1153 Memory Management
1154 -----------------
1155
1156 Reduction of memory leaks
1157
1158   Two memory leaks when searching and showing messages were identified
1159   and fixed in this release.
1160
1161 Emacs Interface
1162 ---------------
1163
1164 Bug fixes
1165
1166   notmuch-show-advance (bound to the spacebar in notmuch-show-mode) had
1167   a bug that caused it to always jump to the next message, even if it
1168   should have scrolled down to show more of the current message instead.
1169   This is now fixed.
1170
1171 Support `notmuch new` as a notmuch-poll-script
1172
1173   It's now possible to use `notmuch new` as a notmuch-poll-script
1174   directly. This is also the new default. This allows taking better
1175   advantage of the `notmuch new` hooks from emacs without intermediate
1176   scripts.
1177
1178 Improvements in saved search management
1179
1180   New saved searches are now appended to the list of saved searches,
1181   not inserted in front. It's also possible to define a sort function
1182   for displaying saved searches; alphabetical sort is provided.
1183
1184 Hooks for notmuch-hello
1185
1186   Two new hooks have been added: "notmuch-hello-mode-hook" (called after
1187   entering notmuch-hello-mode) and "notmuch-hello-refresh-hook" (called
1188   after updating a notmuch-hello buffer).
1189
1190 New face for crypto parts headers
1191
1192   Crypto parts used to be displayed with a hardcoded color. A new face
1193   has been introduced to fix this: notmuch-crypto-part-header. It
1194   defaults to the same value as before, but can be customized to match
1195   other color themes.
1196
1197 Use space as default thousands separator
1198
1199   Large numbers in notmuch-hello are now displayed using a space as
1200   thousands separator (e.g. "123 456" instead of "123,456"). This can be
1201   changed by customizing "notmuch-hello-thousands-separator".
1202
1203 Call notmuch-show instead of notmuch-search when clicking on
1204 buttonized id: links
1205
1206 New function notmuch-show-advance
1207
1208   This new function advances through just the current thread, and is
1209   less invasive than notmuch-show-advance-and-archive.  It can easily
1210   be bound to SPC with:
1211
1212         (define-key notmuch-show-mode-map " " 'notmuch-show-advance)
1213
1214 Various performance improvements
1215
1216 New add-on tool
1217 ---------------
1218
1219 The tool `contrib/notmuch-deliver` helps with initial delivery and
1220 tagging of mail (replacing running `notmuch new`).
1221
1222
1223 Notmuch 0.10.2 (2011-12-04)
1224 ===========================
1225
1226 Bug-fix release
1227 ---------------
1228
1229 Fix crash in python bindings
1230
1231   The python bindings did not call `g_type_init`, which caused crashes
1232   for some, but not all users.
1233
1234 Notmuch 0.10.1 (2011-11-25)
1235 ===========================
1236
1237 Bug-fix release
1238 ---------------
1239
1240 Fix `--help` argument
1241
1242   Argument processing changes in 0.10 introduced a bug where
1243   `notmuch --help` crashed while `notmuch help` worked fine.
1244   This is fixed in 0.10.1.
1245
1246 Notmuch 0.10 (2011-11-23)
1247 =========================
1248
1249 New build and testing features
1250 ------------------------------
1251
1252 Emacs tests are now done in `dtach`. This means that dtach is now
1253 needed to run the notmuch test suite, at least until the checking for
1254 prerequisites is improved.
1255
1256 Full test coverage of the stashing feature in Emacs.
1257
1258 New command-line features
1259 -------------------------
1260
1261 Add `notmuch restore --accumulate` option
1262
1263   The `--accumulate` switch causes the union of the existing and new tags to
1264   be applied, instead of replacing each message's tags as they are read in
1265   from the dump file.
1266
1267 Add search terms to `notmuch dump`
1268
1269   The dump command now takes an optional search term much like notmuch
1270   search/show/tag. The output file argument of dump is deprecated in
1271   favour of using stdout.
1272
1273 Add `notmuch search` `--offset` and `--limit` options
1274
1275   The search command now takes options `--offset=[-]N` and `--limit=N` to
1276   limit the number of results shown.
1277
1278 Add `notmuch count --output` option
1279
1280   The count command is now capable of counting threads in addition to
1281   messages. This is selected using the new `--output=(threads|messages)`
1282   option.
1283
1284 New emacs UI features
1285 ---------------------
1286
1287 Add tab-completion for `notmuch-search` and `notmuch-search-filter`
1288
1289   These functions now support completion tags for query parts
1290   starting with "tag:".
1291
1292 Turn "id:MSG-ID" links into buttons associated with notmuch searches
1293
1294   Text of the form "id:MSG-ID" in mails is now a clickable button that
1295   opens a notmuch search for the given message id.
1296
1297 Add keybinding ('c I') for stashing Message-ID's without an id: prefix
1298
1299   Reduces manual labour when stashing them for use outside notmuch.
1300
1301 Do not query on `notmuch-search` exit
1302
1303   It is harmless to kill the external notmuch process, so the user
1304   is no longer interrogated when they interrupt a search.
1305
1306 Performance
1307 -----------
1308
1309 Emacs now constructs large search buffers more efficiently
1310
1311 Search avoids opening and parsing message files
1312
1313   We now store more information in the database so search no longer
1314   has to open every message file to get basic headers.  This can
1315   improve search speed by as much as 10X, but taking advantage of this
1316   requires a database rebuild:
1317
1318         notmuch dump > notmuch.dump
1319         # Backup, then remove notmuch database ($MAIL/.notmuch)
1320         notmuch new
1321         notmuch restore notmuch.dump
1322
1323 New collection of add-on tools
1324 ------------------------------
1325
1326 The source directory "contrib" contains tools built on notmuch.  These
1327 tools are not part of notmuch, and you should check their individual
1328 licenses.  Feel free to report problems with them to the notmuch
1329 mailing list.
1330
1331 nmbug - share tags with a given prefix
1332
1333   nmbug helps maintain a git repo containing all tags with a given
1334   prefix (by default "notmuch::"). Tags can be shared by commiting
1335   them to git in one location and restoring in another.
1336
1337 Notmuch 0.9 (2011-10-01)
1338 ========================
1339
1340 New, general features
1341 ---------------------
1342
1343 Correct handling of interruptions during `notmuch new`
1344
1345   `notmuch new` now operates as a series of small, self-consistent
1346   transactions, so it can correctly resume after an interruption or
1347   crash.  Previously, interruption could lose existing tags, fail to
1348   detect messages on resume, or leave the database in a state
1349   temporarily or permanently inconsistent with the mail store.
1350
1351 Library changes
1352 ---------------
1353
1354 New functions
1355
1356   `notmuch_database_begin_atomic` and `notmuch_database_end_atomic`
1357   allow multiple database operations to be performed atomically.
1358
1359   `notmuch_database_find_message_by_filename` does exactly what it says.
1360
1361 API changes
1362
1363   `notmuch_database_find_message` (and `n_d_f_m_by_filename`) now return
1364   a status indicator and uses an output parameter for the
1365   message. This change required changing the SONAME of libnotmuch to
1366   libnotmuch.so.2
1367
1368 Python bindings changes
1369 -----------------------
1370
1371   - Re-encode python unicode objects to utf-8 before passing back to
1372     libnotmuch.
1373   - Support `Database().begin_atomic()/end_atomic()`
1374   - Support `Database().find_message_by_filename()`
1375     NB! This needs a db opened in READ-WRITE mode currently, or it will crash
1376     the python process. The is a limitation (=bug) of the underlying libnotmuch.
1377   - Fixes where we would not throw NotmuchErrors when we should (Justus Winter)
1378   - Update for `n_d_find_message*` API changes (see above).
1379
1380 Ruby bindings changes
1381 ---------------------
1382
1383   - Wrap new library functions `notmuch_database_{begin,end}_atomic.`
1384   - Add new exception `Notmuch::UnbalancedAtomicError.`
1385   - Rename destroy to destroy! according to Ruby naming conventions.
1386   - Update for `n_d_find_message*` API changes (see above).
1387
1388 Emacs improvements
1389 ------------------
1390
1391   * Add gpg callback to crypto sigstatus buttons to retrieve/refresh
1392     signing key.
1393   * Add `notmuch-show-refresh-view` function (and corresponding binding)
1394     to refresh the view of a notmuch-show buffer.
1395
1396 Reply formatting cleanup
1397 ------------------------
1398
1399   `notmuch reply` no longer includes notification that non-leafnode
1400   MIME parts are being suppressed.
1401
1402 Notmuch 0.8 (2011-09-10)
1403 ========================
1404
1405 Improved handling of message/rfc822 parts
1406
1407   Both in the CLI and the emacs interface.  Output of rfc822 parts now
1408   includes the primary headers, as well as the body and all subparts.
1409   Output of the completely raw rfc822-formatted message, including all
1410   headers, is unfortunately not yet supported (but hopefully will be
1411   soon).
1412
1413 Improved Build system portability
1414
1415   Certain parts of the shell script generating notmuch.sym were
1416   specific to the GNU versions of sed and nm. The new version should
1417   be more portable to e.g. OpenBSD.
1418
1419 Documentation update for Ruby bindings
1420
1421   Added documentation, typo fixes, and improved support for rdoc.
1422
1423 Unicode, iterator, PEP8 changes for python bindings
1424
1425   - PEP8 (code formatting) changes for python files.
1426   - Remove `Tags.__len__` ; see 0.6 release notes for motivation.
1427   - Decode headers as UTF8, encode (unicode) database paths as UTF8.
1428
1429 Notmuch 0.7 (2011-08-01)
1430 ========================
1431
1432 Vim interface improvements
1433 --------------------------
1434
1435 Jason Woofenden provided a number of bug fixes for the Vim interface
1436
1437   * fix citation/signature fold lengths
1438   * fix cig/cit parsing within multipart/*
1439   * fix on-screen instructions for show-signature
1440   * fix from list reformatting in search view
1441   * fix space key: now archives (did opposite)
1442
1443 Uwe Kleine-König contributed
1444
1445   * use full path for sendmail/doc fix
1446   * fix compose temp file name
1447
1448 Python Bindings changes
1449 -----------------------
1450
1451 Sebastian Spaeth contributed two changes related to unicode and UTF8:
1452
1453   * message tags are now explicitly unicode
1454   * query string is encoded as a UTF8 byte string
1455
1456 Build-System improvements
1457 -------------------------
1458
1459 Generate notmuch.sym after the relevant object files
1460
1461   This fixes a bug in parallel building. Thanks to Thomas Jost for the
1462   patch.
1463
1464 Notmuch 0.6.1 (2011-07-17)
1465 ==========================
1466
1467 Bug-fix release
1468 ---------------
1469
1470 Re-export Xapian exception typeinfo symbols
1471
1472   It turned out our aggressive symbol hiding caused problems for
1473   people running gcc 4.4.5.
1474
1475 Notmuch 0.6 (2011-07-01)
1476 =======================
1477
1478 New, general features
1479 ---------------------
1480
1481 Folder-based searching
1482
1483   Notmuch queries can now include a search term to match the
1484   directories in which mail files are stored (within the mail
1485   storage). The syntax is as follows:
1486
1487         folder:<path>
1488
1489   For example, one might use things such as:
1490
1491         folder:spam
1492         folder:2011-*
1493         folder:work/todo
1494
1495   to match any path containing a directory "spam", "work/todo", or
1496   containing a directory starting with "2011-", respectively.
1497
1498   This feature is particularly useful for users of delivery-agent
1499   software (such as procmail or maildrop) that is filtering mail and
1500   delivering it to particular folders, or users of systems such as
1501   Gmail that use filesystem directories to indicate message tags.
1502
1503   NOTE: Only messages that are newly indexed with this version of
1504   notmuch will be searchable with folder: terms. In order to enable
1505   this feature for all mail, the entire notmuch index will need to be
1506   rebuilt as follows:
1507
1508         notmuch dump > notmuch.dump
1509         # Backup, then remove notmuch database ($MAIL/.notmuch)
1510         notmuch new
1511         notmuch restore notmuch.dump
1512
1513 Support for PGP/MIME
1514
1515   Both the command-line interface and the emacs-interface have new
1516   support for PGP/MIME, detailed below. Thanks to Daniel Kahn Gillmor
1517   and Jameson Graef Rollins for making this happen.
1518
1519 New, automatic tags: "signed" and "encrypted"
1520
1521   These tags will automatically be applied to messages containing
1522   multipart/signed and multipart/encrypted parts.
1523
1524   NOTE: Only messages that are newly indexed with this version of
1525   notmuch will receive these tags.
1526
1527 New command-line features
1528 -------------------------
1529
1530 Add new "notmuch show --verify" option for signature verification
1531
1532   This option instruct notmuch to verify the signature of
1533   PGP/MIME-signed parts.
1534
1535 Add new "notmuch show --decrypt" and "notmuch reply --decrypt" options
1536
1537   This option instructs notmuch to decrypt PGP/MIME-encrypted parts.
1538   Note that this feature currently requires gpg-agent and a passphrase entry
1539   tool (e.g. pinentry-gtk or pinentry-curses).
1540
1541 Proper nesting of multipart parts in "notmuch show" output
1542
1543   MIME parts are now display with proper nesting to reflect original
1544   MIME hierarchy of a message. This allows clients to correctly
1545   analyze the MIME structure, (such as, for example, determining to
1546   which parts a signature part applies).
1547
1548 Add new "notmuch show --part" option
1549
1550   This is a replacement for the older "notmuch part" command, (which
1551   is now deprecated—it should still work as always, but is no longer
1552   documented). Putting part output under "notmuch show" allows for all
1553   of the "notmuch show" options to be applied when extracting a single
1554   part, (such as --format=json for extracting a message part with JSON
1555   formatting).
1556
1557 Deprecate "notmuch search-tags" (in favor of "notmuch search --output=tags *")
1558
1559   The "notmuch search-tags" sub-command has been redundant since the
1560   addition of the --output=tags option to "notmuch search". We now
1561   make that more clear by deprecating "notmuch search-tags", (dropping
1562   it from the documentation). We do continue to support the old syntax
1563   by translating it internally to the new call.
1564
1565 Performance improvements
1566 ------------------------
1567
1568 Faster searches (by doing fewer searches to construct threads)
1569
1570   Whenever a user asks for search results as threads, notmuch first
1571   performs a search for messages matching the query, then performs
1572   additional searches to find other messages in the resulting threads.
1573
1574   Removing inefficiencies and redundancies in these secondary searches
1575   results in a measured speedups of 1.5x for a typical search.
1576
1577 Faster searches (by doing fewer passes to gather message data)
1578
1579   Optimizing Xapian data access patterns (using a single pass to get
1580   all message-document data rather than a pass for each data type)
1581   results in a measured speedup of 1.7x for a typical search.
1582
1583   The benefits of this optimization combine with the preceding
1584   optimization. With both in place, Austin Clements measured a speedup
1585   of 2.5x for a search of all messages in his inbox (was 4.5s, now
1586   1.8s). Thanks, Austin!
1587
1588 Faster initial indexing
1589
1590   More efficient indexing of new messages results in a measured
1591   speedup of 1.4x for the initial indexing of 3 GB of mail (1h 14m
1592   rather than 1h 46m). Thanks to Austin Clements and Michal Sojka.
1593
1594 Make "notmuch new" faster for unchanged directories
1595
1596   Optimizing to not do any further examinations of sub-directories
1597   when the filesystem indicates that a directory is unchanged from the
1598   last "notmuch new" results in measured speedups of 8.5 for the "No
1599   new mail" case, (was 0.77s, now 0.09s). Thanks to Karel Zak.
1600
1601 New emacs-interface features
1602 ----------------------------
1603
1604 Support for PGP/MIME (GnuPG)
1605
1606   Automatically indicate validity of signatures for multipart/signed
1607   messages.  Automatically display decrypted content for
1608   multipart/encrypted messages.  See the emacs variable
1609   notmuch-crypto-process-mime for more information. Note that this
1610   needs gpg-agent and a pinentry tool just as the command-line tools.
1611   Also note there is no support SMIME yet.
1612
1613 Output of pipe command is now displayed if pipe command fails
1614
1615   This is extremely useful in the common use case of piping a patch to
1616   "git am". If git fails to cleanly merge the patch the error messages
1617   from the failed merge are now clearly displayed to the user, (where
1618   previously they were silently hidden from the user).
1619
1620 User-selectable From address
1621
1622   A user can choose which configured email addresses should be used as
1623   the From address whenever composing a new message. To do so, simply
1624   press C-u before the command which will open a new message. Emacs
1625   will prompt for the from address to use.
1626
1627   The user can customize the "Notmuch Identities" setting in the
1628   notmuch customize group in order to use addresses other than those in
1629   the notmuch configuration file if desired.
1630
1631   The user can also choose to always be prompted for the from address
1632   when composing a new message (without having to use C-u) by setting
1633   the "Notmuch Always Prompt For Sender" option in the notmuch
1634   customize group.
1635
1636 Hiding of repeated subjects in collapsed thread view
1637
1638   In notmuch-show mode, if a collapsed message has the same subject as
1639   its parent, the subject is not shown.
1640
1641 Automatic detection and hiding of original message in top-posted message
1642
1643   When a message contains a line looking something like:
1644
1645         ----- Original Message -----
1646
1647   emacs hides this and all subsequent lines as an "original message",
1648   (allowing the user to click or press enter on the "original message"
1649   button to display it again). This makes the handling of top-posted
1650   citations work much like conventional citations.
1651
1652 New hooks for running code when tags are modified
1653
1654   Some users want to perform additional actions whenever a particular
1655   tag is added/removed from a message. This could be used to, for
1656   example, interface with some external spam-recognition training
1657   tool. To facilitate this, two new hooks are added which can be
1658   modified in the following settings of the notmuch customize group:
1659
1660         Notmuch Before Tag Hook
1661         Notmuch After Tag Hook
1662
1663 New optional support for hiding some multipart/alternative parts
1664
1665   Many emails are sent with redundant content within a
1666   multipart/alternative group (such as a text/plain part as well as a
1667   text/html part). Users can configure the setting:
1668
1669         Notmuch Show All Multipart/Alternative Parts
1670
1671   to "off" in the notmuch customize group to have the interface
1672   automatically hide some part alternatives (such as text/html
1673   parts). This new part hiding is not configured by default yet
1674   because there's not yet a simple way to re-display such a hidden
1675   part if it is not actually redundant with a displayed part.
1676
1677 Better rendering of text/x-vcalendar parts
1678
1679   These parts are now displayed in a format suitable for use with the
1680   emacs diary.
1681
1682 Avoid getting confused by Subject and Author fields with newline characters
1683
1684   Replacing all characters with ASCII code less than 32 with a question mark.
1685
1686 Cleaner display of From line in email messages
1687
1688   Remove double quotes, and drop "name" if it's actually just a repeat of
1689   the email address.
1690
1691 Vim interface improvements
1692 --------------------------
1693
1694 Felipe Contreras provided a number of updates for the vim interface:
1695
1696   * Using sendmail directly rather than mailx,
1697   * Implementing archive in show view
1698   * Add support to mark as read in show and search views
1699   * Add delete commands
1700   * Various cleanups.
1701
1702 Bindings improvements
1703 ---------------------
1704
1705 Ruby bindings are now much more complete
1706
1707   Including `QUERY.sort`, `QUERY.to_s`, `MESSAGE.maildir_flags_to_tags`,
1708   `MESSAGE.tags_to_maildir_flags`, and `MESSAGE.get_filenames`
1709
1710 Python bindings have been updated and extended
1711
1712   (docs online at http://packages.python.org/notmuch/)
1713
1714   New bindings:
1715
1716   - `Message().get_filenames()`, `Message().tags_to_maildir_flags()`,
1717     `Message().maildir_flags_to_tags()`, `list(Threads())` and
1718     `list(Messages)` works now
1719   - `Message().__cmp__()` and `__hash__()`
1720
1721   These allow, for example:
1722
1723         if msg1 == msg2: ...
1724
1725   As well as set arithmetic on `Messages()`:
1726
1727         s1, s2 = set(msgs1), set(msgs2)
1728         s1.union(s2)
1729         s2 -= s1
1730
1731   Removed:
1732
1733   - `len(Messages())` as it exhausted the iterator
1734
1735   Use `len(list(Messages()))` or `Query.count_messages()`
1736   to get the length.
1737
1738 Added initial Go bindings in bindings/go
1739
1740 New build-system features
1741 -------------------------
1742
1743 Added support for building in a directory other than the source directory
1744
1745   This can be used with the widely-supported idiom of simply running
1746   the configure script from some other directory:
1747
1748         mkdir build
1749         cd build
1750         ../configure
1751         make
1752
1753 Fix to save configure options for future, implicit runs of configure
1754
1755   When a user updates the source (such as with "git pull") calling
1756   "make" may cause an automatic re-run of the configure script. When
1757   this happens, the configure script will automatically be called with
1758   the same options the user originally passed in the most-recent
1759   manual invocation of configure.
1760
1761 New test-suite feature
1762 ----------------------
1763
1764 Binary for bash for running test suite now located via PATH
1765
1766   The notmuch test suite requires a fairly recent version of bash (>=
1767   bash 4). As some systems supply an older version of bash at
1768   /bin/bash, the test suite is now updated to search $PATH to locate
1769   the bash binary. This allows users of systems with old /bin/bash to
1770   simply install bash >= 4 somewhere on $PATH before /bin and then use
1771   the test suite.
1772
1773 Support for testing output with a trailing newline
1774
1775   Previously, some tests would fail to notice a difference in the
1776   presence/absence of a trailing newline in a program output, (which
1777   has led to bugs in the past). Now, carefully-written tests (using
1778   `test_expect_equal_file` rather than `test_expect_equal`) will detect
1779   any change in the presence/absence of a trailing newline. Many tests
1780   are updated to take advantage of this.
1781
1782 Avoiding accessing user's $HOME while running test suite
1783
1784   The test suite now carefully creates its own HOME directory. This
1785   allows the test suite to be run with no existing HOME directory, (as
1786   some build systems apparently do), and avoids test-suite differences
1787   due to configuration files in the users HOME directory.
1788
1789
1790 General bug fixes
1791 -----------------
1792
1793 Output *all* files for "notmuch search --output=files"
1794
1795   For the cases where multiple files have the same Message ID,
1796   previous versions of notmuch would output only one such file. This
1797   command is now fixed to correctly output all files.
1798
1799 Fixed spurious search results from "overlapped" indexing of addresses
1800
1801   This fixed a bug where a search for:
1802
1803         to:user@elsewhere.com
1804
1805   would incorrectly match a message sent:
1806
1807         To: user@example,com, someone@elsewhere.com
1808
1809 Fix --output=json when search has no results
1810
1811   A bug present since notmuch 0.4 had caused searches with no results
1812   to produce an invalid json object. This is now fixed to cleanly
1813   return a valid json object representing an empty array "[]" as
1814   expected.
1815
1816 Fix the automatic detection of the From address for "notmuch reply"
1817 from the Received headers in some cases
1818
1819 Fix core dump on DragonFlyBSD due to -1 return value from
1820 `sysconf(_SC_GETPW_R_SIZE_MAX)`
1821
1822 Cleaned up several memory leaks
1823
1824 Eliminated a few, rare segmentation faults and a double-free
1825
1826 Fix libnotmuch library to only export notmuch API functions
1827
1828   Previous release of the notmuch library also exported some Xapian
1829   C++ exception type symbols. These were never part of the library
1830   interface and were never intended to be exported.
1831
1832 Emacs-interface bug fixes
1833 -------------------------
1834
1835 Display any unexpected output or errors from "notmuch search" invocations
1836
1837   Previously any misformatted output or trailing error messages were
1838   silently ignored. This output is now clearly displayed. This fix was
1839   very helpful in identifying and fixing the bug described below.
1840
1841 Fix bug where some threads would be missing from large search results
1842
1843   When a search returned a "large" number of results, the emacs
1844   interface was incorrectly dropping one thread every time the output
1845   of the "notmuch search" process spanned the emacs read-buffer. This
1846   is now fixed.
1847
1848 Avoid re-compression of .gz files (and similar) when saving attachment
1849
1850   Emacs was being too clever for its own good and trying to
1851   re-compress pre-compressed .gz files when saving such attachments
1852   (potentially corrupting the attachment). The emacs interface is
1853   fixed to avoid this bug.
1854
1855 Fix hiding of a message when a previously-hidden citation is visible
1856
1857   Previously the citation would remain visible in this case. This is
1858   fixed so that hiding a message hides all parts.
1859
1860 Notmuch 0.5 (2010-11-11)
1861 ========================
1862
1863 New, general features
1864 ---------------------
1865
1866 Maildir-flag synchronization
1867
1868   Notmuch now knows how to synchronize flags in maildir filenames with
1869   tags in the notmuch database. The following flag/tag mappings are
1870   supported:
1871
1872         Flag <-> Tag
1873         ----     -----
1874         'D'      draft
1875         'F'      flagged
1876         'P'      passed
1877         'R'      replied
1878         'S'      unread (added when 'S' flag is not present)
1879
1880   The synchronization occurs in both directions, (for example, adding
1881   the 'S' flag to a file will cause the "unread" tag to be added, and
1882   adding the "replied" tag to a message will cause the file to be
1883   renamed with an 'R' flag).
1884
1885   This synchronization is enabled by default for users of the
1886   command-line interface, (though only files in directories named
1887   "cur" or "new" will be renamed). It can be disabled by setting the
1888   new `maildir.synchronize_flags` option in the configuration file. For
1889   example:
1890
1891         notmuch config set maildir.synchronize_flags false
1892
1893   Users upgrading may also want to run "notmuch setup" once (just
1894   accept the existing configuration) to get a new, nicely-commented
1895   [maildir] section added to the configuration file.
1896
1897   For users of the notmuch library, the new synchronization
1898   functionality is available with the following two new functions:
1899
1900         notmuch_message_maildir_flags_to_tags
1901         notmuch_message_tags_to_maildir_flags
1902
1903   It is anticipated that future improvements to this support will
1904   allow for safe synchronization of the 'T' flag with the "deleted"
1905   tag, as well as support for custom flag/tag mappings.
1906
1907 New library features
1908 --------------------
1909
1910 Support for querying multiple filenames for a single message
1911
1912   It is common for the mailstore to contain multiple files with the
1913   same message ID. Previously, notmuch would always hide these
1914   duplicate files, (returning a single, arbitrary filename with
1915   `notmuch_message_get_filename`).
1916
1917   With this release, library users can access all filenames for a
1918   message with the new function:
1919
1920         notmuch_message_get_filenames
1921
1922   Together with `notmuch_filenames_valid`, `notmuch_filenames_get`,
1923   and `notmuch_filenames_move_to_next` it is now possible to iterate
1924   over all available filenames for a given message.
1925
1926 New command-line features
1927 -------------------------
1928
1929 New "notmuch show --format=raw" for getting at original email contents
1930
1931   This new feature allows for a fully-functional email client to be
1932   built on top of the notmuch command-line without needing any direct
1933   access to the mail store itself.
1934
1935   For example, it's now possible to run "emacs -f notmuch" on a local
1936   machine with only ssh access to the mail store/notmuch database. To
1937   do this, simply set the notmuch-command variable in emacs to the
1938   name of a script containing:
1939
1940         ssh user@host notmuch "$@"
1941
1942   If the ssh client has enabled connection sharing (ControlMaster
1943   option in OpenSSH), the emacs interface can be quite responsive this
1944   way.
1945
1946 General bug fixes
1947 -----------------
1948
1949 Fix "notmuch search" to print nothing when nothing matches
1950
1951   The 0.4 release had a bug in which:
1952
1953         notmuch search <expression-with-no-matches>
1954
1955   would produce a single blank line of output, (where previous
1956   versions would produce no output. This fix also causes a change in
1957   the --format=json output, (which would previously produce "[]" and
1958   now produces nothing).
1959
1960 Emacs interface improvements
1961 ----------------------------
1962
1963 Fix to allow pipe ('|') command to work when using notmuch over ssh
1964
1965 Fix count of lines in hidden signatures
1966
1967 Omit repeated subject lines in (collapsed) thread display
1968
1969 Display current thread subject in a header line
1970
1971 Provide a "c i" binding to copy a thread ID from the search view
1972
1973 Allow for notmuch-fcc-dirs to have a value of nil
1974
1975   Also, the more complex form of notmuch-fcc-dirs now has a slightly
1976   different format. It no longer has a special first-element, fallback
1977   string. Instead it's now a list of cons cells where the car of each
1978   cell is a regular expression to be matched against the sender
1979   address, and the cdr is the name of a folder to use for an FCC. So
1980   the old fallback behavior can be achieved by including a final cell
1981   of (".*" . "default-fcc-folder").
1982
1983 Vim interface improvements
1984 --------------------------
1985
1986 Felipe Contreras provided a number of updates for the vim interface
1987
1988   These include optimizations, support for newer versions of vim, fixed
1989   support for sending mail on modern systems, new commands, and
1990   various cleanups.
1991
1992 New bindings
1993 ------------
1994
1995 Added initial ruby bindings in bindings/ruby
1996
1997 Notmuch 0.4 (2010-11-01)
1998 ========================
1999
2000 New command-line features
2001 -------------------------
2002
2003 `notmuch search --output=(summary|threads|messages|tags|files)`
2004
2005   This new option allows for particular items to be returned from
2006   notmuch searches. The "summary" option is the default and behaves
2007   just as "notmuch search" has historically behaved.
2008
2009   The new option values allow for thread IDs, message IDs, lists of
2010   tags, and lists of filenames to be returned from searches. It is
2011   expected that this new option will be very useful in shell
2012   scripts. For example:
2013
2014         for file in $(notmuch search --output=files <search-terms>); do
2015                 <operations-on> "$file"
2016         done
2017
2018 `notmuch show --format=mbox <search-specification>`
2019
2020   This new option allows for the messages matching a search
2021   specification to be presented as an mbox. Specifically the "mboxrd"
2022   format is used which allows for reversible quoting of lines
2023   beginning with "From ". A reader should remove a single '>' from the
2024   beginning of all lines beginning with one or more '>' characters
2025   followed by the 5 characters "From ".
2026
2027 `notmuch config [get|set] <section>.<item> [value ...]`
2028
2029   The new top-level "config" command allows for any value in the
2030   notmuch configuration file to be queried or set to a new value. Both
2031   single-valued and multi-valued items are supported, as our any
2032   custom items stored in the configuration file.
2033
2034 Avoid setting Bcc header in "notmuch reply"
2035
2036   We decided that this was a bit heavy-handed as the actual mail
2037   user-agent should be responsible for setting any Bcc option. Also,
2038   see below for the notmuch/emacs user-agent now setting an Fcc by
2039   default rather than Bcc.
2040
2041 New library features
2042 --------------------
2043
2044 Add `notmuch_query_get_query_string` and `notmuch_query_get_sort`
2045
2046   These are simply functions for querying properties of a
2047   `notmuch_query_t` object.
2048
2049 New emacs features
2050 ------------------
2051
2052 Enable Fcc of all sent messages by default (to "sent" directory)
2053
2054   All messages sent from the emacs interface will now be saved to the
2055   notmuch mail store where they will be incorporated to the database
2056   by the next "notmuch new". By default, messages are saved to the
2057   "sent" directory at the top-level of the mail store. This directory
2058   can be customized by means of the "Notmuch Fcc Dirs" option in the
2059   notmuch customize interface.
2060
2061 Ability to all open messages in a thread to a pipe
2062
2063   Historically, the '|' keybinding allows for piping a single message
2064   to an external command. Now, by prefixing this key with a prefix
2065   argument, (for example, by pressing "Control-U |"), all open
2066   messages in the current thread will be sent to the external command.
2067
2068 Optional support for detecting inline patches
2069
2070   This hook is disabled by default but can be enabled with a checkbox
2071   under "Notmuch Show Insert Text/Plain Hook" in the notmuch customize
2072   interface. It allows for inline patches to be detected and treated
2073   as if they were attachments, (with context-sensitive highlighting).
2074
2075 Automatically tag messages as "replied" when sending a reply
2076
2077   Messages replied to within the emacs interface will now be tagged as
2078   "replied". This feature can easily be customized to add or remove
2079   other tags as well. For example, a user might use a tag of
2080   "needs-reply" and can configure this feature to automatically remove
2081   that tag when replying. See "Notmuch Message Mark Replied" in the
2082   notmuch customize interface.
2083
2084 Allow search-result color specifications to overlay each other
2085
2086   For example, one tag can specify the background color of matching
2087   lines, while another can specify the foreground. With this change,
2088   both settings will now be visible simultaneously, (which was not the
2089   case in previous releases). See "Notmuch Search Line Faces" in the
2090   notmuch customize interface.
2091
2092 Make hidden author names still available for incremental search
2093
2094   When there is insufficient space to display all authors of a thread
2095   in search results, the names of hidden authors are now still made
2096   available to emacs' incremental search commands. As the user
2097   searches, matching lines will temporarily expand to show the hidden
2098   names.
2099
2100 New binding of Control-TAB (works like TAB in reverse)
2101
2102   Many notmuch nodes already use TAB to navigate forward through
2103   various items allowing actions, (message headers, email attachments,
2104   etc.). The new Control-TAB binding operates similarly but in the
2105   opposite direction.
2106
2107 New build-system features
2108 -------------------------
2109
2110 Various portability fixes have been applied
2111
2112   These include fixes for build failures on at least Solaris, FreeBSD,
2113   and Fedora systems. We're hopeful that the notmuch code base is now
2114   more portable than ever before.
2115
2116 Arrange for libnotmuch to be found automatically after make install
2117
2118   The notmuch build system is now careful to help the user avoid
2119   errors of the form "libnotmuch.so could not be found" immediately
2120   after installing. This support takes two forms:
2121
2122   1. If the library is installed to a system directory,
2123      (configured in /etc/ld.so.conf), then "make install" will
2124      automatically run ldconfig.
2125
2126   2. If the library is installed to a non-system directory, the
2127      build system adds a `DR_RUNPATH` entry to the final binary
2128      pointing to the directory to which the library is installed.
2129
2130   When this support works, the user should be able to run notmuch
2131   immediately after "make install", without any errors trying to find
2132   the notmuch library, and without having to manually set environment
2133   variables such as `LD_LIBRARY_PATH`.
2134
2135 Check compiler/linker options before using them
2136
2137   The configure script now carefully checks that any desired
2138   compilation options, (whether for enabling compiler warnings, or for
2139   embedding rpath, etc.), are supported. Only supported options are
2140   used in the resulting Makefile.
2141
2142 New test-suite features
2143 -----------------------
2144
2145 New modularization of test suite
2146
2147   Thanks to a gracious relicensing of the test-suite infrastructure
2148   from the git project, notmuch now has a modular test suite. This
2149   provides the ability to run individual sections of the test suite
2150   rather than the whole things. It also provides better summary of
2151   test results, with support for tests that are expected to fail
2152   (BROKEN and FIXED) in addition to PASS and FAIL. Finally, it makes
2153   it easy to run the test suite within valgrind (pass --valgrind to
2154   notmuch-test or to any sub-script) which has been very useful.
2155
2156 New testing of emacs interface
2157
2158   The test suite has been augmented to allow automated testing of the
2159   emacs interfaces. So far, this includes basic searches, display of
2160   threads, and tag manipulation. This also includes a test that a new
2161   message can successfully be sent out through a (dummy) SMTP server
2162   and that said message is successfully integrated into the notmuch
2163   database via the FCC setting.
2164
2165 General bug fixes
2166 -----------------
2167
2168 Fix potential corruption of database when "notmuch new" is interrupted
2169
2170   Previously, an interruption of "notmuch new" would (rarely) result
2171   in a corrupt database. The corruption would manifest itself by a
2172   persistent error of the form:
2173
2174         document ID of 1234 has no thread ID
2175
2176   The message-adding code has been carefully audited and reworked to
2177   avoid this sort of corruption regardless of when it is interrupted.
2178
2179 Fix failure with extremely long message ID headers
2180
2181   Previously, a message with an extremely long message ID, (say, more
2182   than 300 characters), would fail to be added to notmuch, (triggering
2183   Xapian exceptions). This has now been fixed.
2184
2185 Fix for messages with "charset=unknown-8bit"
2186
2187   Previously, messages with this charset would cause notmuch to emit a
2188   GMime warning, (which would then trip up emacs or other interfaces
2189   parsing the notmuch results).
2190
2191 Fix `notmuch_query_search_threads` function to return NULL on any exception
2192
2193 Fix "notmuch search" to return non-zero if `notmuch_query_search_threads`
2194 fails
2195
2196   Previously, this command could confusingly report a Xapian
2197   exception, yet still return an error code of 0. It now correctly
2198   returns a failing error code of 1 in this case.
2199
2200 Emacs bug fixes
2201 ---------------
2202
2203 Fix to handle a message with a subject containing, for example "[1234]"
2204
2205   Previously, a message subject containing a sequence of digits within
2206   square brackets would cause the emacs interface to mis-parse the
2207   output of "notmuch search". This would result in the message being
2208   mis-displayed and prevent the user from manipulating the message in
2209   the emacs interface.
2210
2211 Fix to correctly handle message IDs containing ".."
2212
2213   The emacs interface now properly quotes message IDs to avoid a
2214   Xapian bug in which the ".." within a message ID would be
2215   misinterpreted as a numeric range specification.
2216
2217 Python-binding fixes
2218 --------------------
2219
2220 The python bindings for notmuch have been updated to work with python3.
2221
2222 Debian-specific fixes
2223 ---------------------
2224
2225 Fix emacs initialization so "M-x notmuch" works for users by default
2226
2227   Now, a new Debian user can immediately run "emacs -f notmuch" after
2228   "apt-get install notmuch". Previously, the user would have had to
2229   edit the ~/.emacs file to add "(require 'notmuch)" before this would
2230   work.
2231
2232 Notmuch 0.3.1 (2010-04-27)
2233 ==========================
2234
2235 General bug fixes
2236 -----------------
2237
2238 Fix an infinite loop in "notmuch reply"
2239
2240   This bug could be triggered by replying to a message where the
2241   user's primary email address did not appear in the To: header and
2242   the user had not configured any secondary email addresses. The bug
2243   was a simple re-use of the same iterator variable in nested loops.
2244
2245 Fix a potential SEGV in "notmuch search"
2246
2247   This bug could be triggered by an author name ending in a ','.
2248   Admittedly - that's almost certainly a spam email, but we never
2249   want notmuch to crash.
2250
2251 Emacs bug fixes
2252 ---------------
2253
2254 Fix calculations for line wrapping in the primary "notmuch" view
2255
2256 Fix Fcc support to prompt to create a directory if the specified Fcc
2257 directory does not exist
2258
2259 Build fix
2260 ---------
2261
2262 Fix build on OpenSolaris (at least) due to missing 'extern "C"' block
2263
2264   Without this, the C++ sources could not find strcasestr and the
2265   final linking of notmuch would fail.
2266
2267 Notmuch 0.3 (2010-04-27)
2268 ========================
2269
2270 New command-line features
2271 -------------------------
2272
2273 User-configurable tags for new messages
2274
2275   A new "new.tags" option is available in the configuration file to
2276   determine which tags are applied to new messages. Run "notmuch
2277   setup" to generate new documentation within ~/.notmuch-config on how
2278   to specify this value.
2279
2280 Threads search results named based on subjects that match search
2281
2282   This means that when new mails arrived to a thread you've previously
2283   read, and the new mails have a new subject, you will see that
2284   subject in the search results rather than the old subject.
2285
2286 Faster operation of "notmuch tag" (avoid unneeded sorting)
2287
2288   Since the user just wants to tag all matching messages, we can make
2289   things perform a bit faster by avoiding the sort.
2290
2291 Even Better guessing of From: header for "notmuch reply"
2292
2293   Notmuch now looks at a number of headers when trying to figure out
2294   the best From: header to use in a reply. This is helpful if you have
2295   several configured email addresses, and you also subscribe to various
2296   mailing lists with different addresses, (so that mails you are
2297   replying to won't always include your subscribed address in the To:
2298   header).
2299
2300 Indication of author names that match a search
2301
2302   When notmuch displays threads as the result of a search, it now
2303   lists the authors that match the search before listing the other
2304   authors in the thread. It inserts a pipe '|' symbol between the last
2305   matching and first non-matching author. This is especially useful in
2306   a search that includes tag:unread. Now the authors of the unread
2307   messages in the thread are listed first.
2308
2309 New: Python bindings
2310 --------------------
2311
2312 Sebastian Spaeth has contributed his python bindings for the notmuch
2313 library to the central repository. These bindings were previously
2314 known as "cnotmuch" within python but have now been renamed to be
2315 accessible with a simple, and more official-looking "import notmuch".
2316
2317 The bindings have already proven very useful as people proficient in
2318 python have been able to easily develop programs to do notmuch-based
2319 searches for email-address completion, maildir-flag synchronization,
2320 and other tasks.
2321
2322 These bindings are available within the bindings/python directory, but
2323 are not yet integrated into the top-level Makefiles, nor the top-level
2324 package-building scripts. Improvements are welcome.
2325
2326 Emacs interface improvements
2327 ----------------------------
2328
2329 An entirely new initial view for notmuch, (friendly yet powerful)
2330
2331   Some of us call the new view "notmuch hello" but you can get at it
2332   by simply calling "emacs -f notmuch". The new view provides a search
2333   bar where new searches can be performed. It also displays a list of
2334   recent searches, along with a button to save any of these, giving it
2335   a new name as a "saved search". Many people find these "saved
2336   searches" one of the most convenient ways of organizing their mail,
2337   (providing all of the features of "folders" in other mail clients,
2338   but without any of the disadvantages).
2339
2340   Finally, this view can also optionally display all of the tags that
2341   exist in the database, along with a count for each tag, and a custom
2342   search of messages with that tag that's simply a click (or keypress)
2343   away.
2344
2345   NOTE: For users that liked the original mode of "emacs -f notmuch"
2346   immediately displaying a particular search result, we recommend
2347   instead running something like:
2348
2349         emacs --eval '(notmuch search "tag:inbox" t)'
2350
2351   The "t" means to sort the messages in an "oldest first" order,
2352   (as notmuch would do previously by default). You can also
2353   leave that off to have your search results in "newest first"
2354   order.
2355
2356 Full-featured "customize" support for configuring notmuch
2357
2358   Notmuch now plugs in well to the emacs "customize" mode to make it
2359   much simpler to find things about the notmuch interface that can be
2360   tweaked by the user.
2361
2362   You can get to this mode by starting at the main "Customize" menu in
2363   emacs, then browsing through "Applications", "Mail", and
2364   "Notmuch". Or you can go straight to "M-x customize-group"
2365   "notmuch".
2366
2367   Once you're at the customize screen, you'll see a list of documented
2368   options that can be manipulated along with checkboxes, drop-down
2369   selectors, and text-entry boxes for configuring the various
2370   settings.
2371
2372 Support for doing tab-completion of email addresses
2373
2374   This support currently relies on an external program,
2375   (notmuch-addresses), that is not yet shipped with notmuch
2376   itself. But multiple, suitable implementations of this program have
2377   already been written that generate address completions by doing
2378   notmuch searches of your email collection. For example, providing
2379   first those addresses that you have composed messages to in the
2380   past, etc.
2381
2382   One such program (implemented in python with the python bindings to
2383   notmuch) is available via:
2384
2385         git clone  http://jkr.acm.jhu.edu/git/notmuch_addresses.git
2386
2387   Install that program as notmuch-addresses on your PATH, and then
2388   hitting TAB on a partial email address or name within the To: or Cc:
2389   line of an email message will provide matching completions.
2390
2391 Support for file-based (Fcc) delivery of sent messages to mail store
2392
2393   This isn't yet enabled by default. To enable this, one will have to
2394   set the "Notmuch Fcc Dirs" setting within the notmuch customize
2395   screen, (see its documentation there for details). We anticipate
2396   making this automatic in a future release.
2397
2398 New 'G' key binding to trigger mail refresh (G == "Get new mail")
2399
2400   The 'G' key works wherever '=' works. Before refreshing the screen
2401   it calls an external program that can be used to poll email servers,
2402   run notmuch new and setup specific tags for the new emails. The
2403   script to be called should be configured with the "Notmuch Poll
2404   Script" setting in the customize interface. This script will
2405   typically invoke "notmuch new" and then perhaps several "notmuch
2406   tag" commands.
2407
2408 Implement emacs message display with the JSON output from notmuch
2409
2410   This is much more robust than the previous implementation, (where
2411   some HTML mails and mail quoting the notmuch code with the delimiter
2412   characters in it would cause the parser to fall over).
2413
2414 Better handling of HTML messages and MIME attachments (inline images!)
2415
2416   Allow for any MIME parts that emacs can display to be displayed
2417   inline. This includes inline viewing of image attachments, (provided
2418   the window is large enough to fit the image at its natural size).
2419
2420   Much more robust handling of HTML messages. Currently both text/plain
2421   and text/html alternates will be rendered next to each other. In a
2422   future release, users will be able to decide to see only one or the
2423   other representation.
2424
2425   Each attachment now has its own button so that attachments can be
2426   saved individually (the 'w' key is still available to save all
2427   attachments).
2428
2429 Customizable support for tidying of text/plain message content
2430
2431   Many new functions are available for tidying up message
2432   content. These include options such as wrapping long lines,
2433   compressing duplicate blank lines, etc.
2434
2435   Most of these are disabled by default, but can easily be enabled by
2436   clicking the available check boxes under the "Notmuch Show Insert
2437   Text/Plain Hook" within the notmuch customize screen.
2438
2439 New support for searchable citations (even when hidden)
2440
2441   When portions of overly-long citations are hidden, the contents of
2442   these citations will still be available for emacs' standard
2443   "incremental search" functions. When the search matches any portion
2444   of a hidden citation, the citation will become visible temporarily
2445   to display the search result.
2446
2447 More flexible handling of header visibility
2448
2449   As an answer to complaints from many users, the To, Cc, and Date
2450   headers of messages are no longer hidden by default. For those users
2451   that liked that these were hidden, a new "Notmuch Messages Headers
2452   Visible" option in the customize interface can be set to nil. The
2453   visibility of headers can still be toggled on a per-message basis
2454   with the 'h' keybinding.
2455
2456   For users that don't want to see some subset of those headers, the
2457   new "Notmuch Message Headers" variable can be customized to list
2458   only those headers that should be present in the display of a message.
2459
2460 The Return key now toggles message visibility anywhere
2461
2462   Previously this worked only on the first summary-line of a message.
2463
2464 Customizable formatting of search results
2465
2466   The user can easily customize the order, width, and formatting of
2467   the various fields in a "notmuch search" buffer. See the "Notmuch
2468   Search Result Format" section of the customize interface.
2469
2470 Generate nicer names for search buffers when using a saved search
2471
2472 Add a notmuch User-Agent header when sending mail from notmuch/emacs
2473
2474 New keybinding (M-Ret) to open all collapsed messages in a thread
2475
2476 New library feature
2477 -------------------
2478
2479 Provide a new `NOTMUCH_SORT_UNSORTED` value for queries
2480
2481   This can be somewhat faster when sorting simply isn't desired. For
2482   example when collecting a set of messages that will all be
2483   manipulated identically, (adding a tag, removing a tag, deleting the
2484   messages), then there's no advantage to sorting the messages by
2485   date.
2486
2487 Build fixes
2488 -----------
2489
2490 Fix to compile against GMime 2.6
2491
2492   Previously notmuch insisted on being able to find GMime 2.4, (even
2493   though GMime 2.6 would have worked all along).
2494
2495 Fix configure script to accept (and ignore) various standard options
2496
2497   For example, those that the Gentoo build scripts expect configure to
2498   accept are now all accepted.
2499
2500 Test suite
2501 ----------
2502
2503 A large number of new tests for the many new features
2504
2505 Better display of output from failed tests
2506
2507   Now shows failures with diff rather than forcing the user to gaze at
2508   complete actual and expected output looking for deviation.
2509
2510 Notmuch 0.2 (2010-04-16)
2511 ========================
2512
2513 This is the second release of the notmuch mail system, with actual
2514 detailed release notes this time!
2515
2516 This release consists of a number of minor new features that make
2517 notmuch more pleasant to use, and a few fairly major bug fixes.
2518
2519 We didn't quite hit our release target of "about a week" from the 0.1
2520 release, (0.2 is happening 11 days after 0.1), but we hope to do
2521 better for next week. Look forward to some major features coming to
2522 notmuch in subsequent releases.
2523
2524 -Carl
2525
2526 General features
2527 ----------------
2528
2529 Better guessing of From: header
2530
2531   Notmuch now tries harder to guess which configured address should be
2532   used as the From: line in a "notmuch reply". It will examine the
2533   Received: headers if it fails to find any configured address in To:
2534   or Cc:. This allows it to often choose the correct address even when
2535   replying to a message sent to a mailing list, and not directly to a
2536   configured address.
2537
2538 Make "notmuch count" with no arguments count all messages
2539
2540   Previously, it was hard to construct a search term that was
2541   guaranteed to match all messages.
2542
2543 Provide a new special-case search term of "*" to match all messages
2544
2545   This can be used in any command accepting a search term, such as
2546   "notmuch search '*'". Note that you'll want to take care that the
2547   shell doesn't expand * against the current files. And note that the
2548   support for "*" is a special case. It's only meaningful as a single
2549   search term and loses its special meaning when combined with any
2550   other search terms.
2551
2552 Automatically detect thread connections even when a parent message is
2553 missing
2554
2555   Previously, if two or more message were received with a common
2556   parent, but that parent was not received, then these messages would
2557   not be recognized as belonging to the same thread. This is now fixed
2558   so that such messages are properly connected in a thread.
2559
2560 General bug fixes
2561 -----------------
2562
2563 Fix potential data loss in "notmuch new" with SIGINT
2564
2565   One code path in "notmuch new" was not properly handling
2566   SIGINT. Previously, this could lead to messages being removed from
2567   the database (and their tags being lost) if the user pressed
2568   Control-C while "notmuch new" was working.
2569
2570 Fix segfault when a message includes a MIME part that is empty
2571
2572 Fix handling of non-ASCII characters with --format=json
2573
2574   Previously, characters outside the range of 7-bit ASCII were
2575   silently dropped from the JSON output. This led to corrupted display
2576   of utf-8 content in the upcoming notmuch web-based frontends.
2577
2578 Fix headers to be properly decoded in "notmuch reply"
2579
2580   Previously, the user might see:
2581
2582         Subject: Re: =?iso-8859-2?q?Rozlu=E8ka?=
2583
2584   rather than:
2585
2586         Subject: Re: Rozlučka
2587
2588   The former text is properly encoded to be RFC-compliant SMTP, will
2589   be sent correctly, and will be properly decoded by the
2590   recipient. But the user trying to edit the reply would likely be
2591   unable to read or edit that field in its encoded form.
2592
2593 Emacs client features
2594 ---------------------
2595
2596 Show the last few lines of citations as well as the first few lines
2597
2598   It's often the case that the last sentence of a citation is what is
2599   being replied to directly, so the last few lines are often much more
2600   important. The number of lines shown at the beginning and end of any
2601   citation can be configured, (notmuch-show-citation-lines-prefix and
2602   notmuch-show-citation-lines-suffix).
2603
2604 The '+' and '-' commands in the search view can now add and remove
2605 tags by region
2606
2607   Selective bulk tagging is now possible by selecting a region of
2608   threads and then using either the '+' or '-' keybindings. Bulk
2609   tagging is still available for all threads matching the current
2610   search with the '*' binding.
2611
2612 More meaningful buffer names for thread-view buffers
2613
2614   Notmuch now uses the Subject of the thread as the buffer
2615   name. Previously it was using the thread ID, which is a meaningless
2616   number to the user.
2617
2618 Provide for customized colors of threads in search view based on tags
2619
2620   See the documentation of notmuch-search-line-faces, (or us "M-x
2621   customize" and browse to the "notmuch" group within "Applications"
2622   and "Mail"), for details on how to configure this colorization.
2623
2624 Build-system features
2625 ---------------------
2626
2627 Add support to properly build libnotmuch on Darwin systems (OS X)
2628
2629 Add support to configure for many standard options
2630
2631   We include actual support for:
2632
2633         --includedir --mandir --sysconfdir
2634
2635   And accept and silently ignore several more:
2636
2637         --build --infodir --libexecdir --localstatedir
2638         --disable-maintainer-mode --disable-dependency-tracking
2639
2640 Install emacs client in "make install" rather than requiring a
2641 separate "make install-emacs"
2642
2643 Automatically compute versions numbers between releases
2644
2645   This support uses the git-describe notation, so a version such as
2646   0.1-144-g43cbbfc indicates a version that is 144 commits since the
2647   0.1 release and is available as git commit "43cbbfc".
2648
2649 Add a new "make test" target to run the test suite and actually
2650 verify its results
2651
2652 Notmuch 0.1 (2010-04-05)
2653 ========================
2654
2655 This is the first release of the notmuch mail system.
2656
2657 It includes the libnotmuch library, the notmuch command-line
2658 interface, and an emacs-based interface to notmuch.
2659
2660 Note: Notmuch will work best with Xapian 1.0.18 (or later) or Xapian
2661 1.1.4 (or later). Previous versions of Xapian (whether 1.0 or 1.1) had
2662 a performance bug that made notmuch very slow when modifying
2663 tags. This would cause distracting pauses when reading mail while
2664 notmuch would wait for Xapian when removing the "inbox" and "unread"
2665 tags from messages in a thread.
2666
2667
2668 <!--
2669  Local variables:
2670  mode: text
2671  tab-width: 8
2672  indent-tabs-mode: nil
2673  End:
2674  vi: sw=8 ts=8 et
2675 -->