This document is created to show you how various parts of
MailRules can be locked together to reply back to the original sender of a
message with their message subject in as part of the subject line of the reply
message. With an easy 5 step process.
Step 1.
Inbound Rule;
For this example my Inbound Rule will be looking for an
email with the subject of ‘Contains Order’
The settings for the Inbound Rule sections are as follows;
From

Rule Name;
-optional
Delete Original Mail;
-optional
Subject;
-what ever suits your email
Storage

Folder to store Attachments;
REQUIRED.
You must specify a folder to save any attachments.
Message

You must enable the option;
Save body text as a file
Filename for body text:
Messagebody.txt
-This file will be saved into the same location as the
storage folder for any attachments. You
can enter in a full path for this file if you do not want it saved with your
inbound attachments i.e. ‘c:\for\messagebody.txt’
You must also enable the option;
Save message ‘header’ details
-This will save details about who the message came from,
subject and date message received.
Run App.
- We will come back to the options in this section at the
end.
Step 2.
You will now need to send MailRules an email message that
will get processed by the above Inbound Rule.
Then once the message is in the mailbox that MailRules is checking, hit
the Check Now or Process button. Once
your message is processed MailRules will generate the file MessageBody.txt
which we need to create a Datasource.

-Process
-Check Now
Step 3.
Creating a MAP Datasource.

When the Datasource window appears. Click the ‘Create’ button.
You should now be presented with the following window.

We need to select the option;
MAP File
Then click continue.
A window will appear and you will need to select the file
‘MessageBody.txt’, which the Inbound Rule above created when it processed your
email.
Once you have found it, click ‘Open’.
A window will now open and ask how many lines to read. The default is to display the first 25 lines
from your selected file. For this
example it is quite sufficient, so click ‘OK’.

The MAP Datasource window.
This
window is displaying the contents of the file, ‘c:\test\messagebody.txt’.
We now need to Highlight the parts of this file that we want
to use in our Datasource.
We need to create 2 fields from this data, a field for
‘From’ and one for ‘Subject’
To Highlight the text we want to create as fields, just use
your mouse and select the text just like you would select any other block of
text.

Once you have selected the text ‘From:’ then let the mouse
button go and MailRules will show you the details of the field you have
selected at the bottom of the screen.

We can see here that MailRules has set your field marker to
be;
FROM:
By default the Field End Marker is set as the {Line
End}. This will mean that when MailRules
uses this file as a Datasource. The data
that ends up in the field FROM: will be any characters that are found from the
left of the ‘:’ until the end of the line is detected.
There are many different ways to use the options on the
screen but at the moment we will leave everything as it is.
So now click the ‘Set as Field’ option to save the FROM:
field.
Now create the subject field, by Highlighting the text
‘Subject:’
Then click the ‘Set as Field’ button and the subject field
will be created.
Now turn on the option ‘Remove Source Data’.
Click the ‘Save’ button to store your new MAP Datasource
details.
You will be asked to name your Datasource so call it ‘Order
Ack’ and click ‘OK’.
Step 4.
Outbound Rule
Create yourself a new Outbound Rule.
Who

Rule Name;
Order Ack
To;
Don’t enter anything in here.
Subject;
- See below
Messagebody
-Enter any message in here that
you want, i.e. Thanks for your Order.
Click the option;
‘Recipients from Datasource’
(See below)
When you click the Datasource option. The Datasource window will appear and you will
need to select the Datasource we just created ‘Order Ack’.
When you
select the Datasource, you will be displayed the list of fields you just
created.
-Select Order Ack Datasource
-Select the From: field
-Click Select
This will automatically populate the details to go into the
To: field

Now
we enter the Subject Line manually.
Where [Order Ack.Subject:] is a reference to the field in the
Datasource. Received OK is just extra
text that will appear in the subject line.
The only other option to specify for this Outbound Rule is
on the When section
When
We need to set this rule to be Manual Sending Only.
So click ‘Add’.
From the drop down list shown, select Manual and click ‘OK’
Now click ‘OK’ on the rule and confirm that you want to
continue without selecting any files to send.
Step 5
Edit the Inbound Rule we created in step 1. Now go to the final option section;
Run App
In here we
will turn on the options that will allow the whole process to function.
Turn on the following options;
-Run this Outbound Rule:
-Reply to Sender
-Abandon & require Inbound
Check
From the drop down box, select the
Outbound Rule ‘Order Ack’ that we created in step 4.
Now click ‘OK’ and the setup is complete.