[PATCH 3/3] notmuch-compact: Add man page

2013-08-23 Thread Ben Gamari
Signed-off-by: Ben Gamari --- man/Makefile.local | 1 + man/man1/notmuch-compact.1 | 33 + 2 files changed, 34 insertions(+) create mode 100644 man/man1/notmuch-compact.1 diff --git a/man/Makefile.local b/man/Makefile.local index 216aaa0..57910b7 100644

[PATCH 2/3] notmuch-compact: Initial commit

2013-08-23 Thread Ben Gamari
Introduce the user command exposing the new compaction facility. Signed-off-by: Ben Gamari --- Makefile.local| 1 + notmuch-client.h | 6 ++ notmuch-compact.c | 43 +++ notmuch.c | 2 ++ 4 files changed, 52 insertions(+) create mode 10

[PATCH 1/3] database: Add notmuch_database_compact_close

2013-08-23 Thread Ben Gamari
This function uses Xapian's Compactor machinery to compact the notmuch database. The compacted database is built in a temporary directory and later moved into place while the original uncompacted database is preserved. Signed-off-by: Ben Gamari --- configure | 27 +++-- lib/dat

No subject

2013-08-23 Thread Ben Gamari
From: Ben Gamari Subject: [PATCH] notmuch compact support (v3) In-Reply-To: Here is the latest (and hopefully last) iteration of my patchset introducing a compact command. The set has been rebased on top of master, a manpage has been added, and error handling has been greatly improved. Cheers,

[Olivier Berger] Bug#720543: notmuch: Please provide a script allowing to compact the xapian base

2013-08-23 Thread Ben Gamari
rubbed... Name: not available Type: application/pgp-signature Size: 489 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20130823/a2780b58/attachment.pgp>

[DRAFT PATCH] emacs: describe-prefix-bindings...

2013-08-23 Thread Mark Walters
Yes this is nice. Particularly for less common things like "open with" for attachments and some of the stash commands. A notmuch--describe-prefix-bindings would make it even nicer. But I think the current version is enough of an improvement it could go in without much change: as a first step a "

[PATCH 2/3] notmuch-compact: Initial commit

2013-08-23 Thread Ben Gamari
Introduce the user command exposing the new compaction facility. Signed-off-by: Ben Gamari --- Makefile.local| 1 + notmuch-client.h | 6 ++ notmuch-compact.c | 43 +++ notmuch.c | 2 ++ 4 files changed, 52 insertions(+) create mode 10

[no subject]

2013-08-23 Thread Ben Gamari
From: Ben Gamari Subject: [PATCH] notmuch compact support (v3) In-Reply-To: Here is the latest (and hopefully last) iteration of my patchset introducing a compact command. The set has been rebased on top of master, a manpage has been added, and error handling has been greatly improved. Cheers,

[PATCH 3/3] notmuch-compact: Add man page

2013-08-23 Thread Ben Gamari
Signed-off-by: Ben Gamari --- man/Makefile.local | 1 + man/man1/notmuch-compact.1 | 33 + 2 files changed, 34 insertions(+) create mode 100644 man/man1/notmuch-compact.1 diff --git a/man/Makefile.local b/man/Makefile.local index 216aaa0..57910b7 100644

[PATCH 1/3] database: Add notmuch_database_compact_close

2013-08-23 Thread Ben Gamari
This function uses Xapian's Compactor machinery to compact the notmuch database. The compacted database is built in a temporary directory and later moved into place while the original uncompacted database is preserved. Signed-off-by: Ben Gamari --- configure | 27 +++-- lib/dat

[DRAFT PATCH] emacs: describe-prefix-bindings...

2013-08-23 Thread Tomi Ollila
--- I plan to do `notmuch--describe-prefix-bindings' if there is support for this functionality (or no better solution exists -- I recall there is specific C functionality doing C-h handling...) emacs/notmuch-show.el | 2 ++ emacs/notmuch.el | 1 + 2 files changed, 3 insertions(+) diff --

Re: [Olivier Berger] Bug#720543: notmuch: Please provide a script allowing to compact the xapian base

2013-08-23 Thread Ben Gamari
Olivier Berger said: > I think it would be great to provide a script allowing to do some > maintenance on the xapian DB to improve performance, as explained in > http://notmuchmail.org/performance/ (Compact your database). A few months^H^H^H nearly a year ago I had a patch[1] adding a `notmuch co

[PATCH 4/4] timegm: add portable implementation (Solaris support)

2013-08-23 Thread David Bremner
Vladimir.Marek at oracle.com writes: > From: Blake Jones > > The timegm(3) function is a non-standard extension to libc which is > available in GNU libc and on some BSDs. Although SunOS had this > function in its libc, Solaris (unfortunately) removed it. This patch > implements a very simple ve

[PATCH] emacs: insert quotable parts in reply as they are displayed in show view

2013-08-23 Thread Mark Walters
Hi On Mon, 19 Aug 2013, Jani Nikula wrote: > In reply, insert quotable parts using notmuch-show-insert-bodypart > instead of calling notmuch-mm-display-part-inline directly to render > the quoted parts as they are rendered in show view. > > The notable change is that replies to text/calendar par

Re: [DRAFT PATCH] emacs: describe-prefix-bindings...

2013-08-23 Thread Mark Walters
Yes this is nice. Particularly for less common things like "open with" for attachments and some of the stash commands. A notmuch--describe-prefix-bindings would make it even nicer. But I think the current version is enough of an improvement it could go in without much change: as a first step a "

[Olivier Berger] Bug#720543: notmuch: Please provide a script allowing to compact the xapian base

2013-08-23 Thread David Bremner
An embedded message was scrubbed... From: Olivier Berger Subject: Bug#720543: notmuch: Please provide a script allowing to compact the xapian base Date: Fri, 23 Aug 2013 11:41:54 +0200 Size: 5379 URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20130823/f08ee5bb/attachment.mht>

[DRAFT PATCH] emacs: describe-prefix-bindings...

2013-08-23 Thread Tomi Ollila
--- I plan to do `notmuch--describe-prefix-bindings' if there is support for this functionality (or no better solution exists -- I recall there is specific C functionality doing C-h handling...) emacs/notmuch-show.el | 2 ++ emacs/notmuch.el | 1 + 2 files changed, 3 insertions(+) diff --

[PATCH] emacs: add buttons for all multipart/related parts

2013-08-23 Thread Mark Walters
Jameson Graef Rollins writes: > On Fri, Aug 16 2013, Istvan Marko wrote: >> When text/html parts include images as multipart/related and the >> text/plain alternative is used these images can be completely hidden >> with no easy way to access them or even find out that they are there. >> >> Mak

[PATCH] emacs: show: lazy part bugfix

2013-08-23 Thread Mark Walters
The lazy part handling had a subtle bug. Notmuch stores the part information as a text property with the displayed part so attachment handling (saving viewing etc work). Now, some mime parts have subparts and to avoid overwriting the sub-part data notmuch checks and if part data is already recorde

Re: [PATCH] emacs: insert quotable parts in reply as they are displayed in show view

2013-08-23 Thread Mark Walters
Hi On Mon, 19 Aug 2013, Jani Nikula wrote: > In reply, insert quotable parts using notmuch-show-insert-bodypart > instead of calling notmuch-mm-display-part-inline directly to render > the quoted parts as they are rendered in show view. > > The notable change is that replies to text/calendar par

[PATCH] make http links into buttons

2013-08-23 Thread Mark Walters
This patch replaces the use of goto-address-fontify-region with our own code doing roughly the same thing. The advantage is that we control how the resulting buttons work. In particular RET on link activates the button (in my case opening it in an external browser) and TAB stops at these links. I

[Olivier Berger] Bug#720543: notmuch: Please provide a script allowing to compact the xapian base

2013-08-23 Thread David Bremner
--- Begin Message --- Package: notmuch Version: 0.16-1 Severity: wishlist Hi. I think it would be great to provide a script allowing to do some maintenance on the xapian DB to improve performance, as explained in http://notmuchmail.org/performance/ (Compact your database). Thanks in advance.

Re: [PATCH] emacs: add buttons for all multipart/related parts

2013-08-23 Thread Mark Walters
Jameson Graef Rollins writes: > On Fri, Aug 16 2013, Istvan Marko wrote: >> When text/html parts include images as multipart/related and the >> text/plain alternative is used these images can be completely hidden >> with no easy way to access them or even find out that they are there. >> >> Mak

[PATCH] emacs: show: lazy part bugfix

2013-08-23 Thread Mark Walters
The lazy part handling had a subtle bug. Notmuch stores the part information as a text property with the displayed part so attachment handling (saving viewing etc work). Now, some mime parts have subparts and to avoid overwriting the sub-part data notmuch checks and if part data is already recorde