On Fri, Feb 27, 2004 at 01:18:57AM -0600, Michael Parker wrote:
> On Fri, Feb 27, 2004 at 06:49:10AM -0000, [EMAIL PROTECTED] wrote:
> > Author: felicity
> > Date: Thu Feb 26 22:49:09 2004
> > New Revision: 6907
> > 
> > Modified:
> >    incubator/spamassassin/trunk/lib/Mail/SpamAssassin/ArchiveIterator.pm
> > Log:
> > bug 2836: scan_directories() would require that there be no whitespace in 
> > filenames, but spaces are valid in file names, so fix the RE to ignore what 
> > we don't want (starts with . or ,) and allow anything else.
> > 
> > Modified: 
> > incubator/spamassassin/trunk/lib/Mail/SpamAssassin/ArchiveIterator.pm
> > ==============================================================================
> > --- incubator/spamassassin/trunk/lib/Mail/SpamAssassin/ArchiveIterator.pm   
> > (original)
> > +++ incubator/spamassassin/trunk/lib/Mail/SpamAssassin/ArchiveIterator.pm   
> > Thu Feb 26 22:49:09 2004
> > @@ -506,7 +506,7 @@
> >    }
> >    else {
> >      # ignore ,234 (deleted or refiled messages) and MH metadata dotfiles
> > -    @files = grep { /^[^,.]\S*$/ } readdir(DIR);
> > +    @files = grep { !/^[^,.]/ } readdir(DIR);
> >    }
> >    closedir(DIR);
> >  
> > 
> 
> 
> I haven't figured out why yet, but this broke the sa-learn tests in
> bayesdbm.t
> 

Ok, should it be this instead? @files = grep { /^[^,.]/ } readdir(DIR);


Michael

Reply via email to