A question about mairix, I'm sure there are users here
Chris Green
cl at isbd.net
Thu Nov 26 15:06:32 UTC 2020
On Thu, Nov 26, 2020 at 02:26:40PM +0000, Chris Green wrote:
> On Thu, Nov 26, 2020 at 08:13:43AM -0500, Patrick Shanahan wrote:
> > * Chris Green <cl at isbd.net> [11-26-20 07:13]:
> > > I use mairix to search my mail.
> > >
> > > I'm sure I've asked this question before but it was a *long* time ago
> > > and I can't remember or find the answer.
> > >
> > > When mairix has found a message with a given string/pattern in it how
> > > can I tell *where* it found it? I thought it put something in the
> > > headers somewhere but I can't see anything there now. I moved from
> > > mbox to maildir (fairly) recently, is this something I have lost in
> > > the move perhaps?
> >
> > after invoking mairix, the result(s) will display in the second line of
> > the header: X-source-folder: <location>
> > the line is added by mairix.
> >
> > the first header line is also added:
> > From mairix at mairix Mon Jan 1 12:34:56 1970
> > and must be altered if one is recovering a missing post and adding it to
> > an mbox collection such as ~/mail/mutt
> >
> > I use mbox and mairir (long time).
> >
> Thanks Patrick, I think it was maybe you that answered me the previous
> time I asked the question! :-)
>
> However, it would appear that with maildir folders it doesn't work.
> Reading the mairix man page it says that the messages found by mairix
> are symbolic links when using maildir so I don't suppose mairix can
> add that X-source-folder: header because it doesn't create a new copy
> of the message.
>
> Well I suppose I'll have to live with it - or go back to mbox.
>
I've found a workaround, if you specify mairix's *output* format as
mbox using the mformat setting in ~/.mairixrc then the X-source-folder
does get added. The rest of one's mail remains in maildir format of
course.
--
Chris Green
More information about the Mutt-users
mailing list