]> git.notmuchmail.org Git - notmuch/log
notmuch
9 years agoemacs: Washing should use more `defcustom'.
David Edmondson [Fri, 31 Oct 2014 08:05:21 +0000 (08:05 +0000)]
emacs: Washing should use more `defcustom'.

More of the washing variables should be available through the standard
customisation interface.

9 years agoemacs: More flexible washed faces.
David Edmondson [Fri, 31 Oct 2014 08:05:20 +0000 (08:05 +0000)]
emacs: More flexible washed faces.

The faces used when washing messages should be notmuch specific and
inherit from the underlying emacs face rather than using it
directly. This allows the washed face to be modified without requiring
the modification of the underlying face.

9 years agoconfigure: add check for python interepreter name
David Bremner [Sat, 3 Jan 2015 12:58:19 +0000 (13:58 +0100)]
configure: add check for python interepreter name

Currently we hardcode "python" in several places. This makes things
hard for people who have only commands called python3 and/or
python2. We also add the name to sh.config to eventually replace the
current workaround in the test suite.

9 years agobuild: eliminate use of python execfile command
David Bremner [Sat, 3 Jan 2015 13:14:03 +0000 (14:14 +0100)]
build: eliminate use of python execfile command

As discussed in
id:8cc9dd580ad672527e12f43706f9803b2c8e99d8.1405220724.git.wking@tremily.us,
execfile is unavailable in python3.

The approach of this commit avoids modifying the python module path,
which is arguably preferable since it avoids potentially accidentally
importing a module from the wrong place.

9 years agodebian: update ./debian/.gitignore
David Bremner [Sat, 3 Jan 2015 12:26:19 +0000 (13:26 +0100)]
debian: update ./debian/.gitignore

One binary package was renamed, and notmuch-dbg was mysteriously
missing from the existing .gitignore.

9 years agocompletion: remove the broken notmuch-completion.tcsh
Jani Nikula [Fri, 2 Jan 2015 18:03:28 +0000 (20:03 +0200)]
completion: remove the broken notmuch-completion.tcsh

The tcsh completion is minimal yet doesn't work at all. We're better
off without it, it's more embarrassing than useful.

9 years agolib: convert two "iterator copy strings" into references.
David Bremner [Fri, 2 Jan 2015 16:18:42 +0000 (17:18 +0100)]
lib: convert two "iterator copy strings" into references.

Apparently this is a supported and even idiomatic way of keeping a
temporary object (e.g. like that returned from an operator
dereference) alive.

9 years agolib: another iterator-temporary/stale-pointer bug
David Bremner [Sun, 28 Dec 2014 10:45:08 +0000 (11:45 +0100)]
lib: another iterator-temporary/stale-pointer bug

Tamas Szakaly points out [1] that the bug fixed in 51b073c still
exists in at least one place. This change follows the suggestion of
[2] and creates a block scope temporary std::string to avoid the rules
of iterators temporaries.

[1]: id:20141226113755.GA64154@pamparam
[2]: id:20141226230655.GA41992@pamparam

9 years agocompletion: complete notmuch insert --folder to maildir folders only
Jani Nikula [Thu, 1 Jan 2015 14:34:30 +0000 (16:34 +0200)]
completion: complete notmuch insert --folder to maildir folders only

The --folder option expects a folder relative from maildir root, so
complete like the folder: search term.

9 years agocompletion: complete notmuch insert --keep and --no-hooks options
Jani Nikula [Mon, 10 Nov 2014 19:35:42 +0000 (21:35 +0200)]
completion: complete notmuch insert --keep and --no-hooks options

9 years agoAdd default configuration values to the man page
Sergei Shilovsky [Tue, 14 Oct 2014 14:30:56 +0000 (18:30 +0400)]
Add default configuration values to the man page

9 years agolib: drop the deprecation message for single-message mbox files
Jani Nikula [Sun, 23 Nov 2014 11:15:12 +0000 (13:15 +0200)]
lib: drop the deprecation message for single-message mbox files

We generally do not support mbox files, but for historical reasons
we've supported single-message mbox files, with a deprecation
message. We've tried dropping the support altogether, but backed out
of it because we'd need to stop indexing them, while keeping support
for previously indexed files. This would be more complicated than
simply supporting single-message mbox files. Therefore, drop the
deprecation message, and just silently accept single-message mboxes.

9 years agobindings/ruby: gitignore *.o
David Bremner [Thu, 1 Jan 2015 12:16:38 +0000 (13:16 +0100)]
bindings/ruby: gitignore *.o

9 years agolib: Use email address instead of empty real name.
Jesse Rosenthal [Sat, 22 Nov 2014 13:17:16 +0000 (08:17 -0500)]
lib: Use email address instead of empty real name.

Currently, if a From-header is of the form:

    "" <address@example.com>

the empty string will be treated as a valid real-name, and the entry
in the search results will be empty.

The new behavior here is that we treat an empty real-name field as if
it were null, so that the email address will be used in the search
results instead.

Signed-off-by: Jesse Rosenthal <jrosenthal@jhu.edu>
9 years agotest: Add known-broken test for empty author name
Jesse Rosenthal [Sat, 22 Nov 2014 13:17:15 +0000 (08:17 -0500)]
test: Add known-broken test for empty author name

We test for whether a quoted empty email address

    "" <address@example.com>

will show up as the address, instead of the empty string. This is
marked as known-broken, since the current behavior is to use the empty
string.

This is a new test file, since handling of unusual email addresses
doesn't seem to fit well in any of our existing tests.

Signed-off-by: Jesse Rosenthal <jrosenthal@jhu.edu>
9 years agoemacs: `with-current-notmuch-show-message' should not leak `coding-system-for-read'
David Edmondson [Tue, 18 Nov 2014 07:03:17 +0000 (07:03 +0000)]
emacs: `with-current-notmuch-show-message' should not leak `coding-system-for-read'

`with-current-notmuch-show-message' applies a `no-conversion' coding
system when reading a raw message from notmuch. That coding system
should _not_ be applied when the body of the macro is evaluated, as it
can cause file operations used during that evaluation to incorrectly
apply the `no-conversion' coding system.

This was discovered when a user's .signature file contained non-ASCII
characters. When a message is forwarded, the `no-conversion' coding
system was applied to the reading of the .signature file, resulting in
raw rather than UTF-8 interpretation of the data.

9 years agoNEWS & doc: typing fixes
Tomi Ollila [Sat, 15 Nov 2014 14:52:44 +0000 (16:52 +0200)]
NEWS & doc: typing fixes

Some inconsistent formatting in NEWS for 0.19, 0.18 & 0.17 fixed.

Extra `*` when making bold text in doc/man1/notmuch-search.rst removed.

9 years agoMerge tag '0.19'
David Bremner [Sat, 15 Nov 2014 07:47:00 +0000 (08:47 +0100)]
Merge tag '0.19'

notmuch 0.19 release

9 years agodebian: update debian/NEWS and debian/changelog 0.19 debian/0.19-1
David Bremner [Fri, 14 Nov 2014 19:35:40 +0000 (20:35 +0100)]
debian: update debian/NEWS and debian/changelog

Plagiarize my upstream summary for debian, and mention the new
upgrade.

9 years agoversion: bump to 0.19
David Bremner [Fri, 14 Nov 2014 18:35:02 +0000 (19:35 +0100)]
version: bump to 0.19

9 years agoNEWS: deprecate notmuch deliver
David Bremner [Thu, 13 Nov 2014 20:59:43 +0000 (21:59 +0100)]
NEWS: deprecate notmuch deliver

notmuch-deliver has no commits for about 2.5 years. notmuch-insert has
all the features that deliver does, and as far as I understand the
error handling has now caught up.

9 years agoNEWS: add short overview section
David Bremner [Thu, 13 Nov 2014 20:59:42 +0000 (21:59 +0100)]
NEWS: add short overview section

I decided to err on the side of brevity, since the details are just
below.

9 years agoNews for mark read handling
markwalters1009@gmail.com [Thu, 13 Nov 2014 17:25:21 +0000 (17:25 +0000)]
News for mark read handling

amended by db: capitalized notmuch.

9 years agodoc: Minor fixes related to notmuch-address
Michal Sojka [Wed, 12 Nov 2014 16:44:59 +0000 (17:44 +0100)]
doc: Minor fixes related to notmuch-address

- Add notmuch-address to HTML index
- Remove extra '*'

9 years agoNEWS: notmuch address
Michal Sojka [Wed, 12 Nov 2014 16:44:58 +0000 (17:44 +0100)]
NEWS: notmuch address

9 years agoNEWS: functions in emacs notmuch-show-stash-mlarchive-link-alist
Jani Nikula [Mon, 10 Nov 2014 19:27:53 +0000 (21:27 +0200)]
NEWS: functions in emacs notmuch-show-stash-mlarchive-link-alist

News for emacs: allow functions in
notmuch-show-stash-mlarchive-link-alist.

9 years agoNEWS: notmuch insert, search updates
Jani Nikula [Mon, 10 Nov 2014 19:27:52 +0000 (21:27 +0200)]
NEWS: notmuch insert, search updates

News for

- cli: add support for notmuch search --duplicate=N with --output=messages
- cli/insert: add post-insert hook
- cli/insert: require succesful message indexing for success statu

9 years agoNEWS: Database version 3, API improvements, and ghost messages
Austin Clements [Mon, 10 Nov 2014 13:13:42 +0000 (08:13 -0500)]
NEWS: Database version 3, API improvements, and ghost messages

9 years agodebian: bump standards version 0.19_rc2 debian/0.19_rc2-1
David Bremner [Sun, 9 Nov 2014 15:46:55 +0000 (16:46 +0100)]
debian: bump standards version

9 years agobump version to 0.19~rc2
David Bremner [Sun, 9 Nov 2014 15:23:58 +0000 (16:23 +0100)]
bump version to 0.19~rc2

9 years agoemacs: show: document the mark unread defcustom function
Mark Walters [Sat, 6 Sep 2014 16:22:10 +0000 (17:22 +0100)]
emacs: show: document the mark unread defcustom function

9 years agocli: notmuch address option defaults update
Tomi Ollila [Fri, 7 Nov 2014 18:31:50 +0000 (20:31 +0200)]
cli: notmuch address option defaults update

When no --output option were given, change default to display senders
only.

When only --count option is given, display senders (in contrary to not
displaying anything).

Document that --count with --sort=**order** is not supported option
combination.

Clean up some whitespace in the documentation.

One test updated to have --output=count without sender nor recipient
output option.

9 years agodoc: whitespace cleanup
Tomi Ollila [Thu, 6 Nov 2014 17:46:59 +0000 (19:46 +0200)]
doc: whitespace cleanup

Changed one tab in doc/man1/notmuch-show.rst to 8 spaces.

Removed one leading tab in doc/man5/notmuch-hooks.rst to make
the SYNOPSIS style consistent with other pages.

9 years agoNews for dump/writelock change
Mark Walters [Sat, 8 Nov 2014 08:04:56 +0000 (08:04 +0000)]
News for dump/writelock change

9 years agodebian: bump date in changelog. 0.19_rc1 debian/0.19_rc1-1
David Bremner [Wed, 5 Nov 2014 23:30:57 +0000 (00:30 +0100)]
debian: bump date in changelog.

It looks a bit riduculous to have a September date there.

9 years agolib: bump LIBNOTMUCH_MAJOR_VERSION to 4
David Bremner [Wed, 5 Nov 2014 23:10:03 +0000 (00:10 +0100)]
lib: bump LIBNOTMUCH_MAJOR_VERSION to 4

This should have been done at the same time as the SONAME bump.

9 years agoversion: update to 0.19~rc1
David Bremner [Wed, 5 Nov 2014 23:06:06 +0000 (00:06 +0100)]
version: update to 0.19~rc1

Sync NEWS debian/changelog at the same time, although in those cases it's a downgrade.

9 years agodoc: add notmuch-address.rst to sphinx config
David Bremner [Wed, 5 Nov 2014 22:41:21 +0000 (23:41 +0100)]
doc: add notmuch-address.rst to sphinx config

This is needed so that the rst docs are converted to man and info
pages.

9 years agocli: address: Add --output=count
Michal Sojka [Wed, 5 Nov 2014 00:25:58 +0000 (01:25 +0100)]
cli: address: Add --output=count

This output prints how many times was each address encountered during
search.

9 years agocli: address: Do not output duplicate addresses
Michal Sojka [Wed, 5 Nov 2014 00:25:57 +0000 (01:25 +0100)]
cli: address: Do not output duplicate addresses

This filters out duplicate addresses from address command output.

It also also adds tests for the address command.

The code here is an extended version of a patch from Jani Nikula.

9 years agocli: search: Convert --output to keyword argument
Michal Sojka [Wed, 5 Nov 2014 00:25:56 +0000 (01:25 +0100)]
cli: search: Convert --output to keyword argument

Now, when address related outputs are in a separate command, it makes
no sense to combine multiple --output options in search command line.
Using switch statement to handle different outputs is more readable
than a series of if statements.

9 years agocli: Introduce "notmuch address" command
Michal Sojka [Wed, 5 Nov 2014 00:25:55 +0000 (01:25 +0100)]
cli: Introduce "notmuch address" command

This moves address-related functionality from search command to the
new address command. The implementation shares almost all code and
some command line options.

Options --offset and --limit were intentionally not included in the
address command, because they refer to messages numbers, which users
do not see in the output. This could confuse users because, for
example, they could see more addresses in the output that what was
specified with --limit. This functionality can be correctly
reimplemented for address subcommand later.

Also useless values of --exclude flag were not included in the address
command.

This was inspired by a patch from Jani Nikula.

9 years agocli: add support for hierarchical command line option arrays
Jani Nikula [Wed, 5 Nov 2014 00:25:54 +0000 (01:25 +0100)]
cli: add support for hierarchical command line option arrays

NOTMUCH_OPT_INHERIT expects a notmuch_opt_desc_t * pointer in
output_var.

The "Unrecognized option" message was moved out of parse_option() to
not be emitted twice or when parsing a non-inherited option.

9 years agocli: search: Split notmuch_search_command to smaller functions
Michal Sojka [Wed, 5 Nov 2014 00:25:53 +0000 (01:25 +0100)]
cli: search: Split notmuch_search_command to smaller functions

In a subsequent commit, these functions will be used to share some
functionality between search and address commands.

9 years agocli: search: Convert ctx. to ctx->
Michal Sojka [Wed, 5 Nov 2014 00:25:52 +0000 (01:25 +0100)]
cli: search: Convert ctx. to ctx->

In the next commit, notmuch_search_command will be refactored to
several smaller functions. In order to simplify the next commit to
verbatim move of several lines to new functions with search_context_t*
argument, we convert all references to this structure to pointer
dereferences. To do so we rename the context variable and use the
original name ctx as the pointer to the renamed structure.

9 years agocli: search: Move more variables into search_context_t
Michal Sojka [Wed, 5 Nov 2014 00:25:51 +0000 (01:25 +0100)]
cli: search: Move more variables into search_context_t

In order to share some command line options between search and address
subcommands we need to add corresponding variables to the context
structure. While we are at it, we also add notmuch_database_t to unify
parameters of all do_search_* functions and to simplify subsequent
commits.

Otherwise, there are no functional changes.

9 years agocli: search: Rename options to context
Michal Sojka [Wed, 5 Nov 2014 00:25:50 +0000 (01:25 +0100)]
cli: search: Rename options to context

In the next commit the options structure will be extended by
non-option variables. Therefore we need a more generic name.

Just text replacement, no other changes.

9 years agodevel: man-to-mdwn.pl: add GPLv3+ notice to manpages.mdwn
Tomi Ollila [Sat, 1 Nov 2014 10:47:12 +0000 (12:47 +0200)]
devel: man-to-mdwn.pl: add GPLv3+ notice to manpages.mdwn

Make the generated head manual page (in the notmuchmail wiki)
display the licence information the whole notmuch software is licenced
under.

9 years agodevel: make man-to-mdwn.pl to work with generated manual pages
Tomi Ollila [Mon, 4 Aug 2014 17:39:32 +0000 (20:39 +0300)]
devel: make man-to-mdwn.pl to work with generated manual pages

The new manual pages converted from rst using sphinx or rst2man
has somewhat different syntax. man-to-mdwn.pl is now adjusted
to produce even better output from this syntax. The changes also
include using utf-8 locale (e.g. for tables and generated hypens)
and and quite a few bugs fixes.
This tool still produces better results than just using the
html pages generated using sphinx / rst2html. For example those
tools don't create inter-page hyperlinks -- and the preformatted
pages written by man-to-mdwn.pl just works well with manual page
content.

9 years agotest: Make gen-threads work with python3
Jesse Rosenthal [Fri, 31 Oct 2014 17:33:25 +0000 (13:33 -0400)]
test: Make gen-threads work with python3

python3 doesn't allow dictionaries to be initialized with non-string
keywords. This presents problems on systems in which "python" means
"python3". We instead initalize the dictionary using the dict
comprehension and then update it with the values from the tree. This
will work with both python2 and python3.

9 years agotest: add tests for --output=messages --duplicate=N
Jani Nikula [Sat, 1 Nov 2014 09:31:07 +0000 (11:31 +0200)]
test: add tests for --output=messages --duplicate=N

Basic smoke tests for the feature, nothing fancy.

9 years agocli: add support for notmuch search --duplicate=N with --output=messages
Jani Nikula [Sat, 1 Nov 2014 09:31:06 +0000 (11:31 +0200)]
cli: add support for notmuch search --duplicate=N with --output=messages

Print the message IDs of all messages matching the search terms that
have at least N files associated with them.

9 years agoconfigure: move make {,install} instructions to the end
Tomi Ollila [Sat, 1 Nov 2014 09:39:04 +0000 (11:39 +0200)]
configure: move make {,install} instructions to the end

There was theorical possibility that writing the config files could
have skipped (by interruption) after the instructions how to make
notmuch was printed out.

9 years agocli: search: Add --output={sender,recipients}
Michal Sojka [Fri, 31 Oct 2014 21:53:58 +0000 (22:53 +0100)]
cli: search: Add --output={sender,recipients}

The new outputs allow printing senders, recipients or both of matching
messages. To print both, the user can use --output=sender and
--output=recipients simultaneously.

Currently, the same address can appear multiple times in the output.
The next commit will change this. For this reason, tests are
introduced there.

We use mailbox_t rather than InternetAddressMailbox because we will
need to extend it in a following commit.

This code is based on a patch from Jani Nikula.

9 years agocli: search: Convert --output to keyword-flag argument
Michal Sojka [Fri, 31 Oct 2014 21:53:57 +0000 (22:53 +0100)]
cli: search: Convert --output to keyword-flag argument

This converts "notmuch search" to use the recently introduced
keyword-flag argument parser. At this point, it only makes the code
slightly less readable but following commits that add new --output
keywords will profit from this.

9 years agocli: Add support for parsing keyword-flag arguments
Jani Nikula [Fri, 31 Oct 2014 21:53:56 +0000 (22:53 +0100)]
cli: Add support for parsing keyword-flag arguments

This allows having multiple --foo=bar --foo=baz options on the command
line, with the corresponding values OR'd together.

[Test added by Michal Sojka]

9 years agocli: search: Refactor passing of command line options
Michal Sojka [Fri, 31 Oct 2014 21:53:55 +0000 (22:53 +0100)]
cli: search: Refactor passing of command line options

Many functions that implement the search command need to access command
line options. Instead of passing each option in a separate variable, put
them in a structure and pass only this structure.

This will become handy in the following commits.

9 years agoNEWS: Improved `q` binding.
David Edmondson [Fri, 31 Oct 2014 17:24:47 +0000 (17:24 +0000)]
NEWS: Improved `q` binding.

9 years agoemacs: Improve the behaviour of the 'q' binding.
David Edmondson [Wed, 29 Oct 2014 14:18:49 +0000 (14:18 +0000)]
emacs: Improve the behaviour of the 'q' binding.

When a user hits 'q' in a notmuch buffer, kill the buffer only if
there are no other windows currently showing it.

9 years agotest: use LDFLAGS in test/Makefile.local
Jani Nikula [Mon, 20 Oct 2014 15:03:21 +0000 (18:03 +0300)]
test: use LDFLAGS in test/Makefile.local

Apparently the test binaries are built with minimal LDFLAGS, only
adding dependency specific LDFLAGS as needed. However because some of
the test binaries incorporate notmuch object files, it is necessary to
use the same link flags as notmuch. For example user provided
CFLAGS/CXXFLAGS/LDFLAGS with -fsanitize=undefined fails to build the
test binaries if the flags differ.

9 years agotest: add simple tests for post-insert hook
David Bremner [Sat, 18 Oct 2014 07:22:35 +0000 (09:22 +0200)]
test: add simple tests for post-insert hook

Most of the existing tests for pre/post-new hook don't seem to apply.

9 years agocli/insert: add post-insert hook
Jani Nikula [Sun, 28 Sep 2014 14:40:59 +0000 (17:40 +0300)]
cli/insert: add post-insert hook

The post-new hook might no longer be needed or run very often if
notmuch insert is being used. Therefore a post-insert hook is needed
(arguably pre-insert not so much, so don't add one). Also add the
--no-hooks option to skip hooks.

9 years agogitignore: ignore sh.config and doc/config.dox
Jani Nikula [Mon, 27 Oct 2014 17:59:34 +0000 (19:59 +0200)]
gitignore: ignore sh.config and doc/config.dox

9 years agocli: cast timeval fields to long for format
Jani Nikula [Tue, 28 Oct 2014 08:17:26 +0000 (09:17 +0100)]
cli: cast timeval fields to long for format

This hides platform differences between struct timeval field types.

9 years agoemacs: notmuch-jump.el should provide.
David Edmondson [Wed, 22 Oct 2014 06:05:33 +0000 (07:05 +0100)]
emacs: notmuch-jump.el should provide.

To ease loading, notmuch-jump.el should provide 'notmuch-jump.

9 years agolib: Remove unnecessary thread linking steps when using ghost messages
Austin Clements [Thu, 23 Oct 2014 12:30:41 +0000 (08:30 -0400)]
lib: Remove unnecessary thread linking steps when using ghost messages

Previously, it was necessary to link new messages to children to work
around some (though not all) problems with the old metadata-based
approach to stored thread IDs.  With ghost messages, this is no longer
necessary, so don't bother with child linking when ghost messages are
in use.

9 years agotest: Test upgrade to ghost messages feature
Austin Clements [Thu, 23 Oct 2014 12:30:40 +0000 (08:30 -0400)]
test: Test upgrade to ghost messages feature

9 years agolib: Enable ghost messages feature
Austin Clements [Thu, 23 Oct 2014 12:30:39 +0000 (08:30 -0400)]
lib: Enable ghost messages feature

This fixes the broken thread order test.

9 years agolib: Implement upgrade to ghost messages feature
Austin Clements [Thu, 23 Oct 2014 12:30:38 +0000 (08:30 -0400)]
lib: Implement upgrade to ghost messages feature

Somehow this is the first upgrade pass that actually does *any* error
checking, so this also adds the bit of necessary infrastructure to
handle that.

9 years agolib: Implement ghost-based thread linking
Austin Clements [Thu, 23 Oct 2014 12:30:37 +0000 (08:30 -0400)]
lib: Implement ghost-based thread linking

This updates the thread linking code to use ghost messages instead of
user metadata to link messages into threads.

In contrast with the old approach, this is actually correct.
Previously, thread merging updated only the thread IDs of message
documents, not thread IDs stored in user metadata.  As originally
diagnosed by Mark Walters [1] and as demonstrated by the broken
T260-thread-order test, this can cause notmuch to fail to link
messages even though they're in the same thread.  In principle the old
approach could have been fixed by updating the user metadata thread
IDs as well, but these are not indexed and hence this would have
required a full scan of all stored thread IDs.  Ghost messages solve
this problem naturally by reusing the exact same thread ID and message
ID representation and indexing as regular messages.

Furthermore, thanks to this greater symmetry, ghost messages are also
algorithmically simpler.  We continue to support the old user metadata
format, so this patch can't delete any code, but when we do remove
support for the old format, several functions can simply be deleted.

[1] id:8738h7kv2q.fsf@qmul.ac.uk

9 years agolib: Internal support for querying and creating ghost messages
Austin Clements [Thu, 23 Oct 2014 12:30:36 +0000 (08:30 -0400)]
lib: Internal support for querying and creating ghost messages

This updates the message abstraction to support ghost messages: it
adds a message flag that distinguishes regular messages from ghost
messages, and an internal function for initializing a newly created
(blank) message as a ghost message.

9 years agolib: Introduce macros for bit operations
Austin Clements [Fri, 24 Oct 2014 12:49:15 +0000 (08:49 -0400)]
lib: Introduce macros for bit operations

These macros help clarify basic bit-twiddling code and are written to
be robust against C undefined behavior of shift operators.

9 years agolib: Update database schema doc for ghost messages
Austin Clements [Thu, 23 Oct 2014 12:30:34 +0000 (08:30 -0400)]
lib: Update database schema doc for ghost messages

This describes the structure of ghost mail documents.  Ghost messages
are not yet implemented.

9 years agolib: Add a ghost messages database feature
Austin Clements [Thu, 23 Oct 2014 12:30:33 +0000 (08:30 -0400)]
lib: Add a ghost messages database feature

This will be implemented over the next several patches.  The feature
is not yet "enabled" (this does not add it to
NOTMUCH_FEATURES_CURRENT).

9 years agoMerge tag '0.18.2'
David Bremner [Sat, 25 Oct 2014 16:55:25 +0000 (18:55 +0200)]
Merge tag '0.18.2'

notmuch 0.18.2 release

9 years agodebian: add changelog stanza for 0.18.2-1 0.18.2
David Bremner [Sat, 25 Oct 2014 16:23:33 +0000 (18:23 +0200)]
debian: add changelog stanza for 0.18.2-1

9 years agoversion: bump to 0.18.2
David Bremner [Sat, 25 Oct 2014 16:23:06 +0000 (18:23 +0200)]
version: bump to 0.18.2

No non-documentation changes

9 years agoNEWS: give real entry for 0.18.2
David Bremner [Sat, 25 Oct 2014 10:10:05 +0000 (12:10 +0200)]
NEWS: give real entry for 0.18.2

Expand out what the actual test suite changes are, so people have a
better idea if the release is relevant to them.

9 years agoMerge tag '0.18.2_rc1'
David Bremner [Sat, 25 Oct 2014 09:38:18 +0000 (11:38 +0200)]
Merge tag '0.18.2_rc1'

notmuch 0.18.2~rc1 release

Conflicts:
NEWS
debian/changelog

9 years agodebian: build depend on dh-python 0.18.2_rc1 debian/0.18.2_rc1-1
David Bremner [Sat, 25 Oct 2014 09:20:57 +0000 (11:20 +0200)]
debian: build depend on dh-python

The build log asked me nicely, so I did.

9 years agodebian: add changelog stanza for 0.18.2~rc-1
David Bremner [Sat, 25 Oct 2014 08:48:31 +0000 (10:48 +0200)]
debian: add changelog stanza for 0.18.2~rc-1

9 years agoNEWS: add minimal news item for 0.18.2
David Bremner [Sat, 25 Oct 2014 08:42:00 +0000 (10:42 +0200)]
NEWS: add minimal news item for 0.18.2

The less said, the less typos to make.

9 years agoversion: bump to 0.18.2~rc1
David Bremner [Sat, 25 Oct 2014 08:38:11 +0000 (10:38 +0200)]
version: bump to 0.18.2~rc1

9 years agotest: kill '"filename": "signature.asc"' from json output
David Bremner [Sat, 25 Oct 2014 07:57:12 +0000 (09:57 +0200)]
test: kill '"filename": "signature.asc"' from json output

This starts to appear with emacs24.4, so we can't easily have it in
our expected output.

9 years agotest/emacs: force *Messages* buffer to be writable
David Bremner [Sat, 25 Oct 2014 06:53:29 +0000 (08:53 +0200)]
test/emacs: force *Messages* buffer to be writable

In emacs 24.4 the messages buffer starts being read-only, which kills
these tests.  This seems to be the point of the variable
inihibit-read-only, which has existed at least since emacs 21.

9 years agotest: simplify T360-symbol-hiding, use nm instead of objdump
David Bremner [Wed, 10 Sep 2014 06:41:11 +0000 (08:41 +0200)]
test: simplify T360-symbol-hiding, use nm instead of objdump

After yet another variation in objdump output caused this test to fail
(on a Debian port, no less), I decided whatever putative benefit we
get from looking at the object files instead of the library isn't
worth the maintenence headache.

This version uses nm -P. nm -P should be portable, and fixed format.
It purposely doesn't use the -D argument, since that is non-POSIX and
nm on GNU/Linux seems do the right thing without it.

It still won't work out of the box on e.g. Mac OS/X. I think the right
thing to do there is to move some more configuration information into
sh.config.

(cherry picked from commit c34d6bad0f9da300eac2181e2073aee130432932)

9 years agotest: Port atomicity test to Python
Austin Clements [Fri, 3 Oct 2014 16:58:03 +0000 (12:58 -0400)]
test: Port atomicity test to Python

Previously, this was implemented using a horrible GDB script (because
there is no such thing as a non-horrible GDB script).  This GDB script
often broke with newer versions of GDB for mysterious reasons.  Port
the test script to GDB's Python API, which makes the code much cleaner
and, hopefully, more stable.

(cherry picked from commit cbbda62258360f035894cff9dfd66c60b0cc707f)

Conflicts:
test/T380-atomicity.sh

9 years agoREADME.rst: typo/wording fixes
David Bremner [Fri, 24 Oct 2014 12:23:22 +0000 (14:23 +0200)]
README.rst: typo/wording fixes

It occurs that hardcoding the URL will not make sense in forks.
Mind you, the whole README won't make much sense in forks.

9 years agodoc: add README.rst especially for github
David Bremner [Fri, 24 Oct 2014 08:25:31 +0000 (10:25 +0200)]
doc: add README.rst especially for github

Apparently README.rst overrides README, so this will show up instead
of our generic README on github.

If the user is already on github, then clicking a link for more
information is not a hardship.

9 years agoVIM: Make starting in 'insert' mode for compose optional
Ian Main [Wed, 1 Oct 2014 17:11:28 +0000 (10:11 -0700)]
VIM: Make starting in 'insert' mode for compose optional

This adds a variable to make starting in insert mode optional when
composing and replying to emails.  I found it unusual to be started in
insert mode so I thought I'd make it optional as others may find this as
well.

    Ian

9 years agoVIM: Use notmuch CLI for config
Ian Main [Thu, 2 Oct 2014 23:47:15 +0000 (16:47 -0700)]
VIM: Use notmuch CLI for config

This patch switches from reading .notmuch-config directly to using
the CLI the same way that emacs does it.  It actually uses less code
and is probably less error prone.

    Ian

9 years agotest: check for gdb in insert tests
David Bremner [Sat, 18 Oct 2014 06:13:42 +0000 (08:13 +0200)]
test: check for gdb in insert tests

Commits a6cee01 and c48b12f otherwise break the build for people
without gdb.

9 years agotest/insert: check that indexing errors are accepted with --keep
David Bremner [Fri, 3 Oct 2014 21:19:00 +0000 (23:19 +0200)]
test/insert: check that indexing errors are accepted with --keep

This is overkill for the current code path, but should provide some
robustness for future changes in error handling.

9 years agocli/insert: require succesful message indexing for success status
Jani Nikula [Fri, 3 Oct 2014 21:18:59 +0000 (23:18 +0200)]
cli/insert: require succesful message indexing for success status

Add --keep option to keep any remaining stuff in index or file. We
could distinguish between failures to index and failures to apply tags
or maildir sync, but for simplicity just have one.

9 years agocli/insert: add fail path to add_file_to_database
Jani Nikula [Fri, 3 Oct 2014 21:18:58 +0000 (23:18 +0200)]
cli/insert: add fail path to add_file_to_database

Handle failures gracefully in add_file_to_database, renamed simply
add_file while at it. Add keep option to not remove the message from
database if tagging or tag syncing to maildir flags fails. Expand the
function documentation to cover the changes.

9 years agotest/insert: add known broken tests for indexing failures
David Bremner [Fri, 3 Oct 2014 21:18:57 +0000 (23:18 +0200)]
test/insert: add known broken tests for indexing failures

These tests are written with the assumption that we want all indexing
failures to be considered as failures by notmuch insert.

9 years agolib: Handle empty date value
Austin Clements [Mon, 6 Oct 2014 23:17:09 +0000 (17:17 -0600)]
lib: Handle empty date value

In the interest of robustness, avoid undefined behavior of
sortable_unserialise if the date value is missing.  This shouldn't
happen now, but ghost messages will have blank date values.

9 years agolib: Refactor _notmuch_database_link_message
Austin Clements [Mon, 6 Oct 2014 23:17:08 +0000 (17:17 -0600)]
lib: Refactor _notmuch_database_link_message

This moves the code to retrieve and clear the metadata thread ID out
of _notmuch_database_link_message into its own function.  This will
simplify future changes.

9 years agolib: Move message ID compression to _notmuch_message_create_for_message_id
Austin Clements [Mon, 6 Oct 2014 23:17:07 +0000 (17:17 -0600)]
lib: Move message ID compression to _notmuch_message_create_for_message_id

Previously, this was performed by notmuch_database_add_message.  This
happens to be the only caller currently (which is why this was safe),
but we're about to introduce more callers, and it makes more sense to
put responsibility for ID compression in the lower-level function
rather than requiring each caller to handle it.

9 years agoNEWS: mention the change in default build flags
David Bremner [Sun, 5 Oct 2014 05:53:28 +0000 (07:53 +0200)]
NEWS: mention the change in default build flags

It blows things up by a factor of six or so, so it's worth giving
people a heads up. It won't effect e.g. Debian, that already builds
with -g and then strips.