summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-04-22doc: remove conf.pyc on cleandebian/0.18_rc0-10.18_rc0David Bremner
This build artifict messes up the packaging process for (at least) Debian if not removed on clean.
2014-04-22python: bump versionDavid Bremner
2014-04-22NEWS: bump versionDavid Bremner
As usual, we'll just edit the version in place for release candidates.
2014-04-22debian: NEWS item about database upgradeDavid Bremner
2014-04-22debian: changelog stanza for 0.18~rc0-1David Bremner
- make versions match to pacify release-checks.sh - close a few more bugs. - fix one HTMLism
2014-04-22version: bump to 0.18~rc0David Bremner
Start the promised feature freeze
2014-04-21doc: Simplify and clarify notmuch show --format=sexp descriptionAustin Clements
Previously, this was a verbatim copy of the --format=json text. Change it to instead reference the JSON text and actually describe how the S-expression format works.
2014-04-21doc: Clarify charset encoding of JSON outputAustin Clements
2014-04-21doc: Fix minor formatting issues in notmuch-show.rstAustin Clements
There were some extra line breaks and missing periods.
2014-04-21doc: Clarify notmuch show --format=raw descriptionAustin Clements
In addition to being generally more precise, this is explicit that there is no charset conversion.
2014-04-21emacs: hello: bugfix for saved searches defcustomMark Walters
The recent changes for saved searches introduced a bug when notmuch was loaded after the saved search was defined. This was caused by a utility function not being defined when the defcustom was loaded. Fix this by moving some code around: the defcustom is moved into notmuch-hello (which is a more natural place anyway), and the utility functions are moved before the defcustom in notmuch-hello. We are rather constrained as the defcustom for saved searches is the first variable in the notmuch-hello customize window; to avoid moving this customize the defcustom needs to be the first defcustom in notmuch-hello, and the utility functions come before that. This patch also renames one of the utility functions from notmuch--saved-searches-to-plist to notmuch-hello--saved-searches-to-plist (as it is purely local to notmuch-hello) and corrects a couple of typo/spelling mistakes pointed out by Tomi.
2014-04-21doc/prerst2man.py: Fix 'os.system' -> 'system' typoW. Trevor King
Avoid: $ make HAVE_SPHINX=0 HAVE_RST2MAN=1 build-man python ./doc/prerst2man.py ./doc doc/_build/man Traceback (most recent call last): File "./doc/prerst2man.py", line 65, in <module> os.system('set -x; rst2man {0} {1}/{2}.{3}' NameError: name 'os' is not defined make: *** [doc/_build/man/man1/notmuch.1] Error 1 by using system directly. We don't need the 'os.' namespacing, because the function was imported with: from os import makedirs, system
2014-04-21doc/prerst2man.py: Use Python-3-compatible octal notationW. Trevor King
Python 3 only supports the 0oXXX notation for octal literals [1,2], which have also been supported in 2.x since 2.6 [2]. [1]: https://docs.python.org/3.0/whatsnew/3.0.html#integers [2]: http://legacy.python.org/dev/peps/pep-3127/
2014-04-21doc/mkdocdeps.py: Use "with" statement for the output fileW. Trevor King
Before this patch, the open was unnecessarily early and relied on the process cleanup to close. Neither one of these was a real problem, but PEP 343's context managers (which landed in Python 2.5) make proper cleanup very easy. [1]: http://legacy.python.org/dev/peps/pep-0343/
2014-04-21doc/mkdocdeps.py: Convert execfile to importW. Trevor King
excefile is gone in Python 3 [1]. Instead of exec-ing the configuration, it's easier to insert the source directory in Python's path [2], and just import the configuration. With this change, mkdocdeps.py is compatible with both Python 2 and 3. [1]: https://docs.python.org/3.0/whatsnew/3.0.html#builtins [2]: https://docs.python.org/3/library/sys.html#sys.path
2014-04-21NEWS for displaying tag changesMark Walters
2014-04-19doc: make notmuch-new summary line more genericDavid Bremner
Since 'notmuch new' now takes multiple options, it's confusing to show only one of them in the summary.
2014-04-19News for changes from Austin ClementsAustin Clements
2014-04-19emacs: Honor debug-on-error for part renderersAustin Clements
Previously, even if debug-on-error was non-nil, the debugger would not trap on part renderer errors. This made debugging part renderer bugs frustrating, so let the debugger trap these errors.
2014-04-19configure: fix comment, pass HAVE_CANONICALIZE_FILE_NAME to buildDavid Bremner
Apparently omitting it is not fatal, but let's be consistent with the other compat functions.
2014-04-19build: add canonicalize_file_name to symbols exported from libnotmuch.soDavid Bremner
This is needed for our compat version of canonicalize_file_name to be used.
2014-04-19doc: Fix parallel build of roff filesAustin Clements
The roff build rule builds all of the roff files in a single command. Previously, this was expressed as a multi-target rule, but since this is equivalent to specifying a copy of the rule for each target, make -jN could start up to N parallel instances of this command. Fix this by bottlenecking this rule through a single stamp file. This also removes the unused man.stamp from CLEAN.
2014-04-19NEWS: notmuch-init-file and notmuch-emacs-version related newsTomi Ollila
Along with those, removed trailing space from subsection title.
2014-04-18NEWS: Document the recent 'nmbug clone' and @{upstream} changesW. Trevor King
The changes landed with c200167 (nmbug: Add 'clone' and replace FETCH_HEAD with @{upstream}, 2014-03-09). The preferred markup language for NEWS seems to be Markdown, which is parsed by devel/news2wiki.pl into Markdown chunks for rendering by ikiwiki [1]. [1]: http://notmuchmail.org/news/
2014-04-18test: use test_expect_equal for PATH test, update messageDavid Bremner
- The old test was quite impossible to debug; the new one shows the difference between the two directories, if any. - "repository" doesn't make sense for out of tree builds. Or tarball builds, for that matter.
2014-04-15nmbug: mark repository as bare on cloneDavid Bremner
If a git repository is non-bare, and core.worktree is not set, git tries to deduce the worktree. This deduction is not always helpful, e.g. % git --git-dir=$HOME/.nmbug clean -f would likely delete most of the files in the current directory
2014-04-14NEWS: document possible breakage from saved-search format changeMark Walters
If the user has unsorted or alphabetically sorted saved-searches these should continue to work. If they have some custom lisp sort function then it will need updating to work with the new saved-sort format. Document this, and how the updating should be done. Also roll in fixes for the markdown in the first part of the NEWS suggested by Tomi: change `just work' to *just work* and removed periods from the end of subtitle lines.
2014-04-14emacs: hello: bugfix: make alphabetically sorted saved searches workMark Walters
My recent changes to the saved search format broke the alphabetically sorted saved sort option. This makes it work again. Also update docs for saved-search sort defcustom to match the new format. Finally, since the saved-search list is no longer an alist change the names in the sort function to avoid confusion.
2014-04-14emacs: remove auto-signing of replies to signed messagesJameson Graef Rollins
It was decided that auto-signing is potentially too troublesome for the apparently common case of users who enable crypto processing for the purpose of checking signature validity but who are not in a position to sign out-going messages. Users can still manually invoke signing as needed. Encrypting replies to encrypted messages is more of a security issue so we leave it in place.
2014-04-13emacs: add $(srcdir) to notmuch-version.el.tmpl dependencyTomi Ollila
This fixes out-of-tree build when generating emacs/notmuch-version.el.
2014-04-13configure: add $(ZLIB_CFLAGS) to CONFIGURE_CFLAGSTomi Ollila
As it is defined in CONFIGURE_CXXFLAGS.
2014-04-12emacs: sign/encrypt replies to signed/encrypted messagesJani Nikula
This is a simple approach to improving security when replying to signed or encrypted messages. If the message being replied to was signed, add mml tag to sign the reply. If the message being replied to was encrypted, add mml tag to sign and encrypt the reply. This may need configuration; I for one might want to encrypt replies to encrypted messages, but not always sign replies to signed messages. This still includes a slight bug: if any mml tags are added, they are included in the region containing the quoted parts. Killing the region will kill the mml tags too.
2014-04-12test: verify tag backup generated by database upgradeDavid Bremner
'pre upgrade dump' is not much of a test, but at least this way we get somewhat sensible behaviour if it fails.
2014-04-12notmuch-new: backup tags before database upgradeDavid Bremner
All we do here is calculate the backup filename, and call the existing dump routine. Also take the opportunity to add a message about being safe to interrupt.
2014-04-12restore: transparently support gzipped inputDavid Bremner
We rely completely on zlib to do the right thing in detecting gzipped input. Since our dump format is chosen to be 7 bit ascii, this should be fine.
2014-04-12test: restore with missing final newlineDavid Bremner
Recent proposed patches for gzipped input had a bug with handling missing newlines that was not caught by the current test suite
2014-04-12util: add gz_readlineDavid Bremner
The idea is to provide a more or less drop in replacement for readline to read from zlib/gzip streams. Take the opportunity to replace malloc with talloc.
2014-04-12dump: support gzipped and atomic outputDavid Bremner
The main goal is to support gzipped output for future internal calls (e.g. from notmuch-new) to notmuch_database_dump. The additional dependency is not very heavy since xapian already pulls in zlib. We want the dump to be "atomic", in the sense that after running the dump file is either present and complete, or not present. This avoids certain classes of mishaps involving overwriting a good backup with a bad or partial one.
2014-04-11News for emacs saved-searches change.Mark Walters
The important point is that the changed search variable is not forward compatible (it *is* backwards compatible): that is previous version of notmuch-emacs will be unusable with a new style notmuch-saved-search variable.
2014-04-11emacs: Add a sort-order option to saved-searchesMark Walters
This adds a sort-order option to saved-searches, stores it in the saved-search buttons (widgets), and uses the stored value when the button is pressed. Storing the sort-order in the widget was suggested by Jani in id:4c3876274126985683e888641b29cf18142a5eb8.1391771337.git.jani@nikula.org.
2014-04-11emacs: hello: switch notmuch-hello-insert-buttons to plistsMark Walters
Switching notmuch-hello-insert-buttons to plists means we can easily pass extra options through to the buttons.
2014-04-11emacs: hello: add a customize for saved-searchesMark Walters
Make the defcustom for notmuch-saved-searches use the new plist format. It should still work with oldstyle saved-searches but will write the newstyle form.
2014-04-11emacs: hello: use the saved-search helper functionsMark Walters
This uses the helper functions: the saved searches format has not changed yet but backwards compatibility means everything still works.
2014-04-11emacs: hello: add helper functions for saved-searchesMark Walters
Add helper functions to for saved searches to ease the transition to the new plist form while maintaining backwards compatibility. They will be used in the next patch.
2014-04-10emacs: defun notmuch-hello-versions and bind 'v' in hello mode to itTomi Ollila
If notmuch cli & notmuch emacs MUA versions differ, print also the emacs MUA version string (along with the cli version) to the minibuffer.
2014-04-10emacs: add notmuch-version.el.tmpl and create notmuch-version.el from itTomi Ollila
The notmuch cli program and emacs lisp versions may differ (especially in remote usage). It helps to resolve problems if we can determine the versions of notmuch cli and notmuch emacs mua separately. The build process now creates notmuch-version.el from template file by filling the version info to notmuch-emacs-version variable.
2014-04-10build: write version.stamp file containing $(VERSION) stringTomi Ollila
This version file will be as prerequisite to the target files that use the version info for some purpose, like printing it for the user to examine. The contents of the version.stamp file is seldom read by the build system itself as the $(VERSION) variable has the same information. Thanks to Trevor, David and Mark for their contributions.
2014-04-08nmbug: Add 'clone' and replace FETCH_HEAD with @{upstream}W. Trevor King
With two branches getting fetched (master and config), the branch referenced by FETCH_HEAD is ambiguous. For example, I have: $ cat FETCH_HEAD 41d7bfa7184cc93c9dac139d1674e9530799e3b0 \ not-for-merge branch 'config' of http://nmbug.tethera.net/git/nmbug-tags acd379ccb973c45713eee9db177efc530f921954 \ not-for-merge branch 'master' of http://nmbug.tethera.net/git/nmbug-tags (where I wrapped the line by hand). This means that FETCH_HEAD references the config branch: $ git rev-parse FETCH_HEAD 41d7bfa7184cc93c9dac139d1674e9530799e3b0 which breaks all of the FETCH_HEAD logic in nmbug (where FETCH_HEAD is assumed to point to the master branch). Instead of relying on FETCH_HEAD, use @{upstream} as the remote-tracking branch that should be merged/diffed/integrated into HEAD. @{upstream} was added in Git v1.7.0 (2010-02-12) [1], so relying on it should be fairly safe. One tricky bit is that bare repositories don't set upstream tracking branches by default: $ git clone --bare http://nmbug.tethera.net/git/nmbug-tags.git nmbug-bare $ cd nmbug-bare $ git remote show origin * remote origin Fetch URL: http://nmbug.tethera.net/git/nmbug-tags.git Push URL: http://nmbug.tethera.net/git/nmbug-tags.git HEAD branch: master Local refs configured for 'git push': config pushes to config (up to date) master pushes to master (up to date) While in a non-bare clone: $ git clone http://nmbug.tethera.net/git/nmbug-tags.git $ cd nmbug-tags $ git remote show origin * remote origin Fetch URL: http://nmbug.tethera.net/git/nmbug-tags.git Push URL: http://nmbug.tethera.net/git/nmbug-tags.git HEAD branch: master Remote branches: config tracked master tracked Local branch configured for 'git pull': master merges with remote master Local ref configured for 'git push': master pushes to master (up to date) From the clone docs [2]: --bare:: Make a 'bare' Git repository… Also the branch heads at the remote are copied directly to corresponding local branch heads, without mapping them to `refs/remotes/origin/`. When this option is used, neither remote-tracking branches nor the related configuration variables are created. To use @{upstream}, we need to the local vs. remote-tracking distinction, so this commit adds 'nmbug clone', replacing the previously suggested --bare clone with a non-bare --no-checkout --separate-git-dir clone into a temporary work directory. After which: $ git rev-parse @{upstream} acd379ccb973c45713eee9db177efc530f921954 gives us the master-branch commit. Existing nmbug users will have to run the configuration tweaks and re-fetch by hand. If you don't have any local commits, you could also blow away your NMBGIT repository and re-clone from scratch: $ nmbug clone http://nmbug.tethera.net/git/nmbug-tags.git Besides removing the ambiguity of FETCH_HEAD, this commit allows users to configure which upstream branch they want nmbug to track via 'git config', in case they want to change their upstream repository. [1]: http://git.kernel.org/cgit/git/git.git/tree/Documentation/RelNotes/1.7.0.txt [2]: http://git.kernel.org/cgit/git/git.git/tree/Documentation/git-clone.txt
2014-04-08release-checks: removed manual page version checkTomi Ollila
Manual pages are now generated and during the generation the version string is read from `version` file, so this (currently failing) test checking manual page versions can be removed. While at it, changed the case pattern *[^0-9.]* to its portable alternative *[!0-9.]*
2014-04-08doc: added 'Init File' section to notmuch-emacs info sourceTomi Ollila
While adding that fixed (also other) typos noticed by aspell(1) run, and capitalized Emacs and (most) Notmuch terms to match how emacs Info documentation seems to look in general.