Re: searching across folders using mutt

2022-05-30 Thread steve

Le 30-05-2022, à 14:49:53 -0500, Ranjan Maitra a écrit :


Can mairix and notmuch also search within attachments?


I don't know but after a quick look, it seems that those tools only index
text files. 


Re: searching across folders using mutt

2022-05-30 Thread Ranjan Maitra
On Mon May30'22 07:25:28AM, steve wrote:
> From: steve 
> Date: Mon, 30 May 2022 07:25:28 +0200
> To: mutt-users@mutt.org
> Subject: Re: searching across folders using mutt
>
> Hi Greg,
>
> Le dimanche 29 mai 2022 à 23:31, Greg Marks a écrit :
>
> >
> > Is there a solution for searching across folders for those of us whose
> > e-mail is stored in mbox rather than maildir format?
>
> I guess mairix can do that.
>
> See https://gitlab.com/muttmua/mutt/-/wikis/UseCases/SearchingMail

Hi,

Can mairix and notmuch also search within attachments?

Many thanks and best wishes,
Ranjan


Re: searching across folders using mutt

2022-05-30 Thread Ofer Inbar
On Sun, May 29, 2022 at 11:31:51PM -0500,
Greg Marks  wrote:
> According to the man page for notmuch:
> 
>Mail storage that uses mbox format, (where one mbox file
>contains many messages), will not work with notmuch.  If
>that's how your mail is currently stored, it is recommended
>you first convert it to maildir format with a utility such 
>as mb2md before running notmuch setup .
> 
> Is there a solution for searching across folders for those of us whose
> e-mail is stored in mbox rather than maildir format?

You could just use the filesystem and simple shell commands.
It's not indexed, but grep is pretty fast.

For example, which "folders" (aka files, in mbox format) contain
messages with the subject line "some subject"?

$ fgrep -l 'Subject: some subject' *

Use grep -E or egrep for full regex search.
Use "find . -type f | xargs grep ..." to search files in a directory tree.

You may get some false positives when searching for a header if the
body of an email contains a header line that matches, but overall this
works well - it's what I do on the host where I have mbox format email.
  -- Cos


Re: searching across folders using mutt

2022-05-29 Thread Angel M Alganza

Hello,

On Sun, May 29, 2022 at 11:31:51PM -0500, Greg Marks wrote:


Is there a solution for searching across folders for those of us whose
e-mail is stored in mbox rather than maildir format?


Mairix does: https://github.com/rc0/mairix

Cheers,
Ángel


Re: searching across folders using mutt

2022-05-29 Thread steve

Hi Greg,

Le dimanche 29 mai 2022 à 23:31, Greg Marks a écrit :



Is there a solution for searching across folders for those of us whose
e-mail is stored in mbox rather than maildir format?


I guess mairix can do that.

See https://gitlab.com/muttmua/mutt/-/wikis/UseCases/SearchingMail


Re: searching across folders using mutt

2022-05-29 Thread Ranjan Maitra
On Sun May29'22 11:31:51PM, Greg Marks wrote:
> From: Greg Marks 
> Date: Sun, 29 May 2022 23:31:51 -0500
> To: mutt-users@mutt.org
> Subject: Re: searching across folders using mutt
>
> > Now, I know how to search this (quite readily) in a folder. But when I do 
> > not know the folder it is stored in, so far, it has been simply about 
> > guessing the right folders.
> >
> > > notmuch will do exactly that.
> > >
> > > see https://notmuchmail.org/mutttips/
>
> According to the man page for notmuch:
>
>Mail storage that uses mbox format, (where one mbox file
>contains many messages), will not work with notmuch.  If
>that's how your mail is currently stored, it is recommended
>you first convert it to maildir format with a utility such
>as mb2md before running notmuch setup .

Thanks, I use maildir for a while now, so I am good with notmuch. Still 
wondering about notmuch vs. recoll, though.

> Is there a solution for searching across folders for those of us whose
> e-mail is stored in mbox rather than maildir format?

I seem to have read somewhere today that recoll works with mbox, but I am not 
sure if I read this correctly.

Many thanks again!
Ranjan





Re: searching across folders using mutt

2022-05-29 Thread Greg Marks
> Now, I know how to search this (quite readily) in a folder. But when I do not 
> know the folder it is stored in, so far, it has been simply about guessing 
> the right folders. 
> 
> > notmuch will do exactly that.
> > 
> > see https://notmuchmail.org/mutttips/

According to the man page for notmuch:

   Mail storage that uses mbox format, (where one mbox file
   contains many messages), will not work with notmuch.  If
   that's how your mail is currently stored, it is recommended
   you first convert it to maildir format with a utility such 
   as mb2md before running notmuch setup .

Is there a solution for searching across folders for those of us whose
e-mail is stored in mbox rather than maildir format?

Best regards,
Greg Marks


signature.asc
Description: PGP signature


Re: searching across folders using mutt

2022-05-29 Thread Ranjan Maitra
On Sun May29'22 08:14:20PM, steve wrote:
> From: steve 
> Date: Sun, 29 May 2022 20:14:20 +0200
> To: mutt-users@mutt.org
> Subject: Re: searching across folders using mutt
>
> Hi Ranjan,
>
> notmuch will do exactly that.
>
> see https://notmuchmail.org/mutttips/
>
> best,
>
> steve

Steve,

Indeed, thanks very much! I have now found notmuch and also found recoll (that 
I had previously never heard of).

Here is a page with some help on how to  use recoll:

https://www.lesbonscomptes.com/recoll/faqsandhowtos/MuttAndRecoll.html

The python script is missing, but I was able to find it online by searching for 
it on DuckDuckGo.

For notmuch, there is some advice here: http://log.or.cz/?p=228 I found this 
from this other website on mutt tricks from a Rice University history 
professor: https://www.owlnet.rice.edu/~wcm1/mutt-tips.html

Anyway, I was wondering, what are the pros and cons of recoll vis-a-vis 
notmuch? Both appear to do similar things.

Many thanks again, and best wishes,
Ranjan







> Le 29-05-2022, à 10:40:27 -0500, Ranjan Maitra a écrit :
>
> > Dear friends,
> >
> > I have now been using mutt for about 20 months or so, having graduated from 
> > sylpheed, and life is generally well, but for one issue, and that is 
> > searching across folders.
> >
> > So, suppose I know that I have an email in some folder with "stuff" in the 
> > subject line. Now, I know how to search this (quite readily) in a folder. 
> > But when I do not know the folder it is stored in, so far, it has been 
> > simply about guessing the right folders. Sometimes I get lucky, and 
> > sometimes I put it away, and occasionally, I do get lucky on a 
> > timed-release format, but I was wondering if I can get rid of this reliance 
> > on luck, as both my years and size of folders go up.
> >
> > Is there an easy way to do this in mutt? I would like to stick to simple 
> > tools (and stay in mutt) if possible.
> >
> > My email is pulled in by fetchmail from a POP3 server (gmx) and processed 
> > by procmail into folders. I do not use IMAP. I thought I would put this in 
> > in case it was relevant.
> >
> > Many thanks again for your suggestions, and best wishes,
> > Ranjan
> >
> >


Re: searching across folders using mutt

2022-05-29 Thread steve

Hi Ranjan,

notmuch will do exactly that.

see https://notmuchmail.org/mutttips/

best,

steve

Le 29-05-2022, à 10:40:27 -0500, Ranjan Maitra a écrit :


Dear friends,

I have now been using mutt for about 20 months or so, having graduated from 
sylpheed, and life is generally well, but for one issue, and that is searching 
across folders.

So, suppose I know that I have an email in some folder with "stuff" in the 
subject line. Now, I know how to search this (quite readily) in a folder. But when I do 
not know the folder it is stored in, so far, it has been simply about guessing the right 
folders. Sometimes I get lucky, and sometimes I put it away, and occasionally, I do get 
lucky on a timed-release format, but I was wondering if I can get rid of this reliance on 
luck, as both my years and size of folders go up.

Is there an easy way to do this in mutt? I would like to stick to simple tools 
(and stay in mutt) if possible.

My email is pulled in by fetchmail from a POP3 server (gmx) and processed by 
procmail into folders. I do not use IMAP. I thought I would put this in in case 
it was relevant.

Many thanks again for your suggestions, and best wishes,
Ranjan