我正在尝试使用用户定义的变量 ( my_<name>) 在 Fedora 30 上配置 mutt。为了避免在各处重复相同的路径名,我想使用一个变量来指定邮箱位置。我使用 shell 命令创建邮箱列表。
我使用该mailboxes参数动态创建邮箱列表。我正在尝试重新使用 $folder 变量来告诉 shell 命令该目录去查找邮箱。
### where are my email accounts ?
set my_mail_root_dir = $HOME/Mail
set mbox_type = Maildir
### folders for my Hotmail account
set folder = $my_mail_root_dir/hotmail
set mbox = $folder/Inbox
set spoolfile = $folder/Inbox
### create list of mailboxes trying to use '$folder'
mailboxes `echo -n "+ "; cd $folder; find . -maxdepth 1 -type d -name "*" -printf "+'%f' "`
### it will work using hardcoded directory:
#mailboxes `echo -n "+ "; cd ~/Mail/hotmail; find . -maxdepth 1 -type d -name "*" -printf "+'%f' "`
我正在寻找一种在邮箱 shell 命令中使用现有变量的方法。
有可能吗?