aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-01-21emacs: invert relation between 'notmuch-send and 'message customization groupsPieter Praet
'message contains options relevant to 'notmuch-send, not the other way around. Thanks to Austin for suggesting `custom-add-to-group'. id:"20120118184408.GD16740@mit.edu"
2012-01-21emacs: Improved printing support.David Edmondson
Add various functions to print notmuch messages and tie them together with a simple frontend. Add a binding ('#') in `notmuch-show-mode' to print the current message. one trailing space removed by db.
2012-01-21Document external dependencies in the test suiteEthan Glasser-Camp
Add an explicit note to the README explaining what programs are necessary and the perhaps-surprising behavior of skipping tests if they aren't present. Signed-off-by: Ethan Glasser-Camp <ethan@betacantrips.com>
2012-01-21emacs: Truncate lines and do not enable visual-line-mode in notmuch-show buffers.David Edmondson
Enable the truncation of lines in `notmuch-show-mode' to avoid visual noise caused by the wrapping of the header lines. Don't enable `visual-line-mode' because it disables line truncation. The benefits of `visual-line-mode' were that it wrapped long lines in received messages. With `notmuch-wash-wrap-long-lines' now default behaviour, this is no longer required.
2012-01-21emacs: globally replace non-branching "(if (not ..." with "(unless ..."Pieter Praet
Less code, same results, without sacrificing readability.
2012-01-20config: Better formatting for search section commentAustin Clements
Since "auto_exclude_tags" is long and its description is multi-line, start the description on the next line and indent it consistently.
2012-01-19News for tag exclusionAustin Clements
2012-01-19emacs: logically group def{custom,face}sPieter Praet
To allow for expansion whilst keeping everything tidy and organized, move all defcustom/defface variables to the following subgroups, defined in notmuch-lib.el: - Hello - Search - Show - Send - Crypto - Hooks - External Commands - Appearance As an added benefit, defcustom keyword args are now consistently ordered as they appear @ defcustom's docstring (OCD much?). Proper defgroup docstrings and various other improvements by courtesy of Austin Clements.
2012-01-19Fix dependency generation for compat, test, and utilAustin Clements
This adds source files in compat, test, and util to SRCS so that the top-level Makefile.local will generate dependency files for them.
2012-01-19Fix dependency generation for CLI sourcesAustin Clements
Previously, the dependency file list was generated before the CLI sources were added to SRCS, so dependency files weren't generated for CLI sources. This moves that code to after the CLI sources are added.
2012-01-17Start devel directory for developer tools and documentation.David Bremner
We had a lot of back and forth about the name of this directory, but nothing very conclusive. In the end, I just chose "devel" just to move on.
2012-01-17fix .gitignore for gzipped man pagesJani Nikula
2012-01-17Revert "emacs: Don't attempt to colour tags in `notmuch-show-mode'."David Bremner
This reverts commit 4b256ff557e924fbaffca144d25a9d5f92026146. According to id:"87aa5nlwwg.fsf@praet.org" and followup messages, the assumptions of the patch seem not to hold in emacs 23.
2012-01-17NEWS: consistent 2-space indentationTomi Ollila
In NEWS file, indentation for item descriptions is generally 2 spaces but in a few cases there were 3 or 4 (4 caused different markdown handling) space indentations. Indentation in those lines are brought to consistent 2-space indentation.
2012-01-16search: Support automatic tag exclusionsAustin Clements
This adds a "search" section to the config file and an "auto_tag_exclusions" setting in that section. The search and count commands pass tag tags from the configuration to the library.
2012-01-16lib: Add support for automatically excluding tags from queriesAustin Clements
This is useful for tags like "deleted" and "spam" that people generally want to exclude from query results. These exclusions will be overridden if a tag is explicitly mentioned in a query.
2012-01-16cli: pick the user's address in a group list as from addressJani Nikula
Messages received to a group list were not replied to using the from address in the list. Fix it. Signed-off-by: Jani Nikula <jani@nikula.org>
2012-01-16test: add known broken test for reply from address in named group listJani Nikula
If a message was received to the user's address that was in a named group list, notmuch reply does not use that address for picking the from address. Groups lists are of the form: foo:bar@example.com,baz@example.com; Signed-off-by: Jani Nikula <jani@nikula.org>
2012-01-16py3k: add a specialized version of _str for python3Justus Winter
All strings are unicode strings in python 3 and the basestring and unicode types are removed hence the need for a specialized version. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-01-15test: don't bail out of `run_emacs' too early when missing prereqsPieter Praet
When running the Emacs tests in verbose mode, only the first missing prereq is reported because the `run_emacs' function is short-circuited early: #+begin_example emacs: Testing emacs interface missing prerequisites: [0] emacs(1) skipping test: [0] Basic notmuch-hello view in emacs SKIP [0] Basic notmuch-hello view in emacs #+end_example This can lead to situations reminiscent of "dependency hell", so instead of returning based on each individual `test_require_external_prereq's exit status, we now do so only after checking all the prereqs: #+begin_example emacs: Testing emacs interface missing prerequisites: [0] dtach(1) emacs(1) emacsclient(1) skipping test: [0] Basic notmuch-hello view in emacs SKIP [0] Basic notmuch-hello view in emacs #+end_example Also added missing prereq for dtach(1).
2012-01-15emacs: Cycle through notmuch buffers rather than jumping to the last.David Edmondson
As suggested by j4ni in #notmuch, rename `notmuch-jump-to-recent-buffer' as `notmuch-cycle-notmuch-buffers' and have it behave accordingly. Consider `message-mode' buffers to be of interest.
2012-01-15emacs: Don't attempt to colour tags in `notmuch-show-mode'.David Edmondson
The tags were coloured using text properties. Unfortunately that text (the header line) also has an overlay, which overrides the text properties. There's not point in applying text properties that will never be seen.
2012-01-14NEWS: add news items for reply to senderJani Nikula
2012-01-14Fix build warning: "/*" within commentAustin Clements
2012-01-14test: add tests for "notmuch reply" --reply-to=senderMark Walters
2012-01-14emacs: bind 'r' to reply-to-sender and 'R' to reply-to-allJani Nikula
Change the default reply key bindings, making 'r' reply-to-sender and 'R' reply-to-all. Signed-off-by: Jani Nikula <jani@nikula.org>
2012-01-14emacs: add support for replying just to the senderJani Nikula
Provide reply to sender counterparts to the search and show reply functions. Add key binding 'R' to reply to sender, while keeping 'r' as reply to all, both in search and show views. Signed-off-by: Jani Nikula <jani@nikula.org>
2012-01-14cli: add support for replying just to the sender in "notmuch reply"Jani Nikula
Add new option --reply-to=(all|sender) to "notmuch reply" to select whether to reply to all (sender and all recipients), or just sender. Reply to all remains the default. Credits to Mark Walters <markwalters1009@gmail.com> for his similar earlier work where I picked up the basic idea of handling reply-to-sender in add_recipients_from_message(). All bugs are mine, though. Signed-off-by: Jani Nikula <jani@nikula.org>
2012-01-14cli: slightly refactor "notmuch reply" address scanning functionsJani Nikula
Slightly refactor "notmuch reply" recipient and user from address scanning functions in preparation for reply-to-sender feature. Add support for not adding recipients at all (just scan for user from address), and returning the number of recipients added. No externally visible functional changes. Signed-off-by: Jani Nikula <jani@nikula.org>
2012-01-13notmuch/emacs: Observe the charset of text/html parts, where known.David Edmondson
Add the charset of text/html parts to the JSON output of 'notmuch -show' when it is known. Observe the encoding when rendering such parts in emacs.
2012-01-13count: Convert to new-style argument parsingAustin Clements
2012-01-13Set fill column to 70 in .dir-locals.el.Austin Clements
This controls where comments and other text wraps. 70 is the default value, so this simply returns it to the default for people who have overridden it. Most notmuch code already adheres to this.
2012-01-13Merge branch 'release'David Bremner
Conflicts: notmuch-reply.c notmuch.1
2012-01-13NEWS: set release date.debian/0.11-10.11David Bremner
It's Friday the thirteenth. What could possibly go wrong?
2012-01-13debian: changelog stanza for 0.11David Bremner
2012-01-13Update version to 0.11David Bremner
2012-01-12emacs: Improve `notmuch-hello' display on ttys.David Edmondson
Inserting spaces to pad out columns is good, except when the padding makes the line wider than the window. This looks particularly bad on a tty where there is no fringe. Hence, avoid padding the last column on each row.
2012-01-10lib: fix messages.c build warnJani Nikula
lib/messages.c: In function ‘notmuch_messages_move_to_next’: lib/messages.c:131:2: warning: ISO C forbids ‘return’ with expression, in function returning void [-pedantic] Signed-off-by: Jani Nikula <jani@nikula.org>
2012-01-10man: add missing SEE ALSO header to notmuch reply man pageJani Nikula
Signed-off-by: Jani Nikula <jani@nikula.org>
2012-01-10emacs: Mark the quoted region during reply.David Edmondson
Mark the quoted region of text during a reply, making it easy for the user to delete it quickly.
2012-01-09emacs: Better handling of inherited keymaps for `nomuch-help'.David Edmondson
`notmuch-hello-mode' inherits the keymap for widgets, which confused `notmuch-substitute-command-keys'. Fix the confusion. Simplify `notmuch-substitute-command-keys' a little to make it easier to read.
2012-01-09NEWS: add news entry for notmuch reply uninitialized variable bugfixJani Nikula
2012-01-09Merge branch 'master' of ssh://notmuchmail.org/git/notmuchSebastian Spaeth
2012-01-09debian: add changelog stanza for 0.11~rc3-1David Bremner
as usual for pre-releases, fairly minimal commentary.
2012-01-09version: update to 0.11~rc3debian/0.11_rc3-10.11_rc3David Bremner
We found another serious-ish bug during freeze.
2012-01-09cli: fix use of uninitialized variable in "notmuch reply"Jani Nikula
notmuch_show_params_t params is only initialized partially in notmuch_reply_command(). The only field that is used uninitialized is params.decrypt. It is usually non-zero, making "notmuch reply" on encrypted messages work by coincidence. Initialize params properly, and set params.decrypt as needed. Signed-off-by: Jani Nikula <jani@nikula.org>
2012-01-09cli: convert "notmuch reply" to use the new argument parserJani Nikula
Use the new notmuch argument parser to handle arguments in "notmuch reply". There should be no functional changes. Signed-off-by: Jani Nikula <jani@nikula.org>
2012-01-09cli: fix use of uninitialized variable in "notmuch reply"Jani Nikula
notmuch_show_params_t params is only initialized partially in notmuch_reply_command(). The only field that is used uninitialized is params.decrypt. It is usually non-zero, making "notmuch reply" on encrypted messages work by coincidence. Initialize params properly, and set params.decrypt as needed. Signed-off-by: Jani Nikula <jani@nikula.org>
2012-01-09emacs: Don't signal an error when reaching the end of the search results.David Edmondson
With the default configuration ('space' moves through the messages matching the search and back to the results index at the end) it's unnecessary to signal an error when the last message has been read, as this is the common case. Moreover, it's very annoying when `debug-on-error' is t.
2012-01-08python test "compare message ids"Patrick Totzke
Introduces a second (trivial) test for the python bindings that searches for message ids and compares the output with that of `notmuch search`.