summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-06-01debian: change stanza for 0.20.10.20.1David Bremner
2015-06-01version: bump to 20.1David Bremner
2015-05-31test: remove redundant 'file' command from gdb scripts.David Bremner
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-31NEWS: bump date0.20David Bremner
2015-05-31debian: changelog stanza for 0.20-1David Bremner
2015-05-31version: bump to 0.20David Bremner
2015-05-31drop mention of notmuch-emacs-muaDavid Bremner
2015-05-23debian: changelog stanza for 0.20~rc2-1David Bremner
2015-05-23version: bump to 0.20~rc2David Bremner
2015-05-23python: use absolute import for SOVERSIONDavid Bremner
Apparently python3 needs this.
2015-05-23docs: initial draft of NEWS for 0.20David Bremner
This is meant as much to jog people's memory as to be definitive.
2015-05-04debian: add new symbols to libnotmuch4.symbolsDavid Bremner
Since we only add new symbols, no SONAME bump is needed.
2015-05-04debian: call upstream configure script directlyDavid Bremner
dh defaults for dh_auto_configure are now incompatible with notmuch's homebrew configure script (at least in debian experimental)
2015-05-04version: bump to 0.20~rc1David Bremner
2015-05-04debian: changelog stanza for 0.20~rc1David Bremner
2015-05-04notmuch-mutt: fix xargs/ln usage for OpenBSD compatibilityJack Peirce
- 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-04-08test: move nonexistent directory to something under notmuch's control.David Bremner
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-08test: be consistent about spelling `nonexistent'David Bremner
Apparently most of the misspellings are my fault.
2015-04-03emacs: show: hide large text attachments by defaultMark Walters
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-03test/thread-order: more robust loop exit in case of broken inputTomi Ollila
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-03notmuch-emacs-mua: non-forking escape () usage with backslash '\' escapeTomi Ollila
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-01nmbug-status: Use 'show-ref --heads' for loading configsW. Trevor King
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-01NEWS: fix 'not' -> 'now' typo in 0.19 nmbug sectionW. Trevor King
2015-03-29test: make one error output test more robust.David Bremner
Since notmuch_database_status_string can return NULL, passing it directly to fputs is not a good idea.
2015-03-29test: add more error reporting testsDavid Bremner
This second half of the error reporting tests actually uses the function notmuch_database_status_string to retrieve the last logged error
2015-03-29lib: eliminate fprintf from _notmuch_message_file_openDavid Bremner
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-29lib: replace almost all fprintfs in library with _n_d_logDavid Bremner
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-29lib: add private function to extract the database for a message.David Bremner
This is needed by logging in functions outside message.cc that take only a notmuch_message_t object.
2015-03-29lib: add a log function with output to a string in notmuch_database_tDavid Bremner
In principle in the future this could do something fancier than asprintf.
2015-03-29lib: add "verbose" versions of notmuch_database_{open,create}David Bremner
The compatibility wrapper ensures that clients calling notmuch_database_open will receive consistent output for now. The changes to notmuch-{new,search} and test/symbol-test are just to make the test suite pass. The use of IGNORE_RESULT is justified by two things. 1) I don't know what else to do. 2) asprintf guarantees the output string is NULL if an error occurs, so at least we are not passing garbage back.
2015-03-29test: add error reporting testsDavid Bremner
This first half of the tests is all that don't need to retrieve the the error string explicitly from the notmuch database structure.
2015-03-29test: add support for compiling and running C snippetsDavid Bremner
This is to limit the copy-pasta involved in running C tests. I decided to keep things simple and not try to provide an actual C skeleton. The setting of LD_LIBRARY_PATH is to force using the built libnotmuch rather than any potential system one.
2015-03-15test: Add two tests for error output from notmuch_database_openDavid Bremner
This is arguably testing the same thing twice, but in the brave new future where we don't use printf anymore, each subcommand will be responsible for handling the output on it's own.
2015-03-15nmbug-status: Clarify errors for illegible configsW. Trevor King
Carl Worth pointed out that errors like: $ ./nmbug-status fatal: Not a git repository: '/home/cworth/.nmbug' fatal: Not a git repository: '/home/cworth/.nmbug' Traceback (most recent call last): File "./nmbug-status", line 254, in <module> config = read_config(path=args.config) File "./nmbug-status", line 73, in read_config return json.load(fp) File "/usr/lib/python2.7/json/__init__.py", line 290, in load **kw) File "/usr/lib/python2.7/json/__init__.py", line 338, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded are not particularly clear. With this commit, we'll get output like: $ ./nmbug-status fatal: Not a git repository: '/home/wking/.nmbug' No local branch 'config' in /home/wking/.nmbug. Checkout a local config branch or explicitly set --config. which is much more accessible. I've also added user-friendly messages for a number of other config-parsing errors.
2015-03-13lib: make notmuch_query_count_messages explicitely exactJani Nikula
The default is actually exact if no checkatleast parameter is specified. This change makes that explicit, mainly for documentation, but also to be safe in the unlikely event of a change of default. [ commit message rewritten by db based on id:87lho0nlkk.fsf@nikula.org ]
2015-03-13completion: complete addresses in from:/to: search termsJani Nikula
Use the new notmuch address command to do completion for addresses in from: and to:. Use --output=sender for both for efficiency, even though --output=recipients would be more accurate for to: prefix completion.
2015-03-11cli: add support for notmuch command --helpJani Nikula
Recognize 'notmuch command --help' at the top level as a special case, and show help for the command. Note that for simplicity, --help is only recognized as the first option for the subcommand.
2015-03-11cli: fix top level --help combined with other optionsJani Nikula
If the top level --help is combined with other options, help fails. For example: $ notmuch --version --help Sorry, --help is not a known command. There's not much I can do to help. Fix this by adjusting argc and argv appropriately. The help command ignores argv[0] anyway, so we don't have to set it to "help".
2015-03-11CLI: make gpg binary used by libgmime configurable.David Bremner
Previously we set up a way for the top level notmuch command to choose which gpg binary was invoked by libgmime. In this commit we add the (mostly boilerplate) code to allow the notmuch-config command to read and write this path, and use it in the appropriate struct. Update tests for new default variable
2015-03-09CLI: set up infrastructure to make path to gpg configurable.David Bremner
GMIME takes a path to gpg, but we hardcode that path. In this commit we set up argument passing and option storage to allow this path to specified in the top level notmuch command.
2015-03-08python: replace hardcoding of SONAME versionDavid Bremner
Failing to update this string in globals.py causes failures when the SONAME changes. In order to hopefully reduce the number of such errors, automate the process of setting the SONAME in the python bindings.
2015-03-08man: fix notmuch-emacs-mua environment sectionJani Nikula
It's emacsclient command, not comment. Document default values. While at it, format the environment section similarly to other man pages.
2015-03-08notmuch-emacs-mua: remove -C to keep short options compatible with muttJani Nikula
Notmuch uses long options exclusively all around. The short options in notmuch-emacs-mua are intentionally just a compatible subset of mutt(1). Keep it this way, if only to make documenting the fact easy! The Notmuch style --client long option remains, of course.
2015-03-08go: add binding for notmuch_message_get_dateTrevor Jim
2015-03-07lib: bump library minor versionDavid Bremner
This should have happened in commit 326e18856, but it didn't.
2015-03-07parse-time-string: fix setting and rounding of secondsJani Nikula
If seconds are not specified in the string to be parsed, they're not set according to the reference time (in the no rounding case) nor rounded properly (in the rounding up cases). Fix this. The bug caused searches such as date:10:30..10:30 to match messages with date exactly 10:30:00 only, and not in range 10:30:00..10:30:59 (inclusive) as documented. Note that date searches referring "noon" or "5pm" will still be interpreted as exact to the second.
2015-03-06test: extract and flag second rounding tests as brokenJani Nikula
Extract and add some more tests relating to rounding seconds into a separate subtest, and flag it as broken. If seconds are not specified, the time is not set or rounded according to the interface defined in parse-time-string/parse-time-string.h. Instead, seconds are always set to 00 in reality, which is broken.
2015-03-06test: add some more time testsJani Nikula
Ensure the seconds are set properly.
2015-03-06test: improve the time parsing testsJani Nikula
Set the reference time to 12:13:14 instead of 11:11:00 to ensure hours and minutes are not mixed up, and seconds are really set instead of defaulted to 00.
2015-03-06completion: update list of commands in zsh completion.David Bremner
This is actually generated by the script in id:1420289900-29717-2-git-send-email-david@tethera.net We may as well update the list of commands while we decide if it's worth automating the process. Note that there is a bit more noise than expected because it alphabetizes all of the commands with their own man pages.