Commit graph

5162 commits

Author SHA1 Message Date
David Bremner
53035dafe0 lib, ruby: make use of -Wl,--no-undefined configurable
In particular this is supposed to help build on systems (presumably
using a non-gnu ld) where this flag is not available.
2015-06-13 17:52:48 +02:00
Mark Walters
4e79903449 emacs search: stash query
Add keybinding c q to stash the current query in search mode.
2015-06-13 08:16:56 +02:00
David Bremner
d038b93209 build: integrate building ruby bindings into notmuch build process
Because ruby generates a Makefile, we have to use recursive make.
Because mkmf.rb hardcodes the name Makefile, put our Makefile{.local}
in the parent directory.
2015-06-12 09:12:28 +02:00
David Bremner
32fd74b7aa lib: reject relative paths in n_d_{create,open}_verbose
There are many places in the notmuch code where the path is assumed to be absolute. If someone (TM) wants a project, one could remove these assumptions. In the mean time, prevent users from shooting themselves in the foot.

Update test suite mark tests for this error as no longer broken, and
also convert some tests that used relative paths for nonexistent
directories.
2015-06-12 07:34:50 +02:00
David Bremner
b59ad1a9cc lib: add NOTMUCH_STATUS_PATH_ERROR
The difference with FILE_ERROR is that this is for things that are
wrong with the path before looking at the disk.

Add some 3 tests; two broken as a reminder to actually use this new
code.
2015-06-12 07:34:47 +02:00
Tomi Ollila
a5a21bbe78 release-checks: check that git working directory is clean
Before release check that there are no uncommitted changes and
that there are no files in working directory that possibly should
have been added to the repository.

Amended by db: remove --ignored, since that seems like too much
trouble.
2015-06-09 19:33:22 +02:00
David Bremner
783a559968 test: redirect man output to /dev/null
In the case the these tests fail, they generate a bunch of output;
this output is not very interesting because it is just the successful
output of a man page. It does however make it hard to see what tests are actually failing, even with NOTMUCH_TEST_QUIET
2015-06-08 16:42:26 +02:00
David Bremner
98b6638a7a configure: add ability to force python version via environment
This is makes it a bit easier to run our test suite under alternative
python versions.
2015-06-08 16:42:01 +02:00
David Bremner
ee1f573204 test: make python tests compatible with python3
Making the test suite actually run them with python3 is left for
future work.
2015-06-08 16:41:53 +02:00
David Bremner
9f57b7e8c5 doc: add minimal note about shared options.
The example is a bit silly, but notmuch subcommand --help is actually
not equivalent to "notmuch --help subcommand".
2015-06-05 18:51:15 +02:00
David Bremner
243d7e30dc Merge branch 'release'
20.1 plus NEWS fixup
2015-06-02 06:37:59 +02:00
David Bremner
0291ec71b6 NEWS: missing NEWS for 20.1
Embarrassingly, these were not included in the actual 20.1 release
2015-06-02 06:34:48 +02:00
David Bremner
d22df9503b debian: change stanza for 0.20.1 2015-06-01 22:00:11 +02:00
David Bremner
dc840338b2 version: bump to 20.1 2015-06-01 21:47:35 +02:00
David Bremner
447ad6b498 cli: add standard option processing to config, help and setup
In particular this fixes a recently encountered bug where the
"--config" argument to "notmuch setup" is silently ignored, which the
unpleasant consequence of overwriting the users config file.
2015-06-01 07:32:54 +02:00
David Bremner
0018a8d787 cli: define shared options, use for --help and --version
Unfortunately it seems trickier to support --config globally

The non-trivial changes are in notmuch.c; most of the other changes
consists of blindly inserting two lines into every subcommand.
2015-06-01 07:32:54 +02:00
David Bremner
0706e0e3e2 cli: refactor notmuch_help_command
Create a new private entry point _help_for so that we can call help
without simulating a command line invokation to set up the arguments.
2015-06-01 07:32:54 +02:00
David Bremner
1d4321ffa5 cli: ignore config argument of notmuch_help_command
We call it with NULL at one point anyway, so it needs to work with
NULL. Since the only place we use talloc is right before exec, there
is no harm in always using NULL.
2015-06-01 07:32:54 +02:00
J. Lewis Muir
d08af93c65 cli: change "setup" to "set up" where used as a verb
The word "setup" is a noun, not a verb.  Change occurrences of "setup"
where used as a verb to "set up".
2015-05-31 19:14:42 +02:00
Charles Celerier
1896ad9714 emacs: Added "is:<tag>" style completion to notmuch-read-query.
The notmuch-search-terms man page states that "tag:<tag>" is equivalent
to "is:<tag>". Completion for "is:<tag>" style searches is now supported
in the Emacs interface.

Amended by David Bremner: combine lexical-let and let into
lexical-let*
2015-05-31 19:07:02 +02:00
David Bremner
5df1b1bb81 test: remove redundant 'file' command from gdb scripts.
Quoting Debian bug 787341

   It failed to build on arm64: the last ten tests in T070-insert
   failed.

   What's happening here is that GDB is segfaulting in response to
   the
   "file" command. GDB on arm64 can be a bit buggy.

   However, the "file" command is redundant here as GDB has already
   got
   the file from the --args on the command line.
2015-05-31 18:56:10 +02:00
David Bremner
b271763152 notmuch 0.20 release
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQGcBAABCAAGBQJVataHAAoJEPIClx2kp54sshUL/RHYmmGgUxZdGiP0hnmUj+LB
 a4U4Anx4/23iW8nAwcNuSn0S7U9SKV9i1hIoBgFsuLM1sCL7AAHd6VFjRrsJN5Pi
 zcwPGK4PGgZS5LnhOVG4KCRJPTgCMqmTUozhwbhmvhMJtWwykPHn1PqLCnt4ARAh
 ASu9fkbXyuD64RM1sc9XvKCXsUUdFQX6K0zO8raR4ySJFO2w4j7adCD7UC5ViqJz
 sFENdfLDOpBL3F5G5JabukMsjjvxl0AnWz1tA+tdvLh4zbI8YlFR852L40R/M2qa
 ToVNIXwFYvpv3fC/CB5xdx4lALobRYDifK+gJ3Co9VvS/KAxSfK4JLOKIkRqc5dy
 ptuJvwgKpsE0mjBScfkj+Y/ygM1zSJENgPMpcuTWOmHXFAalss1cL9skCDYAsM9B
 qD/9Rl+pWmzTtlxb98czNcouu0JUMaI/hH/lawddck6n1ylaWia8OFHZnYNhB5xV
 mp9mjiG/8D2VtdztLpQTtPxts2APjn+v6TgivmkDhQ==
 =7ZNV
 -----END PGP SIGNATURE-----

Merge tag '0.20'

notmuch 0.20 release
2015-05-31 12:06:40 +02:00
David Bremner
be8e796fd5 NEWS: bump date 2015-05-31 11:26:41 +02:00
David Bremner
042b3cdd36 debian: changelog stanza for 0.20-1 2015-05-31 11:22:34 +02:00
David Bremner
4bc7fba31b version: bump to 0.20 2015-05-31 11:13:56 +02:00
David Bremner
dc951683c3 drop mention of notmuch-emacs-mua 2015-05-31 11:12:13 +02:00
David Bremner
11de429824 notmuch 0.20~rc2 release
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQGcBAABCAAGBQJVYM/TAAoJEPIClx2kp54swJoMAJN9KiVObvYUqF/1uRjfYNUD
 mcHm9l+j2AaU7moAsoWqVjYLEn3Kb2ARx4PdkzpWDsf9SnI3YYQC6KEngomyI2HP
 32Brb7D1wwYjjPF/VZ7pdr36ZdbWfwiyEm9LwqGq2HKRqoEk0MtZm4a3ibrHAqzc
 9G0Mlq9n6M7U7tmw6wNYofXweCA8wK3t0YAzKxRjqNjoCriWYES1g+tcptKLlxWE
 yQL/5Szb2g/huq39qy7PfGE8K5vZyCKH9amLnbHEdZ4SHc4WoddLanpx8JvjaPFg
 ZuMgnG6tiosSzpQAz2IsLEgkmi7WVoZyJYaLH8uDzTpl2rDDkbX7OuCnq79GmYMU
 WzMqdTVi4NCzwVA+B7qUp4dI8NElcfcfdaoS953+nvqAjH50ZdPjfvqE72Tu1ewk
 UJLHRCoCW5eH/O71G+xRnKDuT0dA+4GtabMufvxMlPPL8ulBouh/F5tjCT9NmH2N
 gu/v1pWJkzxiaKWsZYvhA8rPj26TMYVa8EMiU2JG0w==
 =QPzY
 -----END PGP SIGNATURE-----

Merge tag '0.20_rc2'

notmuch 0.20~rc2 release
2015-05-23 21:27:41 +02:00
David Bremner
3d81f496a0 debian: changelog stanza for 0.20~rc2-1 2015-05-23 21:05:25 +02:00
David Bremner
4f96b5be63 version: bump to 0.20~rc2 2015-05-23 21:03:30 +02:00
David Bremner
36bf31658c python: use absolute import for SOVERSION
Apparently python3 needs this.
2015-05-23 20:59:42 +02:00
David Bremner
00ee9ca737 docs: initial draft of NEWS for 0.20
This is meant as much to jog people's memory as to be definitive.
2015-05-23 20:59:42 +02:00
David Bremner
ccd7c0b0e6 configure: Add sanity checking for environment variables
Passing in environment variables incompatible with the compiler may
cause other parts of the configure script to fail in hard to
understand ways, so we abort early.
2015-05-23 20:28:06 +02:00
David Bremner
c5ef2dc448 notmuch 0.20~rc1 release
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQGcBAABCAAGBQJVRy5OAAoJEPIClx2kp54sjzsL/iEw/WXC89RUn5ccq6BFVnJN
 +MDRKnBtP8A9SfAq0X+hqoyRHtLGSd4voff2to8e3/jn4+0qegwf193I7KJZ2r1g
 mQ9ldfohFt4pE06BiixdhrbDhvHgUwWIJb+BIaduD8sXgZ8sHxAwfYOyqr/Pvqf8
 2mTNhoqcLZT5KRCdQ2xSNu+OYsgSVdS6AnIIvgLN4Uf8FmHduiOgsLHa6OmDJZWp
 4jZ9/T2ccS4WZzk1yszGWLdhh+oGyZD+OTIqnhdb5W5R8DdV5u+jUSnhYhcuXJ3I
 68JxI5q355DNtBqK8N6x91dmdgEvhYdChwkkJurEG02xOCQHlVtK3aeRDrnIJnx8
 nQDl8z9ckKRA7Tg6YeSvJq03ib3GYnZQwdMSIuQsUomcdfsZ3/UQpDhYxVFcOiur
 dEfo0Ipxd2SoDfOgvYjFxqwvDK5BIsrcMt6m8e7CwjP6PWx30umfHIRcyywLD6Jn
 Kd37EYYUY/9IV/Y6HQdehXIft/QK6xDiOUznOPqKlg==
 =Hcr2
 -----END PGP SIGNATURE-----

Merge tag '0.20_rc1'

notmuch 0.20~rc1 release
2015-05-04 10:47:22 +02:00
David Bremner
cd29acef4e debian: add new symbols to libnotmuch4.symbols
Since we only add new symbols, no SONAME bump is needed.
2015-05-04 10:18:43 +02:00
David Bremner
93233ba09e debian: call upstream configure script directly
dh defaults for dh_auto_configure are now incompatible with notmuch's
homebrew configure script (at least in debian experimental)
2015-05-04 10:07:44 +02:00
David Bremner
fa11a62de0 version: bump to 0.20~rc1 2015-05-04 08:09:43 +02:00
David Bremner
76b3670202 debian: changelog stanza for 0.20~rc1 2015-05-04 08:08:43 +02:00
Jack Peirce
1ad02d06b5 notmuch-mutt: fix xargs/ln usage for OpenBSD compatibility
- xargs: use -r flag instead of --no-run-if-empty
- ln: use -I flag/3rd form of ln command instead of -t flag/4th form

Signed-off-by: Stefano Zacchiroli <zack@upsilon.cc>
2015-05-04 08:04:38 +02:00
David Bremner
294bb6de20 test: move nonexistent directory to something under notmuch's control.
Apparently some systems actually have a directory called /nonexist[ae]nt.
It's hard to fathom a good reason for that, but oh well. As long as we
don't create such a directory inside the notmuch source tree, the new
version should be more robust.
2015-04-08 23:43:55 +09:00
David Bremner
2e9ecb611a test: be consistent about spelling `nonexistent'
Apparently most of the misspellings are my fault.
2015-04-08 23:43:55 +09:00
Mark Walters
6518f0d2bc emacs: show: hide large text attachments by default
notmuch-show can be slow displaying large attachments so hide them by
default. The default maximum size is 10000 bytes/characters but it is
customizable.

Note that notmuch-show-insert-bodypart is also called from the reply
code so we need to be a little careful.
2015-04-03 09:29:05 +09:00
Tomi Ollila
3d1483df12 test/thread-order: more robust loop exit in case of broken input
When creating $THREADS data it may end of not having 'None' at all
or the numbers in line output yields a loop.

To avoid loop the value in current array index is set to 'None'
so that if the same item is reached again the loop will end.

Also empty string as next array index will end the loop.
2015-04-03 09:27:57 +09:00
Tomi Ollila
0fa9cf75e5 notmuch-emacs-mua: non-forking escape () usage with backslash '\' escape
Use the printf -v convention to give output variable as argument
to escape () function so no subshell needs to be executed for
escaping input. The '-v' option to escape () is just syntactic
sugar for better understanding.

Also, backslash is now escaped with another backslash for emacs. This
ie especially important at the end of string.

`echo` is no longer used to write escaped output -- it might interpret
the escapes itself.
2015-04-03 09:27:35 +09:00
W. Trevor King
244f873954 nmbug-status: Use 'show-ref --heads' for loading configs
When loading configs from Git, the bare branch name (without a
refs/heads/ prefix or similar) matches all branches of that name
(including remote-tracking branches):

  .nmbug $ git show-ref config
  48f3bbf1d1492e5f3d2f01de6ea79a30d3840f20 refs/heads/config
  48f3bbf1d1492e5f3d2f01de6ea79a30d3840f20 refs/remotes/origin/config
  4b6dbd9ffd152e7476f5101eff26747f34497cee refs/remotes/wking/config

Instead of relying on the ordering of the matching references, use
--heads to ensure we only match local branches.
2015-04-01 06:16:06 +02:00
W. Trevor King
a351df1a06 NEWS: fix 'not' -> 'now' typo in 0.19 nmbug section 2015-04-01 06:15:30 +02:00
David Bremner
703c8f9511 test: make one error output test more robust.
Since notmuch_database_status_string can return NULL, passing it
directly to fputs is not a good idea.
2015-03-29 09:50:01 +02:00
David Bremner
6a99505625 test: add more error reporting tests
This second half of the error reporting tests actually uses the function
notmuch_database_status_string to retrieve the last logged error
2015-03-29 00:34:15 +01:00
David Bremner
9d192da683 lib: eliminate fprintf from _notmuch_message_file_open
You may wonder why _notmuch_message_file_open_ctx has two parameters.
This is because we need sometime to use a ctx which is a
notmuch_message_t. While we could get the database from this, there is
no easy way in C to tell type we are getting.
2015-03-29 00:34:15 +01:00
David Bremner
736ac26407 lib: replace almost all fprintfs in library with _n_d_log
This is not supposed to change any functionality from an end user
point of view. Note that it will eliminate some output to stderr. The
query debugging output is left as is; it doesn't really fit with the
current primitive logging model. The remaining "bad" fprintf will need
an internal API change.
2015-03-29 00:34:15 +01:00
David Bremner
9b73a8bcc9 lib: add private function to extract the database for a message.
This is needed by logging in functions outside message.cc that take
only a notmuch_message_t object.
2015-03-29 00:34:15 +01:00