-----BEGIN PGP SIGNED MESSAGE-----
Hi Lars Kellogg-Stedman! I'm a UNIX administrator and I like to fight spam!
How can i get the subject in that variable and how do i use that
variable?
SUBJECT="`formail -zx 'Subject:'`"
Actually, you can remove the outer set of quotes, the following
works fine in my procmailrc:
SUBJECT=`formail -x "Subject":`
Short warning: do NOT try anything resembling 'mkdir $SUBJECT'. What if
the subject has spaces in it? Or other odd characters? If you're going
How about piping the $SUBJECT through:
sed s/[^A-Za-z0-9]/_/g
that would replace any characters other than letters and numbers
by underscore characters.
Regards,
- --
<Doug Muth>--<dmuth(_at_)ot(_dot_)com> - Spam me and die!
Think your homepage sucks? You haven't seen http://www.ot.com/~dmuth yet!!
Anti-virus software and utils: | The Transformers fanfiction:|"Est Sularus|
http://www.ot.com/~dmuth/virus | http://www.ot.com/~dmuth/tf |oth Mithas!"|
- -=-= The only GOOD spammer is a DEAD spammer * http://www.vix.com/spam -=-=
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
iQCVAwUBMvaTJh0LJlIsPN1JAQGv3QP9FMv41qiwMHZ7kEEBkF+FbMWar/9dXLLn
0hjEg3LgX1qJCg/7eUYGBijHHbb+jtNdxXaWhlyOkA9FK4Ps8Vhw5Dm80Yx//IHy
2/b3avR39QwEjC/XZU9JnttIanRlRmiRze+oLT+9nkl1ZRZSfiK970RN35KwVu+2
99unBn515i8=
=Ow7a
-----END PGP SIGNATURE-----