At 02:13 PM 2/3/97 +0100, you wrote:
i have procmail installed on a unix system.
and now I want to get the subject into a variable and use
that variable as an input of an condition such as mkdir variable.
How can i get the subject in that variable and how do i use that
variable?
This is how you put it into a variable:
SUBJ=`$FORMAIL -zx 'Subject: '`
It can now be used a standard variable ($SUBJ). As far as using it as a
variable, the MAN pages have examples on that.
You could do something like this as far as using it in a variable:
SUBJ=`$FORMAIL -zx 'Subject: '`
:0
* ^From.*lamer
| mkdir $SUBJECT
Lates!
---------------------------------------------------------------------------
Tim <bodysurf(_at_)pobox(_dot_)com>
mailto:bodysurf(_at_)pobox(_dot_)com
Finger bodysurf(_at_)pobox(_dot_)com for my PGP public key (Bits 1024/KeyID
09DA5C49).
PGP Key FPrint (09/03/94): 4C 97 F1 FA 70 55 68 91 49 D1 AD F2 DD 63 0C 15
---------------------> Please PGP encrypt your email <---------------------