On Tue, Nov 17, 2026 at 09:43:49AM -0500, Todd Zullinger wrote:
Kevin J. McCarthy wrote:# Path to a file or directory with trusted certificates -set smime_ca_location="~/.smime/ca-bundle.crt" +set smime_ca_location=\ + "`for f in \ + $HOME/.smime/ca-certificates.crt $HOME/.smime/ca-bundle.crt \ + ; do if [ -e $f ] ; then echo $f ; exit ; fi ; done`"Would `[ -r $f ]` be better here? It _shouldn't_ come up too often, unless someone copies a CA bundle with the wrong permissions. Does Mutt report a failure to read $smime_ca_location to the user? Ideally, the `openssl smime` call reports the error and that will make it back to Mutt and the user. Even if no error does make it to the user, it still may be better to leave the `-e` test and not skip the path. That would let the user work out why the value is set but not used as opposed to why it is unset when they think it should be set.
I agree with the above paragraph. It's better to just use a simple -e, and let either openssl give an error message, or let the user work it out. I think a permission error will be a very rare occurence in this case.
It all looks good to me, for what that's worth.
Thanks. -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
Description: PGP signature
