Re: maildir-utils vs notmuch

2018-01-22 Thread Till Smejkal
On Sun, 21 Jan 2018, Yubin Ruan wrote:
> On Fri, Jan 19, 2018 at 11:03:18AM +0100, Till Smejkal wrote:
> > Hi,
> > 
> > I am using notmuch to index my mails for years now and I am very happy with 
> > its
> > performance and functionality.
> > 
> > On Fri, 19 Jan 2018, Bastian wrote:
> > > I really love and depend on mu's feature to track mail adresses of all 
> > > indexed mails. I use 
> > > 
> > >   set query_command="mu cfind --format mutt-ab %s"
> > > 
> > > as an address book replacement for mutt.
> > 
> > Recent versions of notmuch have 'notmuch address'. This can be used to 
> > query for
> > addresses in all indexed mails. Another possibility is to directly use the 
> > notmuch
> > library to run queries on the indexed mails and write your own script. 
> > That's what I
> > do, since I don't really like the output of 'notmuch address'. If you want, 
> > I can
> > share the code with you.
> 
> Can you make your code public? I would love to give it a try.

Sure, you can find the code here [1]. Have fun :)

Cheers
Till

[1] https://github.com/l3nkz/mutt-tools/blob/master/mutt_addresses


Re: maildir-utils vs notmuch

2018-01-21 Thread Gregor Zattler
Hi Matthias,
* Matthias Apitz  [2018-01-19; 11:59]:
> I have around 4.2 GByte of mbox mail files:
>
> $ du -sh Mail
> 4,2G  Mail
> $ ls Mail | wc -l
> 1095
>
> can 'notmuch' index this and how big is the database after this?

notmuch does not work with mbox folders but with single message
per file storage as maildir and mh.


Ciao; Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-



Re: maildir-utils vs notmuch

2018-01-20 Thread Yubin Ruan
On Fri, Jan 19, 2018 at 11:03:18AM +0100, Till Smejkal wrote:
> Hi,
> 
> I am using notmuch to index my mails for years now and I am very happy with 
> its
> performance and functionality.
> 
> On Fri, 19 Jan 2018, Bastian wrote:
> > I really love and depend on mu's feature to track mail adresses of all 
> > indexed mails. I use 
> > 
> >   set query_command="mu cfind --format mutt-ab %s"
> > 
> > as an address book replacement for mutt.
> 
> Recent versions of notmuch have 'notmuch address'. This can be used to query 
> for
> addresses in all indexed mails. Another possibility is to directly use the 
> notmuch
> library to run queries on the indexed mails and write your own script. That's 
> what I
> do, since I don't really like the output of 'notmuch address'. If you want, I 
> can
> share the code with you.

Can you make your code public? I would love to give it a try.

Yubin


Re: maildir-utils vs notmuch

2018-01-19 Thread Mihai Lazarescu

On Friday, January 19, 2018 at 17:43:32 +, Ben Oliver wrote:


On 18-01-19 18:17:34, Mihai Lazarescu wrote:
>On Friday, January 19, 2018 at 11:59:15 +0100, Matthias Apitz wrote:
>
>>I have around 4.2 GByte of mbox mail files:
>>
>>$ du -sh Mail
>>4,2GMail
>>$ ls Mail | wc -l
>>  1095
>>
>>can 'notmuch' index this and how big is the database after this?
>>
>>matthias
>
>I have 27 GiB emails. notmuch db is around 3 GiB.  Hint: run 
>notmuch compact once in a while. :-)

>
>lbdb http://www.spinnaker.de/lbdb/ can be used to collect 
>sender addresses (even in real time, from incoming emails) in 
>a db, which can be queried for autocomplete in mutt.

>
>Best,
>Mihai

How big is the lbdb?


320 KiB for 5500 clear text entries.


Re: maildir-utils vs notmuch

2018-01-19 Thread Ben Oliver

On 18-01-19 18:17:34, Mihai Lazarescu wrote:

On Friday, January 19, 2018 at 11:59:15 +0100, Matthias Apitz wrote:


I have around 4.2 GByte of mbox mail files:

$ du -sh Mail
4,2GMail
$ ls Mail | wc -l
  1095

can 'notmuch' index this and how big is the database after this?

matthias


I have 27 GiB emails. notmuch db is around 3 GiB.  Hint: run notmuch 
compact once in a while. :-)


lbdb http://www.spinnaker.de/lbdb/ can be used to collect sender 
addresses (even in real time, from incoming emails) in a db, which can 
be queried for autocomplete in mutt.


Best,
Mihai


How big is the lbdb?


Re: maildir-utils vs notmuch

2018-01-19 Thread Mihai Lazarescu

On Friday, January 19, 2018 at 11:59:15 +0100, Matthias Apitz wrote:


I have around 4.2 GByte of mbox mail files:

$ du -sh Mail
4,2GMail
$ ls Mail | wc -l
   1095

can 'notmuch' index this and how big is the database after this?

matthias


I have 27 GiB emails. notmuch db is around 3 GiB.  Hint: run 
notmuch compact once in a while. :-)


lbdb http://www.spinnaker.de/lbdb/ can be used to collect sender 
addresses (even in real time, from incoming emails) in a db, 
which can be queried for autocomplete in mutt.


Best,
Mihai


Re: maildir-utils vs notmuch

2018-01-19 Thread Till Smejkal
On Fri, 19 Jan 2018, Matthias Apitz wrote:
> El día viernes, enero 19, 2018 a las 11:03:18a. m. +0100, Till Smejkal 
> escribió:
> 
> > Hi,
> > 
> > I am using notmuch to index my mails for years now and I am very happy with 
> > its
> > performance and functionality.
> > 
> > ...
> 
> Hi,
> 
> I have around 4.2 GByte of mbox mail files:
> 
> $ du -sh Mail
> 4,2G  Mail
> $ ls Mail | wc -l
> 1095
> 
> can 'notmuch' index this and how big is the database after this?

Same here, I have about 5.6 GB of mails (~400k). notmuch can handle them with no
problems at all. The first indexing may take some time (~30mins) but subsequent
indexing takes just a couple of milliseconds on my machine (Core i7 with an SSD 
and
12GB RAM). I haven't found any other mail indexer that is as fast as notmuch.
However, notmuch *only* works with *maildirs*. If you use the mbox format, 
notmuch
will not work. See here [1] for more details on what to do.

Cheers
Till

[1] https://notmuchmail.org/howto/


Re: maildir-utils vs notmuch

2018-01-19 Thread Till Smejkal
On Fri, 19 Jan 2018, Bastian wrote:
> On 19Jan18 11:03 +0100, Till Smejkal wrote:
> > I am using notmuch to index my mails for years now and I am very happy with 
> > its
> > performance and functionality.
> > 
> > On Fri, 19 Jan 2018, Bastian wrote:
> > > I really love and depend on mu's feature to track mail adresses of all 
> > > indexed mails. I use 
> > > 
> > >   set query_command="mu cfind --format mutt-ab %s"
> > > 
> > > as an address book replacement for mutt.
> > 
> > Recent versions of notmuch have 'notmuch address'. This can be used to 
> > query for
> > addresses in all indexed mails. Another possibility is to directly use the 
> > notmuch
> > library to run queries on the indexed mails and write your own script. 
> > That's what I
> > do, since I don't really like the output of 'notmuch address'. If you want, 
> > I can
> > share the code with you.
> 
> I'll try to test both :) So I'll get the latest notmuch version and see 
> if the address subcommand is enough.
> But if you are so kind and could send me your script, I'll also like to 
> see how you interact with notmuch directly.

[Also replying back to the mutt-user list]

Sure, try both and choose the one that fits your use case. You can find my 
script
here [1]. It requires the python bindings for libnotmuch. Since I use Arch 
Linux,
these bindings are shipped with the 'notmuch' package. But you should check your
distribution.

Cheers
Till

[1] https://github.com/l3nkz/mutt-tools/blob/master/mutt_addresses


Re: maildir-utils vs notmuch

2018-01-19 Thread Ben Oliver

On 18-01-19 11:59:15, Matthias Apitz wrote:

El día viernes, enero 19, 2018 a las 11:03:18a. m. +0100, Till Smejkal escribió:


Hi,

I am using notmuch to index my mails for years now and I am very happy with its
performance and functionality.

...


Hi,

I have around 4.2 GByte of mbox mail files:

$ du -sh Mail
4,2GMail
$ ls Mail | wc -l
   1095

can 'notmuch' index this and how big is the database after this?

matthias

--
Matthias Apitz, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/   
+49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub


I have 4.1 G of mail, over about 120k messages, and my notmuch index is 
1.7G.


It does not struggle with it at all.


Re: maildir-utils vs notmuch

2018-01-19 Thread Matthias Apitz
El día viernes, enero 19, 2018 a las 11:03:18a. m. +0100, Till Smejkal escribió:

> Hi,
> 
> I am using notmuch to index my mails for years now and I am very happy with 
> its
> performance and functionality.
> 
> ...

Hi,

I have around 4.2 GByte of mbox mail files:

$ du -sh Mail
4,2GMail
$ ls Mail | wc -l
1095

can 'notmuch' index this and how big is the database after this?

matthias

-- 
Matthias Apitz, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/   
+49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub


signature.asc
Description: PGP signature


Re: maildir-utils vs notmuch

2018-01-19 Thread Ben Oliver

On 18-01-19 10:12:25, Bastian wrote:

As this topic was touched recently, I got interested in notmuch again
and took some time to look at it.

I used mairix for more than a decade, then switch over to mu some years
ago for some forgotten reason and now notmuch is an interesting thing.

Right now I face a clash of features:

I really love and depend on mu's feature to track mail adresses of all
indexed mails. I use

 set query_command="mu cfind --format mutt-ab %s"

as an address book replacement for mutt.

On the other hand, what I really like notmuch for is it's feature to
recontruct the mail thread.

 notmuch-mutt -r thread

So far, I could not find a solution where notmuch is able to act as a
address book for mutt or the other way round, where mu is able to
reconstruct a thread. Any ideas from you to achieve the one or the
other?


Many thanks,
--
Bastian


I haven't had a chance to try it yet but notmuch-abook has been 
suggested to me in the past as a solution to reproducing gmail-style 
"auto" addressbook derived from a notmuch index.


https://github.com/guyzmo/notmuch-abook


Re: maildir-utils vs notmuch

2018-01-19 Thread Till Smejkal
Hi,

I am using notmuch to index my mails for years now and I am very happy with its
performance and functionality.

On Fri, 19 Jan 2018, Bastian wrote:
> I really love and depend on mu's feature to track mail adresses of all 
> indexed mails. I use 
> 
>   set query_command="mu cfind --format mutt-ab %s"
> 
> as an address book replacement for mutt.

Recent versions of notmuch have 'notmuch address'. This can be used to query for
addresses in all indexed mails. Another possibility is to directly use the 
notmuch
library to run queries on the indexed mails and write your own script. That's 
what I
do, since I don't really like the output of 'notmuch address'. If you want, I 
can
share the code with you.

HTH
Till


maildir-utils vs notmuch

2018-01-19 Thread Bastian
As this topic was touched recently, I got interested in notmuch again 
and took some time to look at it.

I used mairix for more than a decade, then switch over to mu some years 
ago for some forgotten reason and now notmuch is an interesting thing.

Right now I face a clash of features:

I really love and depend on mu's feature to track mail adresses of all 
indexed mails. I use 

  set query_command="mu cfind --format mutt-ab %s"

as an address book replacement for mutt.

On the other hand, what I really like notmuch for is it's feature to 
recontruct the mail thread. 

  notmuch-mutt -r thread

So far, I could not find a solution where notmuch is able to act as a 
address book for mutt or the other way round, where mu is able to 
reconstruct a thread. Any ideas from you to achieve the one or the 
other?


Many thanks,
-- 
Bastian