[neomutt-devel] Types for everything

Richard Russon rich at flatcap.org
Tue Aug 7 13:49:05 CEST 2018

> > the code would expand the variables at time-of-use.

> Is it possible to have an own syntax to make sure that it
> will be expanded at time-of-use?

That's a good idea.

> the user doesn't have the control to decide when it will be executed.

That's a problem with a lot of (neo)mutt: *What* happens *when*?

> Maybe we should try to finde some use cases to check which
> is the "best" solution.

I doubt anyone's really analysed the problem before.

The current method would be to escape the ` or $ enough times that the
parsing code didn't process them.  But... this relies on the code
expanding the variables before use.

>  * `cmd` - when the variable is set
>  * ``cmd`` - when the variable is used

Hmm... it would also apply to $config variables, so I'd suggest a
specific *assignment* operator, e.g.

# Evaluate NOW
set variable = "$folder/`date +%H`"

# Evaluate at TIME OF USE
set variable T= "$folder/`date +%H`"

> Will it be just for filesystem path or are there changes on
> hooks, etc as well?

Yes, it should apply to the hooks, too.
I'm only changing the config, for now, because that's a bit I understand.

    Rich / FlatCap
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://mailman.neomutt.org/pipermail/neomutt-devel-neomutt.org/attachments/20180807/47f27094/attachment.sig>

More information about the neomutt-devel mailing list