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

Re: [PATCH] Header cache and slashes



On Fri, Mar 17, 2006 at 04:39:51AM -0600, Matthew D. Fuller wrote:
> So, I use maildirs, and the header caching sure is handy.  But there's
> a problem, in that it identifies mailboxes by their path, and when
> tab-completing, there's often a stray '/' hanging at the end of the
> path, so it gets treated as a different mailbox.  This path appears to
> correct it; I'm running an equivalent as I type this, and it seems to
> work right.  I'm only running the BDB code path, but it's a fairly
> straightforward change in the others, so I don't expect troubles from
> it.
> 
> Patch against CVS attached.  Forgive me any code style deviations.

I haven't looked over the patch, but the behavior you are describing
is the correct one, i.e. it is consistent with how the filesystem
behaves.

If you don't believe me, execute the following command on your
(unix-like) system:

  cd ///////

See where you end up.  Then try this one:

  cat ///etc//////passwd

See what you get.


-- 
Derek D. Martin    http://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail.  Sorry for the inconvenience.  Thank the spammers.

Attachment: pgpu1zByUNgkM.pgp
Description: PGP signature