Re: [PATCH] Add support for ~/foo style relative paths

Subject: Re: [PATCH] Add support for ~/foo style relative paths

Date: Thu, 31 Oct 2024 21:19:55 +0100

To: notmuch@notmuchmail.org

Cc:

From: Ralph Seichter


* David Bremner:

> what should we do if val[1] != '/'?

My patch assumes that the answer to this question is "nothing". The
string "~xyz" would expand to "/home/alicexyz" instead of, say,
"/home/xyz" if notmuch is run by user alice.

It is not a very useful expansion, but it does what it says on the tin,
and saves the extra effort of parsing /etc/passwd: Tilde expands to the
process owner's home directory, no matter what character follows next.

Mind you, I don't object to being able to reference other users' home
directories. I just don't quite see how useful that ability would be,
given the private nature of email. Am I missing an obvious usecase here?

-Ralph
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: