Re: [PATCH] Re: Mailfs date problem

2006-05-28 Thread Pavel Tsekov
On Sat, 27 May 2006, Leonard den Ottolander wrote: On Sat, 2006-05-27 at 19:29 +0300, Pavel Tsekov wrote: Yes. The new script has improved the processing time so that it is now comparable to the old script. Ok. Shall I commit then? I propose to update the match for the email header to

Re: [PATCH] Re: Mailfs date problem

2006-05-28 Thread Leonard den Ottolander
Hi, On Sun, 2006-05-28 at 09:35 +0300, Pavel Tsekov wrote: On Sat, 27 May 2006, Leonard den Ottolander wrote: Ok. Shall I commit then? I propose to update the match for the email header to /^From\s+\w+(\.\w+)*@/ Yes. Please, do so. Ok. I've committed the new mailfs.in and added an

Re: [PATCH] Re: Mailfs date problem

2006-05-27 Thread Pavel Tsekov
On Fri, 26 May 2006, Leonard den Ottolander wrote: On Fri, 2006-05-26 at 15:46 +0300, Pavel Tsekov wrote: The new mailfs script does indeed produce dates consisting of 3 fieds however its major drawback seems to be that it is very slow. The old script processes a mailbox of size ~7.5 Mb in

Re: [PATCH] Re: Mailfs date problem

2006-05-27 Thread Leonard den Ottolander
Hello Pavel, On Sat, 2006-05-27 at 19:29 +0300, Pavel Tsekov wrote: Yes. The new script has improved the processing time so that it is now comparable to the old script. Ok. Shall I commit then? I propose to update the match for the email header to /^From\s+\w+(\.\w+)*@/ How about adding an

Re: [PATCH] Re: Mailfs date problem

2006-05-26 Thread Pavel Tsekov
On Fri, 26 May 2006, Leonard den Ottolander wrote: Attached file is a replacement for mailfs. Please test. It parses the dates back to 3 elements. Used ranges are estimates that are slightly larger than the ranges used by file_date, but this avoids overly complex equations and file_date parses

Re: [PATCH] Re: Mailfs date problem

2006-05-26 Thread Pavel Tsekov
On Fri, 26 May 2006, Leonard den Ottolander wrote: Attached file is a replacement for mailfs. Please test. It parses the dates back to 3 elements. Used ranges are estimates that are slightly larger than the ranges used by file_date, but this avoids overly complex equations and file_date parses

Re: [PATCH] Re: Mailfs date problem

2006-05-26 Thread Leonard den Ottolander
Hi Pavel, On Fri, 2006-05-26 at 16:22 +0300, Pavel Tsekov wrote: I guess you meant %H and not %h. %h yields according to the man page the locale's abbreviated month name (e.g., Jan). Yes. Leonard. -- mount -t life -o ro /dev/dna /genetic/research

Re: [PATCH] Re: Mailfs date problem

2006-05-26 Thread Leonard den Ottolander
Hello Pavel, On Fri, 2006-05-26 at 15:46 +0300, Pavel Tsekov wrote: The new mailfs script does indeed produce dates consisting of 3 fieds however its major drawback seems to be that it is very slow. The old script processes a mailbox of size ~7.5 Mb in just a few seconds while the new one

Re: [PATCH] Re: Mailfs date problem

2006-05-26 Thread Leonard den Ottolander
Hello Pavel, On Fri, 2006-05-26 at 15:46 +0300, Pavel Tsekov wrote: The new mailfs script does indeed produce dates consisting of 3 fieds however its major drawback seems to be that it is very slow. The old script processes a mailbox of size ~7.5 Mb in just a few seconds while the new one

Re: [PATCH] Re: Mailfs date problem

2006-05-26 Thread Leonard den Ottolander
Hello Pavel, On Fri, 2006-05-26 at 15:46 +0300, Pavel Tsekov wrote: The new mailfs script does indeed produce dates consisting of 3 fieds however its major drawback seems to be that it is very slow. The old script processes a mailbox of size ~7.5 Mb in just a few seconds while the new one

[PATCH] Re: [PATCH] Re: Mailfs date problem

2006-05-26 Thread Leonard den Ottolander
Hello Pavel, On Fri, 2006-05-26 at 15:46 +0300, Pavel Tsekov wrote: There is another problem with mail messages which contain in their bodies the word From at the start of a line. The impact of this problem can be reduced by making the match for the header start line more strict. Still

[PATCH] Re: Mailfs date problem

2006-05-25 Thread Leonard den Ottolander
Hi, On Fri, 2006-05-19 at 00:06 +0200, Leonard den Ottolander wrote: Pavel Tsekov drew my attention to the fact that the fact that we now only parse dates with 3 elements (either year or time, not both) broke mailfs. I intend to fix this, but haven't had time to look into this thoroughly.

Re: [PATCH] Re: Mailfs date problem

2006-05-25 Thread Leonard den Ottolander
Hi, On Fri, 2006-05-26 at 00:02 +0200, Leonard den Ottolander wrote: Attached file is a replacement for mailfs. Please test. Oops. I forgot to remove some brackets for the fallback. Please assume the brackets except the two outer ones are not there. Leonard. -- mount -t life -o ro /dev/dna

Mailfs date problem

2006-05-18 Thread Leonard den Ottolander
Hi, Pavel Tsekov drew my attention to the fact that the fact that we now only parse dates with 3 elements (either year or time, not both) broke mailfs. I intend to fix this, but haven't had time to look into this thoroughly. The representation for files younger and older than 6 months use either