Re: folders which are numerical names

Ralph Corderoy <[email protected]>
Newsgroups gmane.mail.nmh.devel
Message-ID <[email protected]>
Hi Ken,

> This happens because open() failing is considered a "soft" error and
> scan will continue, but read() failing is considered a hard error.
> I'd be willing to consider read() failing with EISDIR a soft error.
> Thoughts from others?

It compounds the flaws.  The original one was not barring an all-digit
filename from being a folder.  Code just didn't check as much back then.

We should state what makes a wise folder name,
e.g. /^[[:alpha:]][-_[:alnum:]*$/ in the user's locale.

We report the problem better in other cases.

    $ td
    /home/tmp/1719392294.254317947
    $ cp `mhpath .` 1
    $ scan +.
	1  24-06-26  Ken Hornstein     Re: folders which are numerical names  >I'm w
    $ mkdir ,1
    $ rmm 1
    rmm: unable to rename 1 to ,1: Is a directory, continuing...
    $ scan
	1  24-06-26  Ken Hornstein     Re: folders which are numerical names  >I'm w
    $ mv 1 ,1
    $ scan
    scan: no messages in /home/tmp/1719392294.254317947
    $ scan @,1
	1  24-06-26  Ken Hornstein     Re: folders which are numerical names  >I'm w
    $

-- 
Cheers, Ralph.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.