Download: trf.exe (10 Kb)
The purpose of TRF is to analyse attachment in mail files that comes from a mailto: <form> in HTML. There is a lot of programs like this available, but;
- this program executes with parameters and and be operated from a batch file.
- its small (10 Kb)
- its logging the values from the form into a text file that can be imported into a database or used in a mail-merge process.
- it needs no configuration
- its free
It displays the result in a windows and log the result to a data file, where the values in separated by semi-colon ";".
Read about how TRF is used with Pegasus Mail TRF takes 3 parameters;
TRF [/d] infile [outfile]
/d = if you want to have the result displayed on the screen, add /d as the first parameter
infile = the mail as a text file. This text file is created by a filter "eXtract" in Pegasus Mail 2.54
outfile = the filename where TRF log's all information. If no path is given c:\output.txt will be used.
Remember that the HTML file must have a variable called appType, and my be a hidden field in the HTML code. With the variable (appType) you can distinguish betweeen forms. The in file; may look like this;This logfile may look like this;
Received: from espenjor ([188.8.131.52]) by c2i.net (8.8.5/8.8.5) with SMTP id MAA09280 for <firstname.lastname@example.org>; Sun, 14 Dec 1997 12:06:50 +0100 (MET) Date: Sun, 14 Dec 1997 12:06:50 +0100 (MET) Message-Id: <199712141106.MAA09280@c2i.net> From: "Espen Joranger" <email@example.com> To: <firstname.lastname@example.org> Subject: Form posted from Microsoft Internet Explorer. MIME-Version: 1.0 Content-Disposition: attachment; filename="POSTDATA.ATT" X-Mailer: Microsoft Outlook Express 4.71.1712.3 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by c2i.net id MAA09280 Content-Type: text/plain; name="POSTDATA.ATT" filename="POSTDATA.ATT" appType=2&Page=Subscribe&Bestill=Subscribe&Type_Liste=Philosophyemail@example.comThis is a delimited file, witch meens that you can;
;Sun, 14 Dec 1997 11:20:01 +0100 (MET);2;Subscribe;Philosophy;firstname.lastname@example.org "Jimmy Nielsen" ;Sun, 14 Dec 1997 19:31:01 +0100 (MET);2;Subscribe;Subscribe;Philosophy;Jnilsen@usa.net "Espen Joranger" ;Sun, 14 Dec 1997 11:20:01 +0100 (MET);2;Unsubscribe;Philosophy;email@example.com
Import it into a spreadsheet Import it into a database Use ut in a Mail-Merge process (in Peagsus) Use it as a datafile in a Dynamical HTML (MS-IE 4.0) script
TRF.EXE is made by Dag Moltu in C++ and made availabe as freeware by him.