procmail
[Top] [All Lists]

x-hdr defining variable

1997-08-15 07:24:00

hi.

i have set up a script that passes the body to an HTML document in a 
predefined subdirectory in a predefined file. (the assumption here is 
that the text of the email is written in HTML or the page will just be 
plain text, i'll get to cat'ing HTML headers and footers on later)

what i would like to do is have the user include an x-header that defines 
the name of the file saved.  i will have predefined per alias the 
subdirectory the file gets saved to, the user will simply specify a 
filename that the document gets saved to with the x-header.
incidentally, if the file does not already exist it would need to be 
created.

i pipe the body into the cat statement, i've gotten that far, but i need 
to ask for help on defining and using the variable.  would someone be so 
kind as to forward me an example of using an x-header variable or insert 
the necessary code and/or comments into what i have here?  (feel free to 
comment on what is already here)


:0
* ^TO_test(_at_)topsecret(_dot_)net
{
        :0 b
        | cat > ~/website/test/mailfile.html
}


thank you for your patience nad help :)

--gill

<Prev in Thread] Current Thread [Next in Thread>