On Thu, Nov 26, 2020 at 08:13:43AM -0500, Patrick Shanahan wrote: > * Chris Green <c...@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@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. -- Chris Green