Download VPOP3 User Guide - Paul Smith Computer Services

Transcript
VPOP3 – Your email post office
AutoResponder Environment Variables
The External AutoResponder has its environment modified so that the
following variables are set:
REPLY-TO
This is the Reply-To address of the incoming message (or the
From address if there is no Reply-To address)
ORIGINATOR
This is the From address of the incoming message
MAILBOX
This is the name of the mailbox which this AutoResponder is
running for
SUBJECT
This is the subject line of the incoming message
MAILBOXDIR
This is the directory of the mailbox which this AutoResponder
is running for
For backwards compatibility there is also an AutoResponder Control File, but the
use of this is not recommended.
Testing the AutoResponder
Testing ‘External Autoresponders’ can be tricky.
First of all you should write the program. Let’s say it’s a PERL script called
‘RESPONSE.PL’ and it is executed by running ‘C:\PERL\PERL.EXE
RESPONSE.PL’. You should put that command into the AutoRespond.CMD file
in the user’s mailbox directory.
Next, go to the VPOP3 Diagnostics Property Page and enable the Keep
Temporary Files option.
Now, you should send an appropriate test message to the AutoResponder user.
If all works fine, good, but otherwise..
You can look at the AUTORESPONSE.TXT and AUTORESPONSE.CTL files
in the VPOP3 directory. The text in these may indicate what went wrong.
You may want to test the ‘External Autoresponder’ manually. To do this, find the
appropriate input files which were used in the test. The input control file will
now be called DR????.TMP in the HouseKeeper directory. This will contain (on
the 5th line) the name of the input message file (with a filename R????.TMP) - the
input message file will now be called D????.TMP, with the same values of ????.
Copy the input control file and input message file into the main VPOP3 directory
for ease of use. Next, you will need to edit the input message file and delete the
first 4 characters (which will probably not be standard characters). Also, set the
values of the Environment Variables using the command line SET command.
Now you can call your ‘External Autoresponder’ program manually. In this
example you would type:
C:\PERL\PERL.EXE RESPONSE.PL DR??????.DAT <D??????.DAT
D??????.DAT
where DR??????.DAT is the filename of the input control file and D??????.DAT is
the filename of the input message file.
This should call your External Autoresponder and display on the screen the text
sent to both the STDOUT and STDERR files. You can redirect this output to
other temporary files if you wish.
Page 86
User Manual
v 1.3.0 May 1999