aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-11-21Permit opening the notmuch database in read-only mode.Chris Wilson
We only rarely need to actually open the database for writing, but we always create a Xapian::WritableDatabase. This has the effect of preventing searches and like whilst updating the index. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Carl Worth <cworth@cworth.org>
2009-11-21INSTALL/notmuch.el: More details on how to install/run notmuch.elCarl Worth
Hopefully this will save some people some head-scratching trying to figure out how to use it.
2009-11-21INSTALL: emacs install dokumentation.Stefan Schmidt
Write down the steps needed to install and actuall use notmuch in emacs. Should help emacs newbies. Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
2009-11-21Revert "notmuch: Add Maildir directory name as tag name for messages"Carl Worth
This reverts commit 9794f19017e028b542ed715bef3fd7cf0da5edff. The feature makes a lot of sense for the initial import, but it's not as clear whether it makes sense for ongoing "notmuch new" runs. We might need to make this opt-in by configuration.
2009-11-21TODO: Add notes on portability, and remove completed tasks.Carl Worth
It's better to have things in TODO rather than mails with a todo tag in my notmuch database.
2009-11-21TODO: Several updates.Carl Worth
2009-11-21INSTALL: Mention that xapian-config might be named xapian-config-1.1Carl Worth
As reported on the mailing list.
2009-11-21notmuch: Add Maildir directory name as tag name for messagesAneesh Kumar K.V
This patch adds maildir directory name as the tag name for messages. This helps in adding tags using filtering already provided by procmail. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
2009-11-21Makefile: Fix the fallback emacs install path.Carl Worth
When pkg-config can't be used to find out where to install emacs files, we fallback to a hard-coded directory. Only, we were falling back to the wrong thing, (one that emacs doesn't look into by default).
2009-11-21Drop redundant CFLAGS, was already included in CXXFLAGSJed Brown
2009-11-21notmuch reply: Include text parts in reply, even with disposition attachment.Carl Worth
If it's text, (such as a patch), then I want it quoted in my reply, (so that I can comment on it).
2009-11-21notmuch show: Don't hide text parts, even with disposition attachment.Carl Worth
If it's text, (such as a patch), then I want to see it.
2009-11-21notmuch show: Don't hide a digital signature.Carl Worth
This was a bug that was introduced in copying the indexing code over into notmuch-show.c. When indexing, we want to ignore the signature, (it has no interesting terms). But when presenting the message, it's important to present the signature to the user. (And would be even better if we presented whether or not the signature is good.)
2009-11-21notmuch.el: Don't use end-of-buffer which is inappropriate from programsCarl Worth
The documentation is quite clear about this case. With this, we can now byte compile without warnings.
2009-11-21notmuch.el: Fix stale reference to non-existing variable.Carl Worth
We changed from "query" to "thread-id" a while ago, and broke this error message at the time. Fix it now.
2009-11-21notmuch.el: Add many missing defvar calls.Carl Worth
Without these, emacs was complaining about "assignment to free variable", (though only when byte compiling, which is why we didn't notice earlier).
2009-11-21When a search query triggers a Xapian exception, log what the query was.Eric Anholt
In my script containing a series of queries to be run on new mail for setting up tags, it's nice to see which query I typed wrong. Signed-off-by: Eric Anholt <eric@anholt.net>
2009-11-21Make bash completion directory configurable.James Rowe
Some systems install completion scripts in /usr/share/bash-completion, make the location configurable from Makefile.config.
2009-11-20add_message: Re-fix handling of non-mail files.Carl Worth
More fallout from _get_header now returning "" for missing headers. The bug here is that we would no longer detect that a file is not an email message and give up on it like we should. And this time, I actually audited all callers to notmuch_message_get_header, so hopefully we're done fixing this bug over and over.
2009-11-20notmuch_database_add_message: Add missing error-value propagation.Carl Worth
Thanks to Mike Hommey for doing the analysis that led to noticing that this was missing.
2009-11-20add_message: Properly handle missing Message-ID once again.Carl Worth
There's been a fair amount of fallout from when we changed message_file_get_header from returning NULL to returning "" for missing headers. This is yet more fallout from that, (where we were accepting an empty message-ID rather than generating one like we want to).
2009-11-20Checkin some command-only tcsh completionsAlexander Botero-Lowry
Modified-by Carl Worth <cworth@cworth.org>: Just moved the file down into contrib where the other completion scripts are.
2009-11-20bash-completion: Move to contribIngmar Vanhassel
Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
2009-11-20zsh-completion: Initial zsh-completion for notmuchIngmar Vanhassel
Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
2009-11-20Add notmuch.1.gz to files to be cleanedMikhail Gusarov
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
2009-11-20TODO: Add a couple of notes about fixing the completion script.Carl Worth
I'm throwing away a half-finished fix of this now, and just want to ensure I don't forget about it.
2009-11-20Makefile: Make object targets depend on MakefilesJan Janak
All objects need to be recompiled when any of the Makefiles changes, so we make them all depend on all the Makefiles. Signed-off-by: Jan Janak <jan@ryngle.com>
2009-11-20Allow to redefine notmuch binary name and path in elisp modeMikhail Gusarov
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
2009-11-20notmuch.el: Don't use literal control characters in strings.Carl Worth
Avoding these is nicer to users, text editors, and our poor little notmuch.el code itself that would get confused when seeing a copy of itself in email. (Of course, we should still fix that bug, but this workaround is good nonetheless.)
2009-11-20Makefile: Hard-code emacs_lispdir if emacs pkg-config file not availableCarl Worth
Using pkg-config to find this variable is nice if it works. Go back to the previously used value if it doesn't.
2009-11-20Makefile: Remove unused variable emacs_startdirCarl Worth
This was added in a prelimnary version of a previous commit that would automatically load notmuch.el for anyone running emacs. It's not used at all in the current Makefile.
2009-11-20Avoid access of a Xapian iterator's object when there's nothing there.Carl Worth
This eliminates a crash when a message (either corrupted or a non-mail file that wasn't properly detected as not being mail) has no In-Reply-To header, (and so few terms that trying to skip to the prefix of the In-Reply-To terms actually brings us to the end of the termlist).
2009-11-20Revert inadvertently committed code.Carl Worth
This was accidentally included with commit: ddac17343a30976cae82c9f57419c063e1585cc0 (It was a dirty chunk in my directory that I accidentally amended into the submitted patch.)
2009-11-20notmuch build: add a RPM spec fileJeffrey C. Ollie
Add a spec file for building RPM packages. Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us>
2009-11-20Add a .desktop file entry.Jeffrey C. Ollie
This will add an entry in your window manager's menus that will create up a new emacs process and start notmuch. Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us>
2009-11-20Improve installation of emacs mode.Jeffrey C. Ollie
1) Add a separate targets to build and install emacs mode. 2) Don't hardcode the installation directory, instead use emacs' pkg-config module. 3) Install a byte compiled version of the emacs mode. 4) Install the emacs mode in emacs' site-lisp directory. Put "(require 'notmuch)" in your .emacs to load it automatically. 5) Ignore byte-compiled emacs files. Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us> Reviewed-by: Ingmar Vanhassel <ingmar@exherbo.org> Reviewed-by: Keith Packard <keithp@keithp.com>
2009-11-20Have git ignore tags & cscope filesRolland Santimano
2009-11-19Put $(LDFLAGS) after the list of object files.Peter Wang
Some linkers on some systems are particularly picky about the order of arguments in order to properly linkt. So this fixes failures on some systems.
2009-11-19notmuch: Add search mode hookAneesh Kumar K.V
This patch add notmuch-search-hook that gets run when we after displaying search results Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Cc:Keith Packard <keithp@keithp.com>
2009-11-19Makefile: Create elisp install directory explicitlyIngmar Vanhassel
When doing a DESTDIR install, this directory likely won't exist, and installing notmuch.el will fail. See 0d4b5292
2009-11-19bash-completion: Complete options for notmuch searchIngmar Vanhassel
2009-11-19bash-completion: Localize variables, use more consistent variable namesIngmar Vanhassel
2009-11-19bash-completion: Whitespace fixIngmar Vanhassel
Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
2009-11-19bash-completion: Bash has & should use [[ == ]]Ingmar Vanhassel
Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
2009-11-19Allow lone "not" search operatorsAdrian Perez
As suggested by Keith in FLAG_PURE_NOT allows for expressions like: notmuch search NOT tag:inbox Note that this way a search like: notmuch search foobar NOT tag:inbox should not be written instead: notmuch search foobar AND NOT tag:inbox In my opinion, the latter feels more natural and is somewhat more explicit. It gives a better clue of what the search is about instead of assuming that an implicit AND operator is there.
2009-11-19.gitignore: Add common editor droppingsIngmar Vanhassel
2009-11-19notmuch new: Restore printout of total files counted.Carl Worth
This was more fallout from the recent re-shuffling of this code.
2009-11-19notmuch new: Fix countdown timer on first run.Carl Worth
A recent shuffling of this code accidentally disabled the timer, (making the time spent counting the files totally useless).
2009-11-19Makefile: Actually install the emacs mode.Carl Worth
Should have been doing this a long time ago.
2009-11-19notmuch.el: Add a reply binding ('r') to search mode to reply to a whole thread.Carl Worth
This is basically right, (I get a message buffer with all the mails quoted), but somehow notmuch reply is reversing the messages. That's a nuisance.