Is there a way to pass the location of the current folder to the shell?
This is being discussed in the filtering thread, but I also want to use it in
my thread killfiler. There are some threads (including in my inbox) that I
don't want being counted as new mail, so I filter them out with a procmail
recipe:
# Not the most general example, I know.
# Sort away mails from the mutt (mail user agent) mailing list
#* ^TOmutt-users@
:0:
* ^Return-Path: <mutt-users-owner
{
:0:
* ? $FORMAIL -x Subject: | grep -isF -f ~/.mutt/killfiles/muttin
dumpedthreads
:0:
muttin
}
Message IDs could also be used, but Subject works at least as well. (Don't get
defensive, I usually only plonk mutt threads involving platforms that I don't
use.)
And then when I see a new useless thread in mutt I
|formail -x "Subject:" >> ~/.mutt/killfiles/muttin
I would like to replace that with
|formail -x "Subject:" >> ~/.mutt/killfiles/$CURRENT_FOLDER
Or should I use folder-hooks?
--
"The freedom of any society varies proportionately with the volume of its
laughter." - Zero Mostel
Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/
PGP Key: http://astro.utoronto.ca/~reid/pgp.html