Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* notmuch?
@ 2009-11-25 20:55 Adam Sjøgren
  2009-11-26 19:32 ` notmuch? Tassilo Horn
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Adam Sjøgren @ 2009-11-25 20:55 UTC (permalink / raw)
  To: info-gnus-english

  Hi.


Has anyone here played with notmuch¹ in combination with Gnus? I see it
has an Emacs-interface, but I haven't tried it yet.

(It is still indexing my 140k emails :-))


  Best regards,

    Adam


¹ http://notmuchmail.org/

-- 
 "I'm sorry I sound calm. I assure you that                   Adam Sjøgren
  I am hysterical."                                      asjo@koldfront.dk

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

* Re: notmuch?
  2009-11-25 20:55 notmuch? Adam Sjøgren
@ 2009-11-26 19:32 ` Tassilo Horn
       [not found] ` <mailman.11580.1259263995.2239.info-gnus-english@gnu.org>
  2009-11-28 13:14 ` notmuch? David Engster
  2 siblings, 0 replies; 5+ messages in thread
From: Tassilo Horn @ 2009-11-26 19:32 UTC (permalink / raw)
  To: info-gnus-english

asjo@koldfront.dk (Adam Sjøgren) writes:

Hi Adam,

> Has anyone here played with notmuch¹ in combination with Gnus? I see
> it has an Emacs-interface, but I haven't tried it yet.
>
> (It is still indexing my 140k emails :-))

While you are still indexing, I already use it, and it's fantastic. :-)

Bye,
Tassilo

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

* Re: notmuch?
       [not found] ` <mailman.11580.1259263995.2239.info-gnus-english@gnu.org>
@ 2009-11-26 19:54   ` Adam Sjøgren
  2009-11-27 10:50     ` notmuch? Tassilo Horn
  0 siblings, 1 reply; 5+ messages in thread
From: Adam Sjøgren @ 2009-11-26 19:54 UTC (permalink / raw)
  To: info-gnus-english

On Thu, 26 Nov 2009 20:32:39 +0100, Tassilo wrote:

> While you are still indexing, I already use it, and it's fantastic. :-)

With Gnus? Could you share some of your experiences, setup etc.?


  Best regards,

    Adam

-- 
 "What are you doing?"                                        Adam Sjøgren
 "Being 'cool'."                                         asjo@koldfront.dk
 "You look more like you're being bored."
 "The world bores you when you're cool."

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

* Re: notmuch?
  2009-11-26 19:54   ` notmuch? Adam Sjøgren
@ 2009-11-27 10:50     ` Tassilo Horn
  0 siblings, 0 replies; 5+ messages in thread
From: Tassilo Horn @ 2009-11-27 10:50 UTC (permalink / raw)
  To: info-gnus-english

asjo@koldfront.dk (Adam Sjøgren) writes:

Hi Adam,

>> While you are still indexing, I already use it, and it's
>> fantastic. :-)
>
> With Gnus? Could you share some of your experiences, setup etc.?

Sure.  I use notmuch as search engine only, and do replying and normal
reading in Gnus.  So the most important part is to be able to jump from
a *notmuch-show* buffer to exactly that message in Gnus.  Here's the
code that here:

--8<---------------cut here---------------start------------->8---
(require 'notmuch)

(defun th-notmuch-file-to-group (file)
  "Calculate the Gnus group name from the given file name.

Example:

  IN: /home/horn/Mail/Dovecot/Fastmail/.INBOX.mailinglists.notmuch/cur/1259184569.M4818P3384.localhost,W=6921:2,S
  OUT: nnimap+Fastmail:INBOX.mailinglists.notmuch

  IN: /home/horn/Mail/Dovecot/Fastmail/cur/1259176906.M17483P24679.localhost,W=2488:2,S
  OUT:nnimap+Fastmail:INBOX"
  (let ((group (file-name-directory (directory-file-name (file-name-directory file)))))
    (setq group (replace-regexp-in-string "/home/horn/Mail/Dovecot/" "" group))
    (setq group (replace-regexp-in-string "^\\([^/]+\\)/" "nnimap+\\1:" group t))
    (setq group (replace-regexp-in-string "/$" "" group))
    (if (string-match ":$" group)
        (concat group "INBOX")
      (replace-regexp-in-string ":\\." ":" group))))

(defun th-notmuch-goto-message-in-gnus ()
  "Open a summary buffer containing the current notmuch
article."
  (interactive)
  (let ((group (th-notmuch-file-to-group (notmuch-show-get-filename)))
        (message-id (replace-regexp-in-string
                     "^id:" "" (notmuch-show-get-message-id))))
    (if (and group message-id)
        (org-gnus-follow-link group message-id)
      (message "Couldn't get relevant infos for switching to Gnus."))))

(define-key notmuch-show-mode-map (kbd "C-c C-c") 'th-notmuch-goto-message-in-gnus)
--8<---------------cut here---------------end--------------->8---

The code assumes that one has his mails in a Maildir.  (I use a local
Dovecot IMAP client, which uses Maildir as default-backend.)

Additionally, it assumes that the Gnus server names (Fastmail and Uni)
equal the top-level maildir directories.

So most users will need to write an own version of
th-notmuch-file-to-group, but th-notmuch-goto-message-in-gnus should be
general.

The quintessence is that it uses org-gnus-follow-link, which comes with
org-mode and is also included in emacs 23.1 and newer.

Bye,
Tassilo

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

* Re: notmuch?
  2009-11-25 20:55 notmuch? Adam Sjøgren
  2009-11-26 19:32 ` notmuch? Tassilo Horn
       [not found] ` <mailman.11580.1259263995.2239.info-gnus-english@gnu.org>
@ 2009-11-28 13:14 ` David Engster
  2 siblings, 0 replies; 5+ messages in thread
From: David Engster @ 2009-11-28 13:14 UTC (permalink / raw)
  To: info-gnus-english

Adam Sjøgren <asjo@koldfront.dk> schreibt:
> Has anyone here played with notmuch¹ in combination with Gnus? I see it
> has an Emacs-interface, but I haven't tried it yet.
>
> (It is still indexing my 140k emails :-))

I've played around with it, and while I really like the concept, I'll
stick with mairix for the time being. Since I've written nnmairix, this
is probably not a big surprise, though. ;-)

Basically, at the moment it seems a bit too slow for me. I have about
40k mails on an Intel Dualcore:

notmuch search "from:deng@randomsample.de"
0.74s user 0.41s system 7% cpu 14.650 total

Granted, subsequent (but identical!) searches are much faster:

notmuch search "from:deng@randomsample.de"
0.41s user 0.11s system 99% cpu 0.521 total

But still, with mairix I get

mairix -t -r "f:deng@randomsample.de"
0.01s user 0.01s system 12% cpu 0.123 total

I know that notmuch supports tagging and Xapian supports much more
sophisticated searches than mairix, but I do not currently need that.

(If I have missed something in the configuration which would make
searching much faster, I'd love to hear about it.)

-David

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

end of thread, other threads:[~2009-11-28 13:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-25 20:55 notmuch? Adam Sjøgren
2009-11-26 19:32 ` notmuch? Tassilo Horn
     [not found] ` <mailman.11580.1259263995.2239.info-gnus-english@gnu.org>
2009-11-26 19:54   ` notmuch? Adam Sjøgren
2009-11-27 10:50     ` notmuch? Tassilo Horn
2009-11-28 13:14 ` notmuch? David Engster

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 NNTP newsgroup(s).