<<< Date Index >>>     <<< Thread Index >>>

Re: [PATCH] Header cache and slashes



On Wed, Mar 22, 2006 at 05:04:45PM +0100, Thomas Glanzmann wrote:
> Hello,
> 
> > Has this or something similar any chance to be included? I am all for
> > it, as it doesn't only save disk space but lots of time -- with
> > original behaviour I always end up having at least 2 caches for 1
> > Maildir. I haven't encountered any problems so far.
> 
> if we include something like that, let us do it right and use the bash
> unify path function and port it to mutt. That way it would also work for
> symbolic links and constructs like ../../whatever
> The previous submitted pach should not be included. Because there were
> to much lines of code for the effect and it just fixes one case out of
> one hundred.

You don't want bash's version; presumably that's for the POSIX behavior
of the "cd" command and other shell-resolved paths, which is in fact
pretty strange.  Probably you just want to call realpath() or
canonicalize_file_name(), whichever's available.

Much less code, much more robust solution...

-- 
Daniel Jacobowitz
CodeSourcery