Re: Strange error with mairix and a maildir stored by mutt

2021-03-26 Thread Chris Green
On Thu, Mar 25, 2021 at 05:08:58PM -0400, Kurt Hackenberg wrote:
> On 2021/03/25 16:37, Chris Green wrote:
> 
> > Brilliant! :-)  That was it.  I've not seen an error like that before
> > but I guess it must be because of when I did something to that message
> > relative to when the mairix index was built.
> 
> You replied to that message. That's what the R in the filename means. See
> Wikipedia on maildir: 
> 
> Apparently you use mairix on a live set of messages. If so, this will be an
> ongoing problem. You might want to rebuild mairix's index automatically,
> perhaps nightly.

OK, thanks, I hadn't hit this little wrinkle before even though I'd
been using mairix with maildir for several months.

I re-index with mairix randomly when I need to at the moment, I can
easily set up a cron job to run overnight, still won't handle the case
where I'm looking for something I saved the same day (and forgot where
I put it!) but it'll handle most.

Plus, now I know what causes the problem I can simply re-index if I
see it.

-- 
Chris Green


Re: Strange error with mairix and a maildir stored by mutt

2021-03-25 Thread Kurt Hackenberg

On 2021/03/25 16:37, Chris Green wrote:


Brilliant! :-)  That was it.  I've not seen an error like that before
but I guess it must be because of when I did something to that message
relative to when the mairix index was built.


You replied to that message. That's what the R in the filename means. 
See Wikipedia on maildir: 


Apparently you use mairix on a live set of messages. If so, this will be 
an ongoing problem. You might want to rebuild mairix's index 
automatically, perhaps nightly.


Re: Strange error with mairix and a maildir stored by mutt

2021-03-25 Thread Chris Green
On Thu, Mar 25, 2021 at 03:56:41PM -0400, Kurt Hackenberg wrote:
> On 2021/03/25 14:19, Chris Green wrote:
> 
> > However I'm now getting a rather odd error on one particular message
> > when I search using mairix:-
> > 
> >  chris@esprimo$ mairix 183493
> > stat 
> > '/home/chris/mail/folder/shopping/food/wine/cur/1612869077.1202519_3.esprimo:2,S':
> >  
> No such file or directory 
> >  Matched 2 messages
> >  chris@esprimo$
> > 
> > ... and there's only one mail message stored in mairix's "found"
> > destination.
> > 
> > Looking at /home/chris/mail/folder/shopping/food/wine/cur I see
> > there's a file 1612869077.1202519_3.esprimo:2,RS which should be the
> > one that mairix finds.
> 
> 
> Looks like you replied to that message, which would change the filename from
> :2,S to :2,RS, and you didn't rebuild mairix's index.
> 
> I don't know for sure that mairix's index stores those exact filenames, but
> it might. Try rebuilding the index, and see if that clears it up.

Brilliant! :-)  That was it.  I've not seen an error like that before
but I guess it must be because of when I did something to that message
relative to when the mairix index was built.

Thank you!

-- 
Chris Green


Re: Strange error with mairix and a maildir stored by mutt

2021-03-25 Thread Kurt Hackenberg

On 2021/03/25 14:19, Chris Green wrote:


However I'm now getting a rather odd error on one particular message
when I search using mairix:-

 chris@esprimo$ mairix 183493
 stat 
'/home/chris/mail/folder/shopping/food/wine/cur/1612869077.1202519_3.esprimo:2,S':
 No such file or directory
 Matched 2 messages
 chris@esprimo$

... and there's only one mail message stored in mairix's "found"
destination.

Looking at /home/chris/mail/folder/shopping/food/wine/cur I see
there's a file 1612869077.1202519_3.esprimo:2,RS which should be the
one that mairix finds.



Looks like you replied to that message, which would change the filename 
from :2,S to :2,RS, and you didn't rebuild mairix's index.


I don't know for sure that mairix's index stores those exact filenames, 
but it might. Try rebuilding the index, and see if that clears it up.