RFC: notmuch powered (personal) (end-to-end) e-mail system

2011-03-20 Thread Brett Viren
On Sun, Mar 20, 2011 at 10:07 AM, Ciprian Dorin Craciun
 wrote:

> ? ?I'm "struggling" for some time to get rid of the current
> "de-facto" email solutions (i.e. GMail, Zimbra), and I've passively
> observed for some time the notmuch project and community.

It sounds like what you want *is* GMail (I don't know Zimbra) but just
that you want it running on your own box instead of on Google's
servers.

> ? ?Suggestions? Considerations?

Based on what you wrote, I think BerkeleyDB will be too limiting.
I suggest for you to look into DBMail[1] for the mail store.


-Brett.

[1] http://www.dbmail.org/


Re: RFC: notmuch powered (personal) (end-to-end) e-mail system

2011-03-20 Thread Brett Viren
On Sun, Mar 20, 2011 at 10:07 AM, Ciprian Dorin Craciun
ciprian.crac...@gmail.com wrote:

    I'm struggling for some time to get rid of the current
 de-facto email solutions (i.e. GMail, Zimbra), and I've passively
 observed for some time the notmuch project and community.

It sounds like what you want *is* GMail (I don't know Zimbra) but just
that you want it running on your own box instead of on Google's
servers.

    Suggestions? Considerations?

Based on what you wrote, I think BerkeleyDB will be too limiting.
I suggest for you to look into DBMail[1] for the mail store.


-Brett.

[1] http://www.dbmail.org/
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Differences between notmuch and M-x notmuch in emacs

2010-11-24 Thread Brett Viren
On Tue, Nov 23, 2010 at 5:38 PM, Brett Viren  wrote:
> I'm using OfflineIMAP and Dovecot plus notmuch from git's current HEAD. ?I do:
>
> ?notmuch count tag:unread
> ?4
>
> But doing "M-x notmuch" in emacs it shows
>
> ?44,895 unread

FYI, with today's git, (or something else I messed with) this problem
has gone away.

-Brett.


Differences between notmuch and M-x notmuch in emacs

2010-11-23 Thread Brett Viren
I'm using OfflineIMAP and Dovecot plus notmuch from git's current HEAD.  I do:

 notmuch count tag:unread
 4

But doing "M-x notmuch" in emacs it shows

  44,895 unread

Does anyone know what the discrepancy may be due to?

If it matters, I'm also trying to get GNUS to play nice with this
setup and having troubles w.r.t. GNUS always wanting to retrieve all
articles, even ones that are "ancient" (marked with "O").  It may be
unrelated.

Thanks,
-Brett.


Differences between notmuch and M-x notmuch in emacs

2010-11-23 Thread Brett Viren
I'm using OfflineIMAP and Dovecot plus notmuch from git's current HEAD.  I do:

 notmuch count tag:unread
 4

But doing M-x notmuch in emacs it shows

  44,895 unread

Does anyone know what the discrepancy may be due to?

If it matters, I'm also trying to get GNUS to play nice with this
setup and having troubles w.r.t. GNUS always wanting to retrieve all
articles, even ones that are ancient (marked with O).  It may be
unrelated.

Thanks,
-Brett.
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


[notmuch] Snippet to jump to message in Gnus from notmuch-show buffer

2010-11-20 Thread Brett Viren
Hi Tassilo,

I adapted your code for my use and found it was failing due to some
stray double-quotes.  I'm using notmuch from git so maybe these quotes
were added in the year since you first posted your idea.

See below for the simple fix:

On Tue, Nov 24, 2009 at 3:02 AM, Tassilo Horn  wrote:
> --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/uni/INBOX/dbox-Mails/u.4075
> ?OUT: nnimap+Uni:INBOX"
> ?(concat "nnimap+"
> ? ? ? ? ?(replace-regexp-in-string
> ? ? ? ? ? "^\\([^/]+\\)/" "\\1:"
> ? ? ? ? ? (replace-regexp-in-string
> ? ? ? ? ? ?"/dbox-Mails/.*" ""
> ? ? ? ? ? ?(replace-regexp-in-string
> ? ? ? ? ? ? "/home/horn/Mail/Dovecot/" "" file)
>
> (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

I needed to define the message-id like:

   (message-id (replace-regexp-in-string
"\"" ""
(replace-regexp-in-string
"^id:" "" (notmuch-show-get-message-id)


> ? ?(message "G: %s, mid: %s" group 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---

Regards and thanks for this handy code!
-Brett.


Re: [notmuch] Snippet to jump to message in Gnus from notmuch-show buffer

2010-11-20 Thread Brett Viren
Hi Tassilo,

I adapted your code for my use and found it was failing due to some
stray double-quotes.  I'm using notmuch from git so maybe these quotes
were added in the year since you first posted your idea.

See below for the simple fix:

On Tue, Nov 24, 2009 at 3:02 AM, Tassilo Horn tass...@member.fsf.org wrote:
 --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/uni/INBOX/dbox-Mails/u.4075
  OUT: nnimap+Uni:INBOX
  (concat nnimap+
          (replace-regexp-in-string
           ^\\([^/]+\\)/ \\1:
           (replace-regexp-in-string
            /dbox-Mails/.* 
            (replace-regexp-in-string
             /home/horn/Mail/Dovecot/  file)

 (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

I needed to define the message-id like:

   (message-id (replace-regexp-in-string
\ 
(replace-regexp-in-string
^id:  (notmuch-show-get-message-id)


    (message G: %s, mid: %s group 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---

Regards and thanks for this handy code!
-Brett.
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


[notmuch] Problems with Maildir and files moving from new/ to cur/

2010-02-09 Thread Brett Viren
Hi,

I use procmail to prefilter mail into various sub groups of a Maildir.
 This Maildir is served by dovecot IMAP and is also visible to
notmuch.  I run "notmuch new" followed by "notmuch tag -inbox -unread
tag:inbox" (I use GNUS to do my reading and don't want these tags in
the way the few times I run notmuch for reading) every 10 minutes from
cron.  I often will check my email before the cron job gets a chance
to run and vice versa.

The problem I have is that this race condition means that sometimes
notmuch will index a message as being under the Maildir/./new/
subdirectory, I then read it and it is moved to Maildir/./cur/
(I think that is what is happening).  Then when I do a search, notmuch
returns a file that is no longer around.

This may not be an issue with notmuch, per se, but does anyone have
any suggestions to make this work more smoothly?

Thanks,
-Brett.


[notmuch] [PATCH 0/4] Make tags applied by 'notmuch new' configurable.

2009-11-24 Thread Brett Viren
On Tue, Nov 24, 2009 at 5:10 PM, Jan Janak  wrote:
> I would like to propose that we make the list of tags applied by 'notmuch new'
> configurable. Right now notmuch applies two tags to all new messages added to
> the database, 'inbox' and 'unread'. The two tags are added by the C code in
> notmuch-new.c and they cannot be changed without editing the source file and
> recompiling notmuch.

Personally I would like this.  I can't find myself leaving GNUS and so
am using notmuch as "just" a search engine.  Now I manually remove
"inbox" and "unread" after each "new" since they just clutter up an
inbox I never read.

Cheers,
-Brett.


[notmuch] [patch] Trivial fix for non-root install

2009-11-23 Thread Brett Viren
Installing as a normal user fails because the bash completion config
files try to install into /etc.  This trivial patch fixes this.

diff --git a/Makefile.config b/Makefile.config
index ddc7436..c04d57a 100644
--- a/Makefile.config
+++ b/Makefile.config
@@ -1,3 +1,2 @@
-prefix = /usr/local
-bash_completion_dir = /etc/bash_completion.d
+bash_completion_dir = $(prefix)/etc/bash_completion.d
 CFLAGS += -DHAVE_VALGRIND


-Brett.


[notmuch] 25 minutes load time with emacs -f notmuch

2009-11-22 Thread Brett Viren
On Sun, Nov 22, 2009 at 3:36 AM, Mike Hommey  wrote:

> A good test, if you have enough memory, would be to put your mailbox in
> a tmpfs, and see how fast that imports.

(Oops, forgot to reply to the list.)

I don't see any function calls related to I/O on the call graph.

But, here is one that looks I/O bound:

 notmuch tag -unread tag:inbox

I have my home directory on an encfs volume and I see it and notmuch
competing for CPU when viewing "top".

-Brett.


[notmuch] Guide for new users?

2009-11-22 Thread Brett Viren
On Sat, Nov 21, 2009 at 11:44 PM, Jjgod Jiang  wrote:

> 1. What's the most efficient way to sync mails from my gmail
> account to a local Maildir? I've tried offlineimap but it
> keeps crashing python (!) on my system (python 2.6, Mac OS X
> 10.6.2).

OfflineIMAP would have been my suggestion.

> 2. How to add notmuch.el into my .emacsrc?
>
> I know notmuch feels like a tool for geeks, but it will probably
> lower the barrier if someone can provide such a guide in a
> straightforward, step-by-step way.

I put notmuch.el in an ~/.emacs.d/ directory.  Then add this to your
.emacs file:

(add-to-list 'load-path (expand-file-name "~/.emacs.d"))
(require 'notmuch)

In the session type "M-x notmuch".

-Brett.


[notmuch] Perftool run

2009-11-21 Thread Brett Viren
Well, the result is attached.  There is nothing glaringly obvious and
I'll need to learn the internals better before suggesting anything.

-Brett.
-- next part --
A non-text attachment was scrubbed...
Name: notmuch-dbg.ps.gz
Type: application/x-gzip
Size: 24494 bytes
Desc: not available
URL: 



[notmuch] 25 minutes load time with emacs -f notmuch

2009-11-21 Thread Brett Viren
On Sat, Nov 21, 2009 at 12:07 PM, Carl Worth  wrote:

> Though, frankly, I think we need to fix "notmuch new" to do much better
> than 40 files/sec.

Just a "me too".

Processed 130871 total files in 38m 7s (57 files/sec.).
Added 102723 new messages to the database (not much, really).

This was ~2GB of mail on a 2.5GHz CPU.  That seems pretty reasonable
to me but I'd like to rerun the "notmuch new" under google perftools
to see if there are any obvious bottlenecks that might be cleaned up.

How can I purge the index?  I can't locate it.

-Brett.


[notmuch] Greetings and suggestions

2009-11-21 Thread Brett Viren
Hi,

I recently heard about notmuch from a reddit.com posting.  Immediately
I knew I needed to try it.

I've been a long time GNUS user and with VM before that.  GNUS is
great but I have never been very successful getting it to play well
with an indexer.

So far, after a little playing with notmuch I think it looks very good!

I think integrating notmuch into GNUS or incorporating GNUS features
into notmuch.el would be good direction to go.  The two features I see
missing most are:

 - posting styles (ie, set From: to non standard value) based on
search pattern.  This is really important when one subscribes to
different mailing lists using different addresses and the ML only
allows mail from registered addresses.

 - apply tags based on search pattern as new mail is processed.  This
would be like GNUS split-rules, but even better as one can place more
than one tag.

Anyways, great project and I look forward to contributing where I can.

-Brett.