[notmuch] Working with Maildir storage?

2009-11-18 Thread Mikhail Gusarov
uch/attachments/20091118/60743c36/attachment.pgp>

[notmuch] Working with Maildir storage?

2009-11-18 Thread Mikhail Gusarov
834 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091118/0e33d964/attachment.pgp>

[notmuch] [PATCH] Handle rename of message file

2009-11-18 Thread Mikhail Gusarov
If message file has been renamed, just update filename in the DB. Signed-off-by: Mikhail Gusarov --- lib/database.cc | 21 - 1 files changed, 12 insertions(+), 9 deletions(-) diff --git a/lib/database.cc b/lib/database.cc index 3c8d626..c4eb8b6 100644 ---

[notmuch] [PATCH] Typsos

2009-11-18 Thread Ingmar Vanhassel
--- Makefile|4 ++-- README |6 +++--- gmime-filter-reply.h|2 +- lib/database.cc |2 +- lib/index.cc|2 +- lib/message.cc |2 +- lib/messages.c |2 +- lib/notmuch-private.h |2 +-

[notmuch] Introducing myself

2009-11-18 Thread Adrian Perez de Castro
n-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091118/88190837/attachment-0001.pgp>

[notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++ libs.

2009-11-18 Thread Stewart Smith
Previously, Ubuntu 9.10, gcc 4.4.1 was getting: ccache gcc `pkg-config --libs glib-2.0 gmime-2.4 talloc` `xapian-config --libs` notmuch.o notmuch-config.o notmuch-dump.o notmuch-new.o notmuch-reply.o notmuch-restore.o notmuch-search.o notmuch-setup.o notmuch-show.o notmuch-tag.o notmuch-time.o

[notmuch] [PATCH 2/2] Read mail directory in inode number order

2009-11-18 Thread Stewart Smith
This gives a rather decent reduction in number of seeks required when reading a Maildir that isn't in pagecache. Most filesystems give some locality on disk based on inode numbers. In ext[234] this is the inode tables, in XFS groups of sequential inode numbers are together on disk and the most

[notmuch] [PATCH] count_files: sort directory in inode order before statting

2009-11-18 Thread Stewart Smith
--- notmuch-new.c | 30 ++ 1 files changed, 10 insertions(+), 20 deletions(-) diff --git a/notmuch-new.c b/notmuch-new.c index 11fad8c..c5f841a 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -308,36 +308,26 @@ add_files (notmuch_database_t *notmuch, static void

[notmuch] Mac OS X/Darwin compatibility issues

2009-11-18 Thread Jjgod Jiang
Hi, When I tried to compile notmuch under Mac OS X 10.6, several issues arisen: 1. g++ reports 'warning: command line option "-Wmissing-declarations" is valid for C/ObjC but not for C++' 2. notmuch-reply.c: In function ?address_is_users?: notmuch-reply.c:87: warning: passing argument 2 of

[notmuch] [PATCH] notmuch new: Support for conversion of spool subdirectories into tags

2009-11-18 Thread Jan Janak
This patch makes it possible to convert subdirectory names inside the spool directory into message tags. Messages stored in subdirectory "foo" will be marked with tag "foo". Message duplicates found in several subdirectories will be given one tag per subdirectory. This feature can be used to

[notmuch] Mac OS X/Darwin compatibility issues

2009-11-18 Thread Jjgod Jiang
Hi, On Wed, Nov 18, 2009 at 1:45 PM, Alexander Botero-Lowry wrote: > for getline do you mind trying #define _GNU_SOURCE 1 > before #include in the offending files? The FreeBSD man pages > mentions that as a way of enabling the GNU version of getline(). It seems even _GNU_SOURCE is defined,

[notmuch] request for pull

2009-11-18 Thread Alexander Botero-Lowry
The following changes since commit e8c9c3e6a534fc6c2919c2c1de63cea7250eb488: Ingmar Vanhassel (1): Makefile: Manual pages shouldn't be executable are available in the git repository at: git://alexbl.net/notmuch.git master Alexander Botero-Lowry (2): Error out if no query is

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

2009-11-18 Thread Keith Packard
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. Signed-off-by: Keith Packard --- notmuch.el |8 1 files

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

2009-11-18 Thread Alexander Botero-Lowry
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. > Yes, hooks

[notmuch] [PATCH 1/2] Close message file after parsing message headers

2009-11-18 Thread Carl Worth
On Tue, 17 Nov 2009 13:15:25 -0800, Keith Packard wrote: > Threading the message also involves displaying the from and to contents, > which requires opening the message file. The alternative to the fix I > provided is to just parse all of the message headers when first opening > the message; it

[notmuch] Working with Maildir storage?

2009-11-18 Thread Carl Worth
On Tue, 17 Nov 2009 14:00:54 -0500, Lars Kellogg-Stedman wrote: > I saw the LWN article and decided to take a look at notmuch. I'm > currently using mutt and mairix to index and read a collection of > Maildir mail folders (around 40,000 messages total). Welcome, Lars! I hadn't even seen that

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

2009-11-18 Thread Carl Worth
On Tue, 17 Nov 2009 13:32:45 -0800, Keith Packard wrote: > 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

[notmuch] archive

2009-11-18 Thread Carl Worth
On Tue, 17 Nov 2009 18:04:31 -0800, Keith Packard wrote: > On Tue, 17 Nov 2009 18:21:38 -0500, Aron Griffis > wrote: > > > Just subscribed, I'd like to catch up on the previous postings, > > but the archive link seems to be bogus? > > Yeah, the archive appears broken and will need to wait

[notmuch] [PATCH] Older versions of install do not support -C.

2009-11-18 Thread Carl Worth
On Tue, 17 Nov 2009 23:18:47 +0100, Jan Janak wrote: > Do not use -C cmdline option of install, older versions, commonly found in > distributions like Debian, do not seem to support it. Running make install > on such systems (tested on Debian Lenny) fails. > > Signed-off-by: Jan Janak Thanks,

[notmuch] What a great idea!

2009-11-18 Thread Carl Worth
On Tue, 17 Nov 2009 23:35:30 +0100, Jan Janak wrote: > First of all, notmuch is a wonderful idea, both the cmdline tool and > the emacs interface! Thanks a lot for writing it, I was really excited > when I read the announcement today. Ah, here's where I planned a nice welcome. So welcome

[notmuch] New to the list

2009-11-18 Thread Carl Worth
On Tue, 17 Nov 2009 23:57:18 +0100, Israel Herraiz wrote: > I have subscribed to the list. As suggested by the welcome message, I > am introducing myself. My name is Israel Herraiz, and I have done a > couple of contributions to Sup, the probably well-known here e-mail > client. Welcome, Israel!

[notmuch] [PATCH] Typsos

2009-11-18 Thread Carl Worth
On Wed, 18 Nov 2009 00:23:42 +0100, Ingmar Vanhassel wrote: > 17 files changed, 30 insertions(+), 30 deletions(-) Yikes. That's a lot of typos. Thanks Ingmar, for cleaning up after my sloppy keyboarding. Pushed. -Carl

[notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once

2009-11-18 Thread Chris Wilson
Currently the same `pkg-config ...` is executed for every target, so just store the results in a variable. --- Makefile |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 96aaa73..023b2ec 100644 --- a/Makefile +++ b/Makefile @@ -4,15 +4,16

[notmuch] [PATCH 2/2] reply: Pointer mismatch.

2009-11-18 Thread Chris Wilson
Apparently typeof (size_t) != unsigned int on my x86-64. --- notmuch-reply.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch-reply.c b/notmuch-reply.c index 4a4a782..344b6e3 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -78,7 +78,7 @@ address_is_users

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

2009-11-18 Thread Jan Janak
Hello, The function count_file returns the total number of files to be processed, the result is then stored in add_files_state.total_files. But that variable is reset back to 0 in notmuch_new_command. When I comment out the following line (before add_files is called):

[notmuch] How to list archived mails

2009-11-18 Thread Aneesh Kumar K.V
Hi, 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 ? -aneesh

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

2009-11-18 Thread Aneesh Kumar K.V
>From e3a801c90ed5e037b68bd16807606388e6dbe6e8 Mon Sep 17 00:00:00 2001 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-18 Thread Aneesh Kumar K.V
>From a2325b950016f39290a0c6f0d6aa3417584eb4e8 Mon Sep 17 00:00:00 2001 From: Aneesh Kumar K.V Date: Wed, 18 Nov 2009 20:45:45 +0530 Subject: [PATCH] notmuch: Add tag archive when archiving the mails This enables us to search for archived mails later

[notmuch] [PATCH] notmuch: Add Maildir directory name as tag name for messages

2009-11-18 Thread Aneesh Kumar K.V
>From 24711481dfe770417aa0a13308a9bb842dfb03f4 Mon Sep 17 00:00:00 2001 From: Aneesh Kumar K.V Date: Wed, 18 Nov 2009 21:20:12 +0530 Subject: [PATCH] notmuch: Add Maildir directory name as tag name for messages This patch adds maildir directory name as the tag

[notmuch] "notmuch help" outputs to stderr?

2009-11-18 Thread Carl Worth
On Tue, 17 Nov 2009 20:01:16 -0500, Lars Kellogg-Stedman wrote: > > I've attached a patch that lets usage() take a FILE * argument so that > > you can output to stderr in response to usage errors, and stdout in > > response to an explicit request. > > Whoops, missed a couple of stderr's in that

[notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++ libs.

2009-11-18 Thread Carl Worth
On Wed, 18 Nov 2009 12:05:53 +1100, Stewart Smith wrote: > Previously, Ubuntu 9.10, gcc 4.4.1 was getting: Thanks, Stewart! It's always nice to get portability fixes. This should have beeen pushed by the time I will have been able to send this email. :-) -Carl

[notmuch] Link to mailing list archives ?

2009-11-18 Thread Carl Worth
On Tue, 17 Nov 2009 21:12:23 -0800 (PST), Rolland Santimano wrote: > The link[1] provided on the list page[2] is broken: Hi Rolland, Welcome to the notmuch community. Thanks for the report. This should be fixed now. Do let me know if you run into any further problems. -Carl

[notmuch] request for pull

2009-11-18 Thread Carl Worth
On Wed, 18 Nov 2009 00:02:56 -0800, Alexander Botero-Lowry wrote: > The following changes since commit e8c9c3e6a534fc6c2919c2c1de63cea7250eb488: > > are available in the git repository at: > > git://alexbl.net/notmuch.git master > > Alexander Botero-Lowry (2): > Error out if no query

[notmuch] Introducing myself

2009-11-18 Thread Adrian Perez de Castro
scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091118/e0ada2f2/attachment.pgp>

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

2009-11-18 Thread Keith Packard
This makes things like the goto-address system bring up the right message composition window. Signed-off-by: Keith Packard --- notmuch.el |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/notmuch.el b/notmuch.el index c95cb43..4498200 100644 --- a/notmuch.el +++

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

2009-11-18 Thread Keith Packard
ble URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091118/15c91b22/attachment.pgp>

[notmuch] Problem Building on OSX leopard 10.5.8

2009-11-18 Thread Saptarshi Guha
Hello, Having given up on most email clients yet trapped by them, I came across notmuch. Quite eager to build, 1.download xapian, A suggestion : In the INSTALL/README file, mention that xapian-config should be on path and that it be called xapian-config. When I installed the latest, it was

[notmuch] Segfault searching for tags

2009-11-18 Thread Jeffrey Ollie
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' and 'notmuch search tag:unread' segfault but 'notmuch search tag:nosuchtag', 'notmuch search subject:logwatch' and 'notmuch search

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

2009-11-18 Thread Keith Packard
ype: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091118/7fb913e9/attachment.pgp>

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

2009-11-18 Thread Joshua Roys
--- Hello, This fixes the following for me: notmuch-reply.c: In function ???address_is_users???: notmuch-reply.c:87: warning: passing argument 2 of ???notmuch_config_get_user_other_email??? from incompatible pointer type notmuch-client.h:174: note: expected ???size_t *??? but argument is of

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

2009-11-18 Thread Jeffrey Ollie
On Wed, Nov 18, 2009 at 1:07 PM, Keith Packard wrote: > >> This enables us to search for archived mails later > > 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 tag:inbox A Xapian

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

2009-11-18 Thread Keith Packard
Thanks, windows mail clients. Signed-off-by: Keith Packard --- gmime-filter-reply.c |7 --- notmuch-show.c | 21 +++-- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/gmime-filter-reply.c b/gmime-filter-reply.c index 3e298e1..b269db4 100644 ---

[notmuch] [PATCH] Limit reverse searches to 100 threads.

2009-11-18 Thread Keith Packard
Yes, this is a lame default, but it serves my purposes. Signed-off-by: Keith Packard --- notmuch.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch.el b/notmuch.el index 4498200..91ed073 100644 --- a/notmuch.el +++ b/notmuch.el @@ -945,7 +945,7 @@ This function

[notmuch] [PATCH] Have git ignore etags file

2009-11-18 Thread Keith Packard
--- .gitignore |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index d277c5a..367caa6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +TAGS .deps notmuch notmuch.1.gz -- 1.6.5.2

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

2009-11-18 Thread Keith Packard
-signature Size: 189 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091118/a43dfab8/attachment.pgp>

[notmuch] RPM spec file

2009-11-18 Thread Jeffrey C. Ollie
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 you'd like your own RPMS build your own, I don't plan on offering a

[notmuch] [PATCH] notmuch build: add a RPM spec file

2009-11-18 Thread Jeffrey C. Ollie
Add a spec file for building RPM packages. Signed-off-by: Jeffrey C. Ollie --- notmuch.spec | 110 ++ 1 files changed, 110 insertions(+), 0 deletions(-) create mode 100644 notmuch.spec diff --git a/notmuch.spec b/notmuch.spec new file

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

2009-11-18 Thread Keith Packard
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. Signed-off-by: Keith Packard --- notmuch-reply.c | 13 + notmuch-show.c | 13 +

[notmuch] Mac OS X/Darwin compatibility issues

2009-11-18 Thread Carl Worth
On Wed, 18 Nov 2009 11:50:17 +0800, Jjgod Jiang wrote: > 1. g++ reports 'warning: command line option "-Wmissing-declarations" > is valid for C/ObjC but not for C++' In cairo, what we do is have a huge list of desired warnings and then test each one in turn with a test-compile in the configure

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

2009-11-18 Thread Ingmar Vanhassel
Signed-off-by: Ingmar Vanhassel --- _notmuch | 74 ++ 1 files changed, 74 insertions(+), 0 deletions(-) create mode 100644 _notmuch diff --git a/_notmuch b/_notmuch new file mode 100644 index 000..00c9248 --- /dev/null +++

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

2009-11-18 Thread Ingmar Vanhassel
--- .gitignore |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index d277c5a..a210779 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ notmuch notmuch.1.gz *.[ao] +*~ +.*.swp -- 1.6.5.2.433.g23cdb

[notmuch] Mac OS X/Darwin compatibility issues

2009-11-18 Thread Alexander Botero-Lowry
On Thu, 19 Nov 2009 10:45:28 +1100, Stewart Smith 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 > > happy to accept portability patches for these things, but it's hard for > > me to get excited about

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

2009-11-18 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/20091118/46d9c4b0/attachment.pgp>

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

2009-11-18 Thread Alexander Botero-Lowry
--- notmuch-completion.tcsh |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) create mode 100644 notmuch-completion.tcsh diff --git a/notmuch-completion.tcsh b/notmuch-completion.tcsh new file mode 100644 index 000..c0d3a44 --- /dev/null +++ b/notmuch-completion.tcsh @@ -0,0 +1,2

[notmuch] [PATCH] Handle rename of message file

2009-11-18 Thread Keith Packard
bbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091118/3e449797/attachment.pgp>

[notmuch] [PATCH] Handle rename of message file

2009-11-18 Thread Keith Packard
nformation to make this tractable. -- 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/20091118/693379c8/attachment-0001.pgp>

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

2009-11-18 Thread Keith Packard
lt;http://notmuchmail.org/pipermail/notmuch/attachments/20091118/e3aa9621/attachment.pgp>

[notmuch] [PATCH] Have git ignore tags & cscope files

2009-11-18 Thread Rolland Santimano
--- .gitignore |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 8417d60..ef515f2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ TAGS +tags +*cscope* .deps notmuch notmuch.1.gz -- 1.5.4.3