[notmuch] [PATCH 2/2] notmuch list: A new command to produce various lists.

2009-11-20 Thread Carl Worth
On Thu, 19 Nov 2009 10:59:13 -0700, Bdale Garbee wrote: > I've been pondering approaches to prioritizing the pool of unread > messages. Most of my thinking so far is along the lines of the ability > to automatically apply tags to new messages on various criteria combined > with the ability to

[notmuch] [PATCH] Allow to redefine notmuch binary name and path in elisp mode

2009-11-20 Thread Mikhail Gusarov
Signed-off-by: Mikhail Gusarov --- notmuch.el | 13 - 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/notmuch.el b/notmuch.el index 1fc54c3..f97950f 100644 --- a/notmuch.el +++ b/notmuch.el @@ -71,6 +71,9 @@ pattern can still test against the entire line).")

[notmuch] link error

2009-11-20 Thread Carl Worth
On Thu, 19 Nov 2009 19:13:35 +1100, Peter Wang wrote: > Linking fails on my system for some reason (undefined references to > talloc functions). Putting $(LDFLAGS) after the object list solves > it. Thanks Peter. I've pushed this now. -Carl

[notmuch] lots of emacs mode enhancements

2009-11-20 Thread Alexander Botero-Lowry
I've just been diving into the elisp, and have added a bunch of useful features. 1) buttonized citation and signature expanders and made them locally collapsable instead of globally (this could take some cleanup to remove the global key-map binding or make it work again) 2) fixed an annoying

[notmuch] notmuch new: Memory problem

2009-11-20 Thread Dominik Epple
Hi, I am strongly interested in giving notmuch a try. But I fail setting it up. The problem is that during "notmuch new", memory consumption and system load increases to values that make my system unusable. I then killed "notmuch new" at a memory consumption of 2.7G and at a system load of 7.

[notmuch] [PATCH 1/2] Improve installation of emacs mode.

2009-11-20 Thread Carl Worth
On Thu, 19 Nov 2009 15:20:01 -0600, "Jeffrey C. Ollie" wrote: > 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

[notmuch] RPM spec file

2009-11-20 Thread Carl Worth
On Thu, 19 Nov 2009 00:56:22 -0600, Jeffrey Ollie wrote: > I don't think that a separate Git branch makes sense, but maybe stuff > like this should be in a subdirectory like "packaging/fedora", since I > imagine that there will eventually be a need for "packaging/debian" > etc. as well. OK,

[notmuch] Gentoo ebuild for notmuch

2009-11-20 Thread Carl Worth
On Thu, 19 Nov 2009 00:11:46 -0800 (PST), James Rowe wrote: > Just in case other Gentoo users are trying notmuch out I thought I'd post my > ebuild(perhaps you'll make it better for me too :). It is working well up to > at least e5da2b70. Hi James, Thanks for your contribution. > I won't

[notmuch] Segfault searching for tags

2009-11-20 Thread Carl Worth
On Thu, 19 Nov 2009 16:45:43 +0100, Adrian Perez de Castro wrote: > The thing is that in notmuch_message_get_in_reply_to(), line 288, a NULL > instance of Xapian::TermIterator is dereferenced. In my particular case, > the culpript is a cache file of Claws-Mail, as seen in the following GDB >

[notmuch] [PATCH] Allow to redefine notmuch binary name and path in elisp mode

2009-11-20 Thread Carl Worth
On Fri, 20 Nov 2009 07:15:40 +0600, Mikhail Gusarov wrote: > Signed-off-by: Mikhail Gusarov Thanks for the patch, Mikhail! This is pushed now. -Carl PS. Some people may have noticed that the original mail from Mikhail put notmuch-show-mode into an infinite loop. The bug is triggered by the

[notmuch] [PATCH] Makefile: Make object targets depend on Makefiles

2009-11-20 Thread Carl Worth
On Thu, 19 Nov 2009 01:37:25 +0100, Jan Janak wrote: > All objects need to be recompiled when any of the Makefiles changes, so > we make them all depend on all the Makefiles. An excellent fix, Jan. Pushed! -Carl

[notmuch] [PATCH] Add notmuch.1.gz to files to be cleaned

2009-11-20 Thread Mikhail Gusarov
Signed-off-by: Mikhail Gusarov --- Makefile.local |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile.local b/Makefile.local index ecd4ceb..bf81c03 100644 --- a/Makefile.local +++ b/Makefile.local @@ -45,4 +45,4 @@ install-emacs: install emacs install

[notmuch] Segfault searching for tags

2009-11-20 Thread Jeffrey Ollie
On Fri, Nov 20, 2009 at 5:32 AM, Carl Worth wrote: > On Thu, 19 Nov 2009 16:45:43 +0100, Adrian Perez de Castro igalia.com> wrote: >> The thing is that in notmuch_message_get_in_reply_to(), line 288, a NULL >> instance of Xapian::TermIterator is dereferenced. In my particular case, >> the

[notmuch] [PATCH] RFC: quiet make

2009-11-20 Thread Mikhail Gusarov
I don't entirely like duplicating every command line in makefile, so this patch is RFC. Someone with bigger Make-fu than mine probably knows a better way. Signed-off-by: Mikhail Gusarov --- Makefile | 36 Makefile.local | 10 ++

[notmuch] Segfault searching for tags

2009-11-20 Thread Jan Janak
On Fri, Nov 20, 2009 at 2:10 PM, Jeffrey Ollie wrote: > On Fri, Nov 20, 2009 at 5:32 AM, Carl Worth wrote: >> On Thu, 19 Nov 2009 16:45:43 +0100, Adrian Perez de Castro > igalia.com> wrote: >>> The thing is that in notmuch_message_get_in_reply_to(), line 288, a NULL >>> instance of

[notmuch] Segfault with weird Message-ID

2009-11-20 Thread Mike Hommey
Hi, I got a segfault when importing my maildir. It happened because of an old weird email, where the message-id is the following: Message-ID: <22b17a1f$4fbe$0550 at myrop (ew6.southwind.net [216.53.98.70]) by onyx.southwind.net from homepage.com (114.230.197.216) by

[notmuch] [PATCH 1/2] zsh-completion: Initial zsh-completion for notmuch

2009-11-20 Thread Ingmar Vanhassel
Signed-off-by: Ingmar Vanhassel --- contrib/notmuch-completion.zsh | 74 1 files changed, 74 insertions(+), 0 deletions(-) create mode 100644 contrib/notmuch-completion.zsh Moved & renamed as you suggested. diff --git a/contrib/notmuch-completion.zsh

[notmuch] [PATCH 2/2] bash-completion: Move to contrib

2009-11-20 Thread Ingmar Vanhassel
Signed-off-by: Ingmar Vanhassel --- Makefile.local |2 +- .../notmuch-completion.bash|0 2 files changed, 1 insertions(+), 1 deletions(-) rename notmuch-completion.bash => contrib/notmuch-completion.bash (100%) Move to

[notmuch] Recommended Coding Style?

2009-11-20 Thread Jan Janak
Hi Guys, Is there any recommended coding style for the C/C++ code in notmuch? -- Jan

[notmuch] Recommended Coding Style?

2009-11-20 Thread Chris Wilson
Excerpts from Jan Janak's message of Fri Nov 20 15:08:31 + 2009: > Is there any recommended coding style for the C/C++ code in notmuch? My prediction is that Carl will go with something close to what he wrote for Cairo: http://cgit.freedesktop.org/cairo/tree/CODING_STYLE He may or may not

[notmuch] [PATCH] notmuch.el: Add face support to search and show mode

2009-11-20 Thread Aneesh Kumar K.V
This add two faces, notmuch-show-subject-face and notmuch-tag-unread-face. The first face is used to show the subject line in the notmuch-show-mode and the second one the unread tag in the notmuch-search-mode. The changes are done looking at message.el in emacs source Signed-off-by: Aneesh Kumar

[notmuch] [PATCH] When a search query triggers a Xapian exception, log what the query was.

2009-11-20 Thread 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 --- lib/query.cc |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/query.cc b/lib/query.cc index

[notmuch] [PATCH] Drop redundant CFLAGS, was already included in CXXFLAGS

2009-11-20 Thread Jed Brown
ttp://notmuchmail.org/pipermail/notmuch/attachments/20091120/b5d44dab/attachment-0001.bin>

[notmuch] notmuch new: Memory problem

2009-11-20 Thread Carl Worth
On Fri, 20 Nov 2009 09:56:50 +0100, Dominik Epple wrote: > I am strongly interested in giving notmuch a try. Welcome to notmuch, Dominik! I'm sorry your initial attempt to use it hasn't been quite as smooth as we might like. > But I fail setting

[notmuch] Gentoo ebuild for notmuch

2009-11-20 Thread James Rowe
On Fri, 20 Nov 2009 10:39:35 +0100, Carl Worth wrote: > If you think it makes sense, I can add this to the notmuch repository in > a packaging/gentoo directory. Just let me know if you'd like that. Hmm... The problem is the ebuild can't currently use the install target because the file

[notmuch] [PATCH] Make bash completion directory configurable.

2009-11-20 Thread James Rowe
Some systems install completion scripts in /usr/share/bash-completion, make the location configurable from Makefile.config. --- Makefile.config |1 + Makefile.local |4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.config b/Makefile.config index

[notmuch] Segfault searching for tags

2009-11-20 Thread Carl Worth
On Fri, 20 Nov 2009 14:20:45 +0100, Jan Janak wrote: > > Ah, excellent! ?This does indeed seem to prevent the crash. ?Now I > > just need to figure out how to get all my mail out of GMail. > > I did exactly that with offlineimap. It crashes from time to time, but > then you can just restart it

[notmuch] Segfault with weird Message-ID

2009-11-20 Thread Carl Worth
On Fri, 20 Nov 2009 14:26:25 +0100, Mike Hommey wrote: > I can provide the spam if necessary, or can continue debugging the issue > with some guidance. It sounds strange to say it, but yes, please send me that spam! -Carl

[notmuch] [PATCH] Checkin some command-only tcsh completions

2009-11-20 Thread Carl Worth
On Wed, 18 Nov 2009 17:15:43 -0800, Alexander Botero-Lowry wrote: > diff --git a/notmuch-completion.tcsh b/notmuch-completion.tcsh Thanks, Alexander. I moved this down into contrib where our other completion scripts are and pushed it out. -Carl

[notmuch] Segfault with weird Message-ID

2009-11-20 Thread Carl Worth
eaders). We *used* to have working code to detect this kind of file as "not an email" but again, this broke when we changed notmuch_message_get_header to return "" instead of NULL for missing headers. See patches below (just pushed now as well) for the fixes. -Carl -- next part -- An embedded and charset-unspecified text was scrubbed... Name: handle-corrupt-mail-and-non-mail.patchset URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091120/5619e634/attachment.txt>

[notmuch] notmuch new: Memory problem

2009-11-20 Thread Carl Worth
On Fri, 20 Nov 2009 09:56:50 +0100, Dominik Epple wrote: > Is there a problem with the number of my mails? I currently have over > 40.000 Mails... they live currently in mbox files, I created a Maildir > with mb2md-3.20.pl. I'm suspecting that you have some big files in there, (such as indexes

[notmuch] Segfault with weird Message-ID

2009-11-20 Thread Mike Hommey
On Fri, Nov 20, 2009 at 09:53:37PM +0100, Carl Worth wrote: > On Fri, 20 Nov 2009 14:26:25 +0100, Mike Hommey > wrote: > > - for some reason, xapian doesn't want to add the document corresponding > > to this old spam message: notmuch->xapian_db->add_document throws

[notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags

2009-11-20 Thread Keith Packard
When closing a thread view, mark the thread as archived by removing the "inbox" tag, and for the 'x' variant, the "unread" tag as well, then kill the buffer and update the search window view as well. This makes 'x' much the same as 'a', but instead of taking you to the next message, it takes you

[notmuch] [PATCH] Insert signature into replies

2009-11-20 Thread Keith Packard
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

[notmuch] [PATCH 1/3] Make mouse-1 click in search view show thread

2009-11-20 Thread Keith Packard
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 --- notmuch.el |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

[notmuch] [PATCH 2/3] Add 'notmuch count' command to show the count of matching messages

2009-11-20 Thread Keith Packard
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.

[notmuch] [PATCH 3/3] Add notmuch-index mode to display message counts

2009-11-20 Thread Keith Packard
Index mode takes a (user-configurable) list of search patterns and produces a list of those patterns and the count of messages that they match. When an entry in this list is selected, a search window with the defined search is opened. The set of indexes is defined as a list, each element contains

[notmuch] notmuch 'index' mode.

2009-11-20 Thread Keith Packard
l as I do not generally read mail in a linear fashion. -- keith.packard at intel.com -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091120/7c14d629/attachment.pgp>