aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* notmuch-new: Only install SIGALRM if not running under gdbGravatar Chris Wilson2009-11-22
| | | | | | | | | | | | | | | I felt sorry for Carl trying to step through an exception from xapian and suffering from the SIGALARMs.. We can detect if the user launched notmuch under a debugger by either checking our cmdline for the presence of the gdb string or querying if valgrind is controlling our process. For the latter we need to add a compile time check for the valgrind development library, and so add the initial support to build Makefile.config from configure. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Carl Worth <cworth@cworth.org> [ickle: And do not install the timer when under the debugger]
* lib/database.cc: coding styleGravatar Chris Wilson2009-11-22
| | | | | | Carl claims he must have been distracted when he wrote this... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
* Makefile: Fix to work even with GZIP environment variable set.Gravatar Carl Worth2009-11-22
| | | | | | | The rule here was written to assume that if the GZIP environment variable was set that it would be the gzip binary to execute, (similar to the CC and CXX variables). But GZIP is actually used to pass arguments to gzip, so we have to use a different name.
* Makefile: Magic silent rules.Gravatar Chris Wilson2009-11-22
| | | | | | | | | | | | | Use the facilities of GNU make to create a magic function that will on the first invocation print a description of how to enable verbose compile lines and then print the quiet rule. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Carl Worth <cworth@cworth.org> Cc: Mikhail Gusarov <dottedmag@dottedmag.net> [ickle: Rebased, and duplicate command string eliminated.] [ickle: Fixed verbose bug pointed out by Mikhail]
* add_message: Use sha-1 in place of overly long message ID.Gravatar Carl Worth2009-11-22
| | | | | | | | | | | | | Since Xapian has a limit on the maximum length of a term, we have to check for that before trying to add the message ID as a term. This fixes the bug reported by Mike Hommey here: <20091120132625.GA19246@glandium.org> I've also constructed 20 files with a range of message ID lengths centered around the Xapian term-length limit which I'll use to seed a new test suite soon.
* get_timestamp: Ensure that return value is 0 in case of exception.Gravatar Carl Worth2009-11-22
| | | | Just to be on the safe side of things.
* Catch and optionally print about exception at database->flush.Gravatar Carl Worth2009-11-22
| | | | | | | If an earlier exception occurred, then it's not unexpected for the flush to fail as well. So in that case, we'll silently catch the exception. Otherwise, make some noise about things going wrong at the time of flush.
* Add a missing print after catching an exception.Gravatar Carl Worth2009-11-22
| | | | Without this, trying to debug this exception was *really* confusing.
* Print information about where Xapian exception occurred.Gravatar Carl Worth2009-11-22
| | | | | Previously, our Xapian exception reports where identical so they were hard to track down.
* notmuch-config: Fix memleaks.Gravatar Holger Freyther2009-11-22
| | | | | | | While talloc is great we need to free the g_error by hand. Tested-by: Stefan Schmidt <stefan@datenfreihafen.org> Signed-off-by: Holger Freyther <zecke@selfish.org>
* notmuch new: Fix to actually open the database READ_WRITE.Gravatar Chris Wilson2009-11-22
| | | | Chris claims he must have been distracted when he wrote this.
* Fix freak case problem that broke the compile.Gravatar Carl Worth2009-11-21
| | | | | I think I must have bumped some emacs keybinding that changed the case of a word here.
* Rename NOTMUCH_DATABASE_MODE_WRITABLE to NOTMUCH_DATABASE_MODE_READ_WRITEGravatar Carl Worth2009-11-21
| | | | And correspondingly, READONLY to READ_ONLY.
* Permit opening the notmuch database in read-only mode.Gravatar Chris Wilson2009-11-21
| | | | | | | | | 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>
* INSTALL/notmuch.el: More details on how to install/run notmuch.elGravatar Carl Worth2009-11-21
| | | | | Hopefully this will save some people some head-scratching trying to figure out how to use it.
* INSTALL: emacs install dokumentation.Gravatar Stefan Schmidt2009-11-21
| | | | | | | 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>
* Revert "notmuch: Add Maildir directory name as tag name for messages"Gravatar Carl Worth2009-11-21
| | | | | | | | 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.
* TODO: Add notes on portability, and remove completed tasks.Gravatar Carl Worth2009-11-21
| | | | | It's better to have things in TODO rather than mails with a todo tag in my notmuch database.
* TODO: Several updates.Gravatar Carl Worth2009-11-21
|
* INSTALL: Mention that xapian-config might be named xapian-config-1.1Gravatar Carl Worth2009-11-21
| | | | As reported on the mailing list.
* notmuch: Add Maildir directory name as tag name for messagesGravatar Aneesh Kumar K.V2009-11-21
| | | | | | | | 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>
* Makefile: Fix the fallback emacs install path.Gravatar Carl Worth2009-11-21
| | | | | | | 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).
* Drop redundant CFLAGS, was already included in CXXFLAGSGravatar Jed Brown2009-11-21
|
* notmuch reply: Include text parts in reply, even with disposition attachment.Gravatar Carl Worth2009-11-21
| | | | | If it's text, (such as a patch), then I want it quoted in my reply, (so that I can comment on it).
* notmuch show: Don't hide text parts, even with disposition attachment.Gravatar Carl Worth2009-11-21
| | | | If it's text, (such as a patch), then I want to see it.
* notmuch show: Don't hide a digital signature.Gravatar Carl Worth2009-11-21
| | | | | | | | | | 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.)
* notmuch.el: Don't use end-of-buffer which is inappropriate from programsGravatar Carl Worth2009-11-21
| | | | | | The documentation is quite clear about this case. With this, we can now byte compile without warnings.
* notmuch.el: Fix stale reference to non-existing variable.Gravatar Carl Worth2009-11-21
| | | | | We changed from "query" to "thread-id" a while ago, and broke this error message at the time. Fix it now.
* notmuch.el: Add many missing defvar calls.Gravatar Carl Worth2009-11-21
| | | | | Without these, emacs was complaining about "assignment to free variable", (though only when byte compiling, which is why we didn't notice earlier).
* When a search query triggers a Xapian exception, log what the query was.Gravatar Eric Anholt2009-11-21
| | | | | | | 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>
* Make bash completion directory configurable.Gravatar James Rowe2009-11-21
| | | | | Some systems install completion scripts in /usr/share/bash-completion, make the location configurable from Makefile.config.
* add_message: Re-fix handling of non-mail files.Gravatar Carl Worth2009-11-20
| | | | | | | | | | | 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.
* notmuch_database_add_message: Add missing error-value propagation.Gravatar Carl Worth2009-11-20
| | | | | Thanks to Mike Hommey for doing the analysis that led to noticing that this was missing.
* add_message: Properly handle missing Message-ID once again.Gravatar Carl Worth2009-11-20
| | | | | | | | 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).
* Checkin some command-only tcsh completionsGravatar Alexander Botero-Lowry2009-11-20
| | | | | Modified-by Carl Worth <cworth@cworth.org>: Just moved the file down into contrib where the other completion scripts are.
* bash-completion: Move to contribGravatar Ingmar Vanhassel2009-11-20
| | | | Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
* zsh-completion: Initial zsh-completion for notmuchGravatar Ingmar Vanhassel2009-11-20
| | | | Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
* Add notmuch.1.gz to files to be cleanedGravatar Mikhail Gusarov2009-11-20
| | | | Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
* TODO: Add a couple of notes about fixing the completion script.Gravatar Carl Worth2009-11-20
| | | | | I'm throwing away a half-finished fix of this now, and just want to ensure I don't forget about it.
* Makefile: Make object targets depend on MakefilesGravatar Jan Janak2009-11-20
| | | | | | | 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>
* Allow to redefine notmuch binary name and path in elisp modeGravatar Mikhail Gusarov2009-11-20
| | | | Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
* notmuch.el: Don't use literal control characters in strings.Gravatar Carl Worth2009-11-20
| | | | | | | 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.)
* Makefile: Hard-code emacs_lispdir if emacs pkg-config file not availableGravatar Carl Worth2009-11-20
| | | | | Using pkg-config to find this variable is nice if it works. Go back to the previously used value if it doesn't.
* Makefile: Remove unused variable emacs_startdirGravatar Carl Worth2009-11-20
| | | | | | 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.
* Avoid access of a Xapian iterator's object when there's nothing there.Gravatar Carl Worth2009-11-20
| | | | | | | 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).
* Revert inadvertently committed code.Gravatar Carl Worth2009-11-20
| | | | | | | | | This was accidentally included with commit: ddac17343a30976cae82c9f57419c063e1585cc0 (It was a dirty chunk in my directory that I accidentally amended into the submitted patch.)
* notmuch build: add a RPM spec fileGravatar Jeffrey C. Ollie2009-11-20
| | | | | | Add a spec file for building RPM packages. Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us>
* Add a .desktop file entry.Gravatar Jeffrey C. Ollie2009-11-20
| | | | | | | 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>
* Improve installation of emacs mode.Gravatar Jeffrey C. Ollie2009-11-20
| | | | | | | | | | | | | | | | | | 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>
* Have git ignore tags & cscope filesGravatar Rolland Santimano2009-11-20
|