Hope I'm not jumping onto your thread - though this might help.
With the help of Thomas [Y] I have managed to get this working.
I have created a new user called 'files'
In filtering rules I have added:
# Test File Download
If header "T" is "files@domain_name.com" LogicalAnd ""
If header "S" is "FILE1" SendTemplate "C:\\MERCURY\\files\\file1.mer"
If header "S" is "FILE2" SendTemplate "C:\\MERCURY\\files\\file2.mer"
If header "T" is "files@domain_name.com" Exit ""
#
file1.mer has something like this in it:
From: Automated File Delivery System <files@domain_name.com>
To: ~T
Subject: Subject: FILE1
Date: ~D
MIME-Version: 1.0
Content-type: Multipart/Mixed; Boundary="5178F19B.1900.31886"
This is a message in MIME format with multiple parts.
If you are reading this, then your mail program does not
understand the MIME format.
--5178F19B.1900.31886
Content-description: Mail message body
Content-type: text/plain; charset=US-ASCII
Content-disposition: Inline
Thank you for requesting this file.
--5178F19B.1900.31886
Content-type: application/octet-stream; name="file1.zip"; type="Binary_Data"
Content-disposition: attachment; filename="file1.zip"
Content-transfer-encoding: BASE64
NbhC14F3xdhLa4gxMEYkHlLtjZmrk2wZ37DNN3JMwDz18E9ngSMULHV2dQMaBMQX8dRQI
OagS/1/USQi05BzJQfpGXkhrJlHktxqN+XyuSxR1SzSG9thCPuuxXPsTOwQ/8MaBMQX8dRQI
AaE3iuZGIHZh4c3ARAmiSO0wCuzhLEIOM7sbXkA8tkcLGpi5FnIShUVAkcHTkGRPwju+uIFj
4YrAcOBqNnRsE85sU7goKgOPppFwghozXPDyI0KgpxCAIw8BG8SxXQIsUIB4DGkCDsF2fIYC
WAPEqYKsQ7QD8HzaV0VcF6iBUbpPl5SfnPagd3B9etUH/O3q+vL96WH3EDo9/FqDD6f9k8ub
PnQuPsKHzvV156L/ES6v4fimQ793u3B5xJPvTi8OGeBNr3Pc5d+2dOhY/56FESOH+BtDA8k1
--5178F19B.1900.31886--
file2.mer is similar but has file2.zip as the binary.
This seems to work OK. if I email files@domain_name.com with the subject of FILES1 I get file1... or subject of FILE2 I get file2.
Hope this helps someone. Thanks
<p>Hope I'm not jumping onto your thread - though this might help.&nbsp;</p><p>With the help of <b>Thomas </b>[Y] I have managed to get this working.</p><p>I have created a new user called '<b>files</b>'&nbsp;</p><p>In filtering rules I have added:</p><p># Test File Download
If header "T" is "files@domain_name.com" LogicalAnd ""
If header "S" is "FILE1" SendTemplate "C:\\MERCURY\\files\\file1.mer"
If header "S" is "FILE2" SendTemplate "C:\\MERCURY\\files\\file2.mer"
If header "T" is "files@domain_name.com" Exit ""
#&nbsp; </p><p><b>file1.mer</b> has something like this in it:</p><p>From: Automated File Delivery System &lt;files@domain_name.com&gt;
To: ~T
Subject: Subject: FILE1
Date: ~D
MIME-Version: 1.0
Content-type: Multipart/Mixed; Boundary="5178F19B.1900.31886"
This is a message in MIME format with multiple parts.
If you are reading this, then your mail program does not
understand the MIME format.
--5178F19B.1900.31886
Content-description: Mail message body
Content-type: text/plain; charset=US-ASCII
Content-disposition: Inline
Thank you for requesting this file.
--5178F19B.1900.31886
Content-type: application/octet-stream; name="file1.zip"; type="Binary_Data"
Content-disposition: attachment; filename="file1.zip"
Content-transfer-encoding: BASE64 </p><p>NbhC14F3xdhLa4gxMEYkHlLtjZmrk2wZ37DNN3JMwDz18E9ngSMULHV2dQMaBMQX8dRQI
OagS/1/USQi05BzJQfpGXkhrJlHktxqN+XyuSxR1SzSG9thCPuuxXPsTOwQ/8MaBMQX8dRQI
AaE3iuZGIHZh4c3ARAmiSO0wCuzhLEIOM7sbXkA8tkcLGpi5FnIShUVAkcHTkGRPwju+uIFj
4YrAcOBqNnRsE85sU7goKgOPppFwghozXPDyI0KgpxCAIw8BG8SxXQIsUIB4DGkCDsF2fIYC
WAPEqYKsQ7QD8HzaV0VcF6iBUbpPl5SfnPagd3B9etUH/O3q+vL96WH3EDo9/FqDD6f9k8ub
PnQuPsKHzvV156L/ES6v4fimQ793u3B5xJPvTi8OGeBNr3Pc5d+2dOhY/56FESOH+BtDA8k1
</p><p>
--5178F19B.1900.31886-- </p><p>file2.mer is similar but has file2.zip as the binary.&nbsp;</p><p>This seems to work OK. if I email files@domain_name.com with the subject of FILES1 I get file1... or subject of FILE2 I get file2.</p><p>Hope this helps someone. Thanks
&nbsp;</p>