Re: mutt variable expansion in shell command ?

2019-08-29 Thread Cameron Simpson
On 29Aug2019 19:11, Mathieu Carpentier wrote: I did few tests and I think I'm going to use environment variable. Before calling mutt I will source "~/.mutt/my-env.sh" where I'll set the variable I'd like to use in muttrc (eg. MUTT_MAIL_FOLDER=~/Mail). mailboxes `echo -n "+ "; cd

Re: mutt variable expansion in shell command ?

2019-08-29 Thread Mathieu Carpentier
I did few tests and I think I'm going to use environment variable. Before calling mutt I will source "~/.mutt/my-env.sh" where I'll set the variable I'd like to use in muttrc (eg. MUTT_MAIL_FOLDER=~/Mail). mailboxes `echo -n "+ "; cd $MUTT_MAIL_FOLDER/gmail; find . -maxdepth 1 -type d -name "*"

Re: mutt variable expansion in shell command ?

2019-08-28 Thread Ian Zimmerman
On 2019-08-28 20:36, Mathieu Carpentier wrote: > I would like to use "folder" for mailboxes command: > mailboxes `echo -n "+ "; cd $folder; find . -maxdepth 1 -type d -name "*" > -printf "+'%f' "` > > When I run mutt, I get the content of my home directory in the side panel: > $folder was not

mutt variable expansion in shell command ?

2019-08-28 Thread Mathieu Carpentier
I've been searching in manuals and on google, but I could not find an answer to my question. Let's say I define the following variable in my muttrc file: ### where are my email accounts ? set my_mail_root_dir = $HOME/Mail set mbox_type = Maildir ### folders for my Hotmail account set folder =