I have a bunch of HTML files that I want to compile into a mbox file,
providing a set of static headers, but extracting the Name and Date
from the <title> tag of the file.
All the Title tags are in the form of <title>A name/dd-mmm-yy</title>
and I would like to feed these files to formail and have it create a
set of headers something like this:
From staticaddress(_at_)domain(_dot_)com mmm dd 00:00:01 yyyy
To: someaddress(_at_)domain(_dot_)com
Subject: A Name
From: staticaddress(_at_)domain(_dot_)com
Date: dd mmm yyyy 00:00:01
Content-Type: text/html
Mime-Version: 1.0
Status: RO
<HTML SOURCE HERE>
and add them all to a single mbox file.
I can extract the date easily enough using grep, but is there an easy
way to feed that into formail to have it build the mbox file for me?
--
I mistoke thee for thy better
Hamlet Act III scene 4
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail