aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Add 'notmuch count' command to show the count of matching messagesGravatar Keith Packard2009-11-23
| | | | | | | | | | | Getting the count of matching threads or messages is a fairly expensive operation. Xapian provides a very efficient mechanism that returns an approximate value, so use that for this new command. This returns the number of matching messages, not threads, as that is cheap to compute. Signed-off-by: Keith Packard <keithp@keithp.com>
* Make mouse-1 click in search view show threadGravatar Keith Packard2009-11-23
| | | | | | | | Selecting text in the search view isn't all that useful, so instead, make mouse-1 clicks actually show the thread you click on. It's almost like direct manipulation or something. Signed-off-by: Keith Packard <keithp@keithp.com>
* TODO: Yet another idea.Gravatar Carl Worth2009-11-23
| | | | | This is an idea I've had "forever" (and is commented as such in the code already), but just came up on the mailing list. So note it here.
* ANSI escapes in "new" only when output is a ttyGravatar Adrian Perez2009-11-23
| | | | | | | When running "notmuch new --verbose", ANSI escapes are used. This may not be desirable when the output of the command is *not* being sent to a terminal (e.g. when piping output into another command). In that case each file processed is printed in a new line and ANSI escapes are not used at all.
* fix notmuch-new bug when database path ends with a trailing /Gravatar Bart Trojanowski2009-11-23
| | | | | | | | | | | | | | | I configured my database.path with a trailing /, and after running notmuch new every notmuch search would fail with error messages like this: Error opening /inbox/cur/1258565257.000211.mbox:2,S: No such file or directory The actual bug was in the filename normalization for storage in the database. The database.path was removed from the full filename, but if the database.path from the config file contained a trailing /, the relative file name would retain an extra leading /... which made it look like an absolute path after it was read out from the DB. Signed-off-by: Bart Trojanowski <bart@jukie.net>
* TODO: Add a couple of notes about things to do with/to Xapian.Gravatar Carl Worth2009-11-23
| | | | | | I had these notes sitting in an uncommitted file that was cluttering up my "git status" output. This cleans that up, and also shares the ideas with the wider community.
* makefile: Declare clean target as phony.Gravatar Jan Janak2009-11-23
| | | | | | | | This ensures that make clean always proceeds, even if the user accidentally creates a file named 'clean'. Also, it ignores errors in rm and other commands. Signed-off-by: Jan Janak <jan@ryngle.com>
* TODO: Capturing even more ideas.Gravatar Carl Worth2009-11-23
| | | | | Hopefully soon I can start implementing ideas rather than just writing them down.
* TODO: A couple of more ideas for improving the emacs interface.Gravatar Carl Worth2009-11-23
| | | | We're not likely to run out of work to do anytime soon...
* Support multiple configuration files via $NOTMUCH_CONFIGGravatar Alec Berryman2009-11-23
| | | | | If present, $NOTMUCH_CONFIG will be used as the configuration file location.
* TODO: Add several ideas for improving the emacs interface.Gravatar Carl Worth2009-11-23
| | | | | These are from email messages on the notmuch mailing list and from IRC conversations in #notmuch.
* Insert signature into repliesGravatar Keith Packard2009-11-23
| | | | | | | | | When you compose a new message, message mode carefully inserts your mail signature at the bottom of the message; as notmuch constructs the reply all by itself, this doesn't happen then. Use the message mode function 'message-insert-signature' to add that to reply buffers. Signed-off-by: Keith Packard <keithp@keithp.com>
* Quote file names passed to the shellGravatar Jed Brown2009-11-23
| | | | | Prior to this, notmuch-show-pipe-message could not handle file names with spaces and similar.
* Support for printing file paths in new commandGravatar Adrian Perez2009-11-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | For very large mail boxes, it is desirable to know which files are being processed e.g. when a crash occurs to know which one was the cause. Also, it may be interesting to have a better idea of how the operation is progressing when processing mailboxes with big messages. This patch adds support for printing messages as they are processed by "notmuch new": * The "new" command now supports a "--verbose" flag. * When running in verbose mode, the file path of the message about to be processed is printed in the following format: current/total: /path/to/message/file Where "current" is the number of messages processed so far and "total" is the total count of files to be processed. The status line is erased using an ANSI sequence "\033[K" (erase current line from the cursor to the end of line) each time it is refreshed. This should not pose a problem because nearly every terminal supports it. * The signal handler for SIGALRM and the timer are not enabled when running in verbose mode, because we are already printing progress with each file, periodical reports are not neccessary.
* Merge remote branch 'drax/master'Gravatar Carl Worth2009-11-23
|\
| * switch to button-1, which seems to interact poorly with text-selection by mouseGravatar Alexander Botero-Lowry2009-11-22
| |
* | TODO: Add a bunch of ideas that have been on my mind lately.Gravatar Carl Worth2009-11-23
| | | | | | | | So get these out of my mind and out to the user community.
| * instead of trying to cause a redisplay, actually do a redisplayGravatar Alexander Botero-Lowry2009-11-22
| |
| * put a newline after the headersGravatar Alexander Botero-Lowry2009-11-22
| |
| * make header names bold in show-modeGravatar Alexander Botero-Lowry2009-11-22
| |
| * Make expanding/collapsing signatures and citations local to themGravatar Alexander Botero-Lowry2009-11-22
| | | | | | | | | | This is the first step towards localizing all the expand/collapse operations in the show buffer
| * buttonize signatures as wellGravatar Alexander Botero-Lowry2009-11-22
| |
| * Buttonize citation expander.Gravatar Alexander Botero-Lowry2009-11-22
|/ | | | Currently the button has no action or special handling at all.
* notmuch-show: Show message part using UTF-8.Gravatar Kan-Ru Chen2009-11-22
| | | | | | | Pass the message through the charset filter so that we can view messages wrote in different charset encoding. Signed-off-by: Kan-Ru Chen <kanru@kanru.info>
* Missing final semi-colon in .desktop's Categories.Gravatar James Rowe2009-11-22
| | | | | | | | | "Those keys which have several values should have a semicolon as the trailing character." -- http://standards.freedesktop.org/desktop-entry-spec/1.0/ar01s03.html Signed-off-by: James Rowe <jnrowe@gmail.com> Reviewed-by: Jeffrey C. Ollie <jeff@ocjtech.us>
* Fix invalid face reference.Gravatar Kan-Ru Chen2009-11-22
| | | | | | | To avoid the "Invalid face reference: cons [18 times]" kind of message goes on and on in the *Messages*. Signed-off-by: Kan-Ru Chen <kanru@kanru.info>
* notmuch-new: Only print the regular progress report when on a ttyGravatar Chris Wilson2009-11-22
| | | | | | | Check that the stdout is connected to an interactive terminal with isatty() before installing the periodic timer to print progress reports. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
* 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
|