[notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap

2009-11-19 Thread Carl Worth
On Wed, 18 Nov 2009 00:29:59 -0800, Keith Packard wrote: > I created the notmuch-show-hook precisely so I could add these two > options, but I suspect most people will want them, so I just made them > the default. If you don't want them, you can use remove-hook to get > rid of this. Thanks,

[notmuch] Why is no. of files from count_files reset to 0?

2009-11-19 Thread Carl Worth
On Wed, 18 Nov 2009 15:36:51 +0100, Jan Janak wrote: > When I comment out the following line (before add_files is called): > > add_files_state.total_files = 0; > > The progress indicator shows the total number of files to be > processed, as well as the time remaining. This is, IMHO, much

[notmuch] How to list archived mails

2009-11-19 Thread Carl Worth
On Wed, 18 Nov 2009 20:35:26 +0530, aneesh.kumar at linux.vnet.ibm.com (Aneesh Kumar K.V) wrote: > Once i mark the mail as archived how do i search for them ? > Right now with notmuch.el i am adding a tag "archive" when > i am archiving the mail. I am just wondering is this the right > way ? You

[notmuch] [PATCH] notmuch: Add hooks for show-mode and search-mode

2009-11-19 Thread Carl Worth
On Wed, 18 Nov 2009 20:44:58 +0530, aneesh.kumar at linux.vnet.ibm.com (Aneesh Kumar K.V) wrote: > From: Aneesh Kumar K.V > Date: Wed, 18 Nov 2009 20:43:13 +0530 > Subject: [PATCH] notmuch: Add hooks for show-mode and search-mode > > This enables to do things like > > (add-hook

[notmuch] [PATCH] notmuch: Add tag archive when archiving the mails

2009-11-19 Thread Carl Worth
On Wed, 18 Nov 2009 13:50:58 -0600, Jeffrey Ollie wrote: > On Wed, Nov 18, 2009 at 1:07 PM, Keith Packard wrote: > > I think you can just use 'not tag:inbox' as 'archived' really just means > > 'doesn't have the inbox tag'. > > That resulted in an error for me: > > $ notmuch search not

[notmuch] Mac OS X/Darwin compatibility issues

2009-11-19 Thread Stewart Smith
On Wed, Nov 18, 2009 at 11:27:20PM +0100, Carl Worth wrote: > Yes. I knew I was "cheating" by using some GNU extensions here. I'm > happy to accept portability patches for these things, but it's hard for > me to get excited about writing them myself. > > Care to take a whack at these?

[notmuch] [PATCH] We use the message mail system for new mail, let emacs know.

2009-11-19 Thread Carl Worth
On Wed, 18 Nov 2009 09:34:51 -0800, Keith Packard wrote: > This makes things like the goto-address system bring up the right > message composition window. Thanks. Pushed. -Carl

[notmuch] [PATCH] Allow lone "not" search operators

2009-11-19 Thread Adrian 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

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

2009-11-19 Thread Carl Worth
On Wed, 18 Nov 2009 09:45:01 -0800, Keith Packard wrote: > On Wed, 18 Nov 2009 02:19:26 -0800, Carl Worth wrote: > You can use kill-buffer directly (C-X k); adding a new special binding > for that command seems unnecessary to me. Well, that's "Control, X, K, Enter", so quite a bit harder than

[notmuch] [PATCH] Fix a compile warning under gcc-4.4.1

2009-11-19 Thread Carl Worth
On Wed, 18 Nov 2009 14:43:22 -0500, Joshua Roys wrote: > --- > Hello, > This fixes the following for me: Thanks so much for the report and patch, Joshua. This bug was recently fixed in a commit pushed out to the notmuch repository. Happy hacking, -Carl

[notmuch] [PATCH] Filter out carriage-returns in show and reply output.

2009-11-19 Thread Carl Worth
On Wed, 18 Nov 2009 11:56:13 -0800, Keith Packard wrote: > Thanks, windows mail clients. Very nice to have. Pushed. -Carl

[notmuch] Fw: Introducing myself

2009-11-19 Thread Adrian Perez de Castro
ftware Engineering -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091119/c9d3ac28/attachment.pgp>

[notmuch] [PATCH] Make reply/show/tag all require at least one search term

2009-11-19 Thread Carl Worth
On Wed, 18 Nov 2009 13:45:58 -0800, Keith Packard wrote: > In particular, notmuch tag -inbox "" tended to take a long time to > run, happened if you hit 'a' on a blank line in the search view and > probably didn't have the desired effect. Another nice fix. Thanks again. This is pushed. -Carl

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

2009-11-19 Thread Jan 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 --- Makefile | 11 +++ 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 96aaa73..2787aff 100644 ---

[notmuch] [PATCH] Allow lone "not" search operators

2009-11-19 Thread Carl Worth
On Thu, 19 Nov 2009 01:07:22 +0100, Adrian Perez wrote: > As suggested by Keith in FLAG_PURE_NOT allows for expressions like: > > notmuch search NOT tag:inbox Oh, fantastic! I guess I'd run into enough QueryParser bugs recently that I was willing to blame it without cause this time. And I

[notmuch] How to list archived mails

2009-11-19 Thread Carl Worth
On Thu, 19 Nov 2009 00:38:01 +0100, Carl Worth wrote: > On Wed, 18 Nov 2009 20:35:26 +0530, aneesh.kumar at linux.vnet.ibm.com > (Aneesh Kumar K.V) wrote: > > Once i mark the mail as archived how do i search for them ? > > Right now with notmuch.el i am adding a tag "archive" when > > i am

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

2009-11-19 Thread Carl Worth
On Wed, 18 Nov 2009 23:50:40 +0100, Ingmar Vanhassel wrote: > Signed-off-by: Ingmar Vanhassel > --- > _notmuch | 74 > ++ > 1 files changed, 74 insertions(+), 0 deletions(-) > create mode 100644 _notmuch Looks nice. Could you

[notmuch] Fw: Introducing myself

2009-11-19 Thread Adrian Perez de Castro
--- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091119/4b5eaf49/attachment-0001.pgp>

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

2009-11-19 Thread Ingmar Vanhassel
Excerpts from Carl Worth's message of Thu Nov 19 01:51:51 +0100 2009: > On Wed, 18 Nov 2009 23:50:40 +0100, Ingmar Vanhassel > wrote: > > Signed-off-by: Ingmar Vanhassel > > --- > > _notmuch | 74 > > ++ > > 1 files changed, 74

[notmuch] RPM spec file

2009-11-19 Thread Carl Worth
On Wed, 18 Nov 2009 12:31:53 -0600, "Jeffrey C. Ollie" wrote: > I prefere managing all of the software on my system with RPM, so I > came up with a quick spec file for building RPMS. Once notmuch > settles down and I continue using it I may submit notmuch to Fedora as > an official package. If

[notmuch] request for pull

2009-11-19 Thread Carl Worth
On Wed, 18 Nov 2009 08:29:41 -0800, Carl Worth wrote: > On Wed, 18 Nov 2009 00:02:56 -0800, Alexander Botero-Lowry at gmail.com> wrote: > > The following changes since commit e8c9c3e6a534fc6c2919c2c1de63cea7250eb488: > > > > are available in the git repository at: > > > >

[notmuch] [PATCH] Handle rename of message file

2009-11-19 Thread Carl Worth
On Wed, 18 Nov 2009 02:51:18 +0600, Mikhail Gusarov wrote: > If message file has been renamed, just update filename in the DB. > > Signed-off-by: Mikhail Gusarov I believe you said in IRC that this patch is not ready yet. I'd love to hear more from you on any experiments/ideas you have in

[notmuch] [PATCH] Handle rename of message file

2009-11-19 Thread Mikhail Gusarov
Twas brillig at 02:08:15 19.11.2009 UTC+01 when cworth at cworth.org did gyre and gimble: CW> I believe you said in IRC that this patch is not ready yet. Yes. CW> I'd love to hear more from you on any experiments/ideas you have in CW> this area. It would be a really nice feature to have,

[notmuch] [PATCH] Makefile: Create elisp install directory explicitly

2009-11-19 Thread Ingmar Vanhassel
When doing a DESTDIR install, this directory likely won't exist, and installing notmuch.el will fail. See 0d4b5292 --- Makefile.local |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile.local b/Makefile.local index 27e42ba..6bc01a5 100644 --- a/Makefile.local +++

[notmuch] [PATCH] Handle rename of message file

2009-11-19 Thread Mikhail Gusarov
ked up by 'notmuch new'. -- http://fossarchy.blogspot.com/ -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 834 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091119

[notmuch] [PATCH] notmuch: Add search mode hook

2009-11-19 Thread Aneesh Kumar K.V
This patch add notmuch-search-mode-hook and rename notmuch-show-hook to notmuch-show-mode-hook. This also runs notmuch-show-mode-hook when we enable notmuch-show-mode Signed-off-by: Aneesh Kumar K.V CC:Keith Packard --- notmuch.el | 20 +++- 1 files changed, 15 insertions(+),

[notmuch] [PATCH 2/2] .gitignore: Add common editor droppings

2009-11-19 Thread Karl Wiberg
On Wed, Nov 18, 2009 at 11:51 PM, Ingmar Vanhassel wrote: > diff --git a/.gitignore b/.gitignore > index d277c5a..a210779 100644 > --- a/.gitignore > +++ b/.gitignore > @@ -2,4 +2,6 @@ > ?notmuch > ?notmuch.1.gz > ?*.[ao] > +*~ > +.*.swp Since these patterns are specific to a user rather than

[notmuch] Mac OS X/Darwin compatibility issues

2009-11-19 Thread Stewart Smith
On Wed, Nov 18, 2009 at 04:24:42PM -0800, Alexander Botero-Lowry wrote: > On Thu, 19 Nov 2009 10:45:28 +1100, Stewart Smith flamingspork.com> wrote: > > On Wed, Nov 18, 2009 at 11:27:20PM +0100, Carl Worth wrote: > > > Yes. I knew I was "cheating" by using some GNU extensions here. I'm > > >

[notmuch] [PATCH] notmuch: Add search mode hook

2009-11-19 Thread Aneesh Kumar K.V
On Wed, Nov 18, 2009 at 09:21:11PM -0800, Keith Packard wrote: > On Thu, 19 Nov 2009 10:25:37 +0530, "Aneesh Kumar K.V" linux.vnet.ibm.com> wrote: > > > This patch add notmuch-search-mode-hook and rename > > notmuch-show-hook to notmuch-show-mode-hook. This > > also runs notmuch-show-mode-hook

[notmuch] [PATCH -V3] notmuch: Add search mode hook

2009-11-19 Thread Aneesh 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 Cc:Keith Packard --- notmuch.el | 12 +++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/notmuch.el b/notmuch.el index 706e9f3..1fc54c3 100644

[notmuch] [PATCH] notmuch: improve installation of emacs mode

2009-11-19 Thread Jeffrey C. Ollie
1) Don't hardcode the installation directory, instead use emacs' pkg-config module. 2) Install a byte compiled version of the emacs mode. 3) Install the emacs mode in emacs' site-start directory so that it gets loaded automatically. --- Makefile |6 ++ Makefile.local |9

[notmuch] RPM spec file

2009-11-19 Thread Jeffrey Ollie
On Wed, Nov 18, 2009 at 7:03 PM, Carl Worth wrote: > On Wed, 18 Nov 2009 12:31:53 -0600, "Jeffrey C. Ollie" > wrote: >> I prefere managing all of the software on my system with RPM, so I >> came up with a quick spec file for building RPMS. ?Once notmuch >> settles down and I continue using it I

[notmuch] Gentoo ebuild for notmuch

2009-11-19 Thread James Rowe
Hi, 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. I won't bother the list if it requires changes, as it is available from my main overlay[1] if you wish to check

[notmuch] link error

2009-11-19 Thread Peter Wang
Hi, Linking fails on my system for some reason (undefined references to talloc functions). Putting $(LDFLAGS) after the object list solves it. Peter diff --git a/Makefile.local b/Makefile.local index 27e42ba..c2fbe21 100644 --- a/Makefile.local +++ b/Makefile.local @@ -18,7 +18,7 @@

[notmuch] link error

2009-11-19 Thread James Rowe
* Peter Wang (novalazy at gmail.com) wrote: > Linking fails on my system for some reason (undefined references to > talloc functions). Putting $(LDFLAGS) after the object list solves it. I have a similar ordering change in the ebuild I posted earlier as a workaround for people using ld's

[notmuch] [PATCH] notmuch: improve installation of emacs mode

2009-11-19 Thread Ingmar Vanhassel
Excerpts from Jeffrey C. Ollie's message of Thu Nov 19 07:18:50 +0100 2009: > 1) Don't hardcode the installation directory, instead use emacs' >pkg-config module. > > 2) Install a byte compiled version of the emacs mode. > > 3) Install the emacs mode in emacs' site-start directory so that it

[notmuch] [PATCH] Makefile: Create elisp install directory explicitly

2009-11-19 Thread Carl Worth
On Thu, 19 Nov 2009 02:45:44 +0100, Ingmar Vanhassel wrote: > When doing a DESTDIR install, this directory likely won't exist, and > installing notmuch.el will fail. Thanks. Pushed. -Carl

[notmuch] [PATCH 1/2] notmuch: Support for notmuch_database_get_tags

2009-11-19 Thread Jan Janak
This patch adds a new function called notmuch_database_get_tags which can be used to obtain a list of all tags defined in the database (that is, the list all tags from all messages). The function produces an alphabetically sorted list. To add support for the new function, we rip the guts off of

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

2009-11-19 Thread Jan Janak
Here we create a new notmuch command called list. The purpose of the command is to produce various lists from the notmuch database. At the moment we support only one command, notmuch list tags. This command creates a list of all tags found in the database. Signed-off-by: Jan Janak ---

[notmuch] Mac OS X/Darwin compatibility issues

2009-11-19 Thread Carl Worth
On Thu, 19 Nov 2009 16:42:42 +1100, Stewart Smith wrote: > > The idea with gnulib (at least what we've done with drizzle) is to > just copy the bits you need into the tree. Does work pretty well for > those small things that you just don't need to depend on a giant like > glib for. Looks like

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

2009-11-19 Thread Jan Janak
Carl and others, I implemented a new notmuch command that can be used to list all tags present in the database: $ notmuch list tags If you run this, you'll get an alphabetically sorted list of all tags--one tag per line. The main reason why I implemented this is because I am also working on

[notmuch] [PATCH] notmuch: improve installation of emacs mode

2009-11-19 Thread Jeffrey C. Ollie
1) Add a separate install target to 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-start directory so that it gets loaded automatically.

[notmuch] [PATCH] notmuch: improve installation of emacs mode

2009-11-19 Thread Ingmar Vanhassel
Excerpts from Jeffrey C. Ollie's message of Thu Nov 19 14:12:48 +0100 2009: > 1) Add a separate install target to install emacs mode. Thanks > 2) Don't hardcode the installation directory, instead use emacs' >pkg-config module. > > 3) Install a byte compiled version of the emacs mode. > >

[notmuch] [PATCH] notmuch.el: Completion for tag names.

2009-11-19 Thread Jan Janak
Add support for completion of tag names. Several commands ask the user for a tag name. With this feature the user can just press tab and emacs automatically retrieves the list of all existing tags from notmuch database with 'notmuch list tags' and presents a completion buffer to the user.

[notmuch] [PATCH] notmuch: improve installation of emacs mode

2009-11-19 Thread 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-start directory so that it gets loaded

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

2009-11-19 Thread Carl Worth
On Thu, 19 Nov 2009 12:52:49 +0100, Jan Janak wrote: > I implemented a new notmuch command that can be used to list all tags > present in the database: Ah, very very interesting! I'd been planning on doing something like this soon. And I was just thinking of "notmuch tags" as the command line.

[notmuch] [PATCH -V3] notmuch: Add search mode hook

2009-11-19 Thread Keith Packard
- 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/20091119/8536ad3e/attachment.pgp>

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

2009-11-19 Thread Jan Janak
On Thu, Nov 19, 2009 at 3:41 PM, Carl Worth wrote: > On Thu, 19 Nov 2009 12:52:49 +0100, Jan Janak wrote: >> I implemented a new notmuch command that can be used to list all tags >> present in the database: > > Ah, very very interesting! I'd been planning on doing something like > this soon. And

[notmuch] Segfault searching for tags

2009-11-19 Thread Adrian Perez de Castro
Castro Igalia - Free Software Engineering -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091119/5a6cbd02/attachment.pgp>

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

2009-11-19 Thread Bdale Garbee
On Thu, 2009-11-19 at 15:41 +0100, Carl Worth wrote: > The other reason I've wanted this is have something like a "folder view" > that would show a list of tags and a number of messages with each tag, > (or a number of messages with that tag and the inbox tag). > > I know that Keith said he'd

[notmuch] [PATCH] notmuch: improve installation of emacs mode

2009-11-19 Thread Keith Packard
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/20091119/a5e66746/attachment.pgp>

[notmuch] [PATCH] notmuch: improve installation of emacs mode

2009-11-19 Thread Ingmar Vanhassel
Excerpts from Jeffrey C. Ollie's message of Thu Nov 19 15:27:02 +0100 2009: > 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)

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

2009-11-19 Thread 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

[notmuch] [PATCH 2/2] Add a .desktop file entry.

2009-11-19 Thread 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 --- notmuch.desktop |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) create mode 100644 notmuch.desktop diff --git a/notmuch.desktop

[notmuch] [PATCH 2/2] .gitignore: Add common editor droppings

2009-11-19 Thread Jeffrey Ollie
On Wed, Nov 18, 2009 at 11:39 PM, Karl Wiberg wrote: > > Since these patterns are specific to a user rather than a project, > shouldn't they go in the user's ignore file (~/.gitignore) rather than > the project's? If every user could be counted on to put them in their personal .gitignore

[notmuch] [PATCH] Buttonize citation expander.

2009-11-19 Thread Alexander Botero-Lowry
Currently the button has no action or special handling at all. --- notmuch.el | 15 +++ 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/notmuch.el b/notmuch.el index 1fc54c3..6a34282 100644 --- a/notmuch.el +++ b/notmuch.el @@ -453,10 +453,17 @@ which this thread was

[notmuch] Segfault searching for tags

2009-11-19 Thread Jeffrey Ollie
On Thu, Nov 19, 2009 at 9:45 AM, Adrian Perez de Castro wrote: > On Wed, 18 Nov 2009 12:00:10 -0600, Jeffrey wrote: > >> Getting the following segfault with 306635c2 on Fedora 12. ?Seems to >> be happening with any 'tag:' search that returns results. ?For >> example, 'notmuch search tag:inbox'