aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-11-27notmuch.el: Add face support to search modeAneesh Kumar K.V
This patch use notmuch-tag-face showing tags in the notmuch-search-mode. We can selectively highlight each tag by setting notmuch-tag-face-alist as below (defface notmuch-tag-unread-face '((((class color)) (:foreground "goldenrod"))) "Notmuch search mode face used to highligh tags.") (defface notmuch-tag-inbox-face '((((class color)) (:foreground "red"))) "Notmuch search mode face used to highligh tags.") (setq notmuch-tag-face-alist '(("unread" . 'notmuch-tag-unread-face) ("inbox" . 'notmuch-tag-inbox-face))) (require 'notmuch) Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
2009-11-27Send mail to notmuch list, not CarlAlec Berryman
2009-11-27notmuch-new: Check for non-fatal errors from stat()Chris Wilson
Currently we assume that all errors on stat() a dname is fatal (but continue anyway and report the error at the end). However, some errors reported by stat() such as a missing file or insufficient privilege, we can simply ignore and skip the file. For the others, such as a fault (unlikely!) or out-of-memory, we handle like the other fatal errors by jumping to the end. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2009-11-27Key binding rearrangement for save attachments in show modeKeith Amidon
The most obvious bindings for save attachments are already taken. The existing 'w' binding was bound to view the raw message. This commit moves it to 'V' which still seems somewhat mnemonic and uses 'w' for save (write) attachments.
2009-11-27Provide ability to save attachmentsKeith Amidon
Previously the only way to save an attachment was to attempt to view it and then save it from within the viewer program.
2009-11-27Forward individual messages using message-forwardKeith Amidon
Sometimes forwarding a message is preferable to replying and modifying the set of recipients. This commit provides that ability using the message-forward function.
2009-11-27Factor out message buffer mgmt from notmuch-show-view-all-mime-partsKeith Amidon
The ability to temporarily create a buffer containing only the contents of the currently selected message in notmuch show mode is generally useful. This commit factors the majority of the code required to do so out of notmuch-show-view-all-mime-parts into a macro called with-current-notmuch-show-message and rewrites the original function in terms of the macro. A future set of commits will provide additional functionality using the macro as well.
2009-11-27Add key binding for notmuch-search in show-modeKeith Amidon
It's not uncommon to want to start a search as a result of something read in a message so this is convenient.
2009-11-27notmuch.el: Use message-mode font-face to highlight mail headersAneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
2009-11-27correct message flag enum value so that it matches the typeBart Trojanowski
As per Carl's request, this patch corrects the only value defined under the notmuch_message_flag_t enum typedef to match the name of the type. Signed-off-by: Bart Trojanowski <bart@jukie.net>
2009-11-27Add some very rudimentary support for handling html partsAlexander Botero-Lowry
If there is an html mime-part in the message and it's the first part, it gets inlined using `mm-display-part' to convert it to plain text. The HTML content is still available as a non-text part as well.
2009-11-27add missing comma in debugging codeDavid Bremner
2009-11-27notmuch.el: Require message mode to avoid undefined function in replies.Eric Anholt
Otherwise, those without keithp's .emacs would end up with reply mode not being entered. Suggested by keithp.
2009-11-27Fix up whitespace styling from previous commit.Carl Worth
Function name in definition belong left-aligned. Body of if statement cannot be on the same line as the "if".
2009-11-27notmuch-new: Test if directory looks like Maildir before skipping tmp.Jan Janak
'notmuch new' skips directory entries with the name 'tmp'. This is to prevent notmuch from processing possibly incomplete Maildir messages stored in that directory. This patch attempts to refine the feature. If "tmp" entry is found, it first checks if the containing directory looks like a Maildir directory. This is done by searching for other common Maildir subdirectories. If they exist and if the entry "tmp" is a directory then it is skipped. Files and subdirectories with the name "tmp" that do not look like Maildir will still be processed by 'notmuch new'. Signed-off-by: Jan Janak <jan@ryngle.com>
2009-11-27Silence compiler warning by initializing a variable.Jeffrey C. Ollie
If Xapian threw an exception on notmuch_query_count_messages the count variable could be used uninitialized. Initialize count to solve the problem. Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us>
2009-11-27Merge remote branch 'jukie/vim'Carl Worth
2009-11-27notmuch-new: Fix notmuch new to look at files within symbolic linksAneesh Kumar K.V
We look at the modified time of the database and the directory to decide whether we need to look at only the subdirectories. ie, if directory modified time is < database modified time then we have already looking at all the files withing the directory. So we just need to iterate through the subdirectories But with symlinks we need to make sure we follow them even if the directory modified time is less than database modified time Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
2009-11-27notmuch-show: identify which messages printed matched the query stringBart Trojanowski
The show command outputs all messages in the threads that match the search-terms. This patch introduces a 'match:[01]' entry to the 'message{' line output by the show command. Value of 1 indicates that the message is matching the search expression. Signed-off-by: Bart Trojanowski <bart@jukie.net>
2009-11-27have _notmuch_thread_create mark which messages matched the queryBart Trojanowski
When _notmuch_thread_create() is given a query string, it can return more messages than just those matching the query. To distinguish those that matched the query expression, the MATCHING_SEARCH flag is set appropriately. Signed-off-by: Bart Trojanowski <bart@jukie.net>
2009-11-27message: add flags to notmuch_message_tBart Trojanowski
This patch allows for different flags, internal to notmuch, to be set on a message object. The patch does not define any such flags, just the facilities to manage these flags. Signed-off-by: Bart Trojanowski <bart@jukie.net>
2009-11-27reply --format=headers-only: set In-Reply-To header, with ID *last* in ReferencesJed Brown
Apparently this is actually the correct way to do it, it's silly to do it wrong just to conform to one of git's internal data structures.
2009-11-27notmuch-reply.c: implement notmuch_reply_format_headers_onlyJed Brown
This command only generates References, To, and Cc headers. The purpose is primarily for use in git send-email --notmuch id:<MESSAGE-ID> to get proper threading and address the relevant parties. Hooks for other SCMs may come later. Signed-off-by: Jed Brown <jed@59A2.org>
2009-11-27notmuch-reply.c: accept the --format=default default option.Jed Brown
This factors actual generation of the reply out of notmuch_reply_command into notmuch_reply_format_default(), in preparation for other --format= options. Signed-off-by: Jed Brown <jed@59A2.org>
2009-11-27vim: use <Space> more consistently in search viewBart Trojanowski
In search view <Space> will show the thead, but folding messages that don't match the current search expression. Conversly, <Enter> always shows all messages in the thread.
2009-11-27Merge remote branch 'origin/master' into vimBart Trojanowski
2009-11-27vim: make it possible to start a search in show modeBart Trojanowski
2009-11-27vim: don't toggle folds that are inside closed folds in show modeBart Trojanowski
2009-11-27vim: primitive reply to messageBart Trojanowski
2009-11-27vim: primitive reply to threadBart Trojanowski
2009-11-27vim: few compose mode updates, including READMEBart Trojanowski
2009-11-27vim: don't remove headers until after parsing themBart Trojanowski
2009-11-27vim: fix off-by-one error when removing header from message to send outBart Trojanowski
2009-11-27vim: generalize compose buffer function furtherBart Trojanowski
2009-11-27vim: have ,nmr just reload the plugin w/o restarting stateBart Trojanowski
2009-11-27vim: make it possible to replace NM_cobine_tags()Bart Trojanowski
2009-11-27vim: add a helper to combine tag search expressionsBart Trojanowski
2009-11-27vim: README updates and correctionsBart Trojanowski
2009-11-27vim: have '?' show search words in search modeBart Trojanowski
2009-11-27notmuch-search-add/remove-tag: restrict to messages in current queryJed Brown
Rather than tagging the everything in the thread. This is arguably more desirable behavior and is consistent with clearly desirably behavior of notmuch-search-operate-all. Note that this change applies indirectly to notmuch-search-archive-thread (which is actually equivalent behavior since this function is primarily used when browsing an inbox). Signed-off-by: Jed Brown <jed@59A2.org>
2009-11-27New function notmuch-search-operate-all: operate on all messages in the current query.Jed Brown
It is often convenient to change tags on several messages at once. This function applies any number of tag whitespace-delimited tag modifications to all messages matching the current query. I have bound this to `*'. Signed-off-by: Jed Brown <jed@59A2.org>
2009-11-27vim: cleanup error messagesBart Trojanowski
2009-11-27vim: fix regexp for cleaning search listBart Trojanowski
2009-11-27vim: force deleting buffersBart Trojanowski
2009-11-27vim: fix message parsing patternsBart Trojanowski
if a message did not contain a trailing CR, we may not be able to match ^\f
2009-11-27vim: implement sending with ,s from compose bufferBart Trojanowski
2009-11-27vim: store previous buffer number when starting to composeBart Trojanowski
2009-11-27vim: make sure headers begin with \wBart Trojanowski
2009-11-27vim: allow overriding how newBuffer is createdBart Trojanowski
2009-11-26vim: replace echo\nreturn with trhow in a few placesBart Trojanowski