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

Re: Can I use variable like $USER in .muttrc directives?



On 2004-01-19, prosolutions@xxxxxxx wrote:
> Is it possible to use a variable to represent the user in
> configuration pathname configuration directives in .muttrc, for
> example, something like:
> 
> set spoolfile='/var/mail/$USER'

You can, using backquotes to let the shell expand the variable(s),
like this:

    set spoolfile=`echo /var/mail/$USER`

or this:

    set spoolfile=/var/mail/`echo $USER`

Gary

-- 
Gary Johnson                               | Agilent Technologies
garyjohn@xxxxxxxxxxxxxxx                   | Wireless Division
http://www.spocom.com/users/gjohnson/mutt/ | Spokane, Washington, USA