* Noah Sheppard <nhshepp...@taylor.edu> [12-12-08 07:31]:
> 
> I would like to be able to use the current folder name as an argument
> to arbitrary commands.  I've read various wikis and forum postings
> about how "^" can be used in certain contexts (like setting record) to
> give the current folder name (as of 1.5.10 I believe), but this has
> not worked in the commands I'm trying to do.
> 
> I'm using this to set up some mail archiving. Here's what I tried first:
> 
> set my_archdir="/mnt/data/storage/mail/boxes" #the path to the directory 
> which will contain my archive dirs
> macro index,pager S "<save-message>$my_archdir/^<enter>"
> 
> This did not work (it treats the "^" literally), which doesn't
> particularly surprise me since "^" looks more like a magic symbol than
> a real variable. The next thing I tried was putting the current
> directory in a variable as a folder-hook, which also did not work:

"^" is a *special* character that has other meanings on the control
line.  Try your macro with the "^" escaped, as:
  macro indes,pager S "<save-message>$my_archdir/\^<enter>"


-- 
Patrick Shanahan         Plainfield, Indiana, USA        HOG # US1244711
http://wahoo.no-ip.org     Photo Album:  http://wahoo.no-ip.org/gallery2
Registered Linux User #207535                    @ http://counter.li.org

Reply via email to