Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: MAIL, MAILPATH and maildir support



> I was about to gripe about how horribly inefficient this bit of code is,
> when I realized I'd forgotten that the existing support for directories
> is if anything worse.  Recursively stat() an entire directory tree??
> Does anyone really make use of this feature?

Yes, people use this.

> Regardless of efficiency, I think it's a bad idea to start including
> support for specific mail delivery formats in the shell.  It's one thing
> to get the standard system information about a file and report that the
> file has changed; it's quite another to have knowledge of the internals
> of the file format.

Well, it's MAILPATH, not GENERICFILEPATH.  There are a limited number of
mailbox formats that pose significance to the shell.

> Perhaps checkmailpath is a candidate for some kind of loadable module ...

Fair enough.



Messages sorted by: Reverse Date, Date, Thread, Author