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;

Received: from espenjor ([])
	by (8.8.5/8.8.5) with SMTP id MAA09280
	for <>; Sun, 14 Dec 1997 12:06:50 +0100 (MET)
Date: Sun, 14 Dec 1997 12:06:50 +0100 (MET)
Message-Id: <>
From: "Espen Joranger" <>
To: <>
Subject: Form posted from Microsoft Internet Explorer.
MIME-Version: 1.0
Content-Disposition: attachment;
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 id MAA09280
Content-Type: text/plain;


This logfile may look like this;

"Espen Joranger" ;Sun, 14 Dec 1997 11:20:01 +0100 (MET);2;Subscribe;Philosophy;
"Jimmy Nielsen" ;Sun, 14 Dec 1997 19:31:01 +0100 (MET);2;Subscribe;Subscribe;Philosophy;
"Espen Joranger" ;Sun, 14 Dec 1997 11:20:01 +0100 (MET);2;Unsubscribe;Philosophy;
This is a delimited file, witch meens that you can;

  • 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.

    From the homepage of Espen Joranger