unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 0/1] Enabling header caching in mutt
@ 2016-03-21  2:47 Leo Famulari
  2016-03-21  2:47 ` [PATCH 1/1] gnu: mutt: Enable header caching Leo Famulari
  2016-03-21 10:20 ` [PATCH 0/1] Enabling header caching in mutt Efraim Flashner
  0 siblings, 2 replies; 5+ messages in thread
From: Leo Famulari @ 2016-03-21  2:47 UTC (permalink / raw)
  To: guix-devel

This patch builds mutt with support for header caching so that large
mailboxes can be opened quickly.

Without the header cache, each message's headers are processed before
the mailbox can be used. For large mailboxes (>10000 messages), this can
take minutes.

To use the header cache, users must enable it in their configuration.

It's following up on this:
http://lists.gnu.org/archive/html/help-guix/2016-03/msg00055.html

I checked, and bdb and gdbm are already both in mutt's build-time
dependency graph (openldap refers to bdb and python refers to gdbm).

I've chosen gdbm for it's small size and because it's a GNU project. If
anyone says they prefer another database, then let's talk!

Leo Famulari (1):
  gnu: mutt: Enable header caching.

 gnu/packages/mail.scm | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.7.3

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/1] gnu: mutt: Enable header caching.
  2016-03-21  2:47 [PATCH 0/1] Enabling header caching in mutt Leo Famulari
@ 2016-03-21  2:47 ` Leo Famulari
  2016-03-21 16:44   ` Ludovic Courtès
  2016-03-21 10:20 ` [PATCH 0/1] Enabling header caching in mutt Efraim Flashner
  1 sibling, 1 reply; 5+ messages in thread
From: Leo Famulari @ 2016-03-21  2:47 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/mail.scm (mutt)[inputs]: Add gdbm.
[arguments]: Pass --enable-hcache to #:configure-flags.
---
 gnu/packages/mail.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 5bb633d..2ca5bbf 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -189,6 +189,7 @@ aliasing facilities to work just as they would on normal mail.")
     (build-system gnu-build-system)
     (inputs
      `(("cyrus-sasl" ,cyrus-sasl)
+       ("gdbm" ,gdbm)
        ("gpgme" ,gpgme)
        ("ncurses" ,ncurses)
        ("openssl" ,openssl)
@@ -198,6 +199,7 @@ aliasing facilities to work just as they would on normal mail.")
                            "--enable-imap"
                            "--enable-pop"
                            "--enable-gpgme"
+                           "--enable-hcache"
                            "--with-ssl"
                            "--with-sasl"
                            ;; so that mutt does not check whether the path
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/1] Enabling header caching in mutt
  2016-03-21  2:47 [PATCH 0/1] Enabling header caching in mutt Leo Famulari
  2016-03-21  2:47 ` [PATCH 1/1] gnu: mutt: Enable header caching Leo Famulari
@ 2016-03-21 10:20 ` Efraim Flashner
  1 sibling, 0 replies; 5+ messages in thread
From: Efraim Flashner @ 2016-03-21 10:20 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1210 bytes --]

On Sun, Mar 20, 2016 at 10:47:04PM -0400, Leo Famulari wrote:
> This patch builds mutt with support for header caching so that large
> mailboxes can be opened quickly.
> 
> Without the header cache, each message's headers are processed before
> the mailbox can be used. For large mailboxes (>10000 messages), this can
> take minutes.
> 
> To use the header cache, users must enable it in their configuration.
> 
> It's following up on this:
> http://lists.gnu.org/archive/html/help-guix/2016-03/msg00055.html
> 
> I checked, and bdb and gdbm are already both in mutt's build-time
> dependency graph (openldap refers to bdb and python refers to gdbm).
> 
> I've chosen gdbm for it's small size and because it's a GNU project. If
> anyone says they prefer another database, then let's talk!
> 

I've just tried this out on my machine. At first I didn't see any
change, but then I added `set header_cache = ~/.cache/mutt/` to my
.muttrc and I was blown away by the difference.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] gnu: mutt: Enable header caching.
  2016-03-21  2:47 ` [PATCH 1/1] gnu: mutt: Enable header caching Leo Famulari
@ 2016-03-21 16:44   ` Ludovic Courtès
  2016-03-21 20:49     ` Leo Famulari
  0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2016-03-21 16:44 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

Leo Famulari <leo@famulari.name> skribis:

> * gnu/packages/mail.scm (mutt)[inputs]: Add gdbm.
> [arguments]: Pass --enable-hcache to #:configure-flags.

I don’t use Mutt but this LGTM!

>      (inputs
>       `(("cyrus-sasl" ,cyrus-sasl)
> +       ("gdbm" ,gdbm)

Maybe add “for header caching” as a margin comment.

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] gnu: mutt: Enable header caching.
  2016-03-21 16:44   ` Ludovic Courtès
@ 2016-03-21 20:49     ` Leo Famulari
  0 siblings, 0 replies; 5+ messages in thread
From: Leo Famulari @ 2016-03-21 20:49 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

On Mon, Mar 21, 2016 at 05:44:37PM +0100, Ludovic Courtès wrote:
> Leo Famulari <leo@famulari.name> skribis:
> 
> > * gnu/packages/mail.scm (mutt)[inputs]: Add gdbm.
> > [arguments]: Pass --enable-hcache to #:configure-flags.
> 
> I don’t use Mutt but this LGTM!
> 
> >      (inputs
> >       `(("cyrus-sasl" ,cyrus-sasl)
> > +       ("gdbm" ,gdbm)
> 
> Maybe add “for header caching” as a margin comment.

Done in b0bb01369!

> 
> Thanks,
> Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-21 20:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-21  2:47 [PATCH 0/1] Enabling header caching in mutt Leo Famulari
2016-03-21  2:47 ` [PATCH 1/1] gnu: mutt: Enable header caching Leo Famulari
2016-03-21 16:44   ` Ludovic Courtès
2016-03-21 20:49     ` Leo Famulari
2016-03-21 10:20 ` [PATCH 0/1] Enabling header caching in mutt Efraim Flashner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).