Community Discussions and Support
Global Filter - Send Binary File

OK.. but this would allow me to move messages to specific folder based on criteria I chose ??

Probably, I really do not know any more than what David has stated in this forum.

Any idea when we may see this ?

 Absolutely none.  I work around this in Pegasus Mail by filtering to directories and then having the user attach the directories via "Add mailbox to list".  Same thing could be done by filtering to a username and having the IMAP4 user mount the other user via IMAP.

 

<blockquote><p>OK.. but this would allow me to move messages to specific folder based on criteria I chose ??</p></blockquote><p>Probably, I really do not know any more than what David has stated in this forum. </p><blockquote><p>Any idea when we may see this ?</p></blockquote><p> Absolutely none.  I work around this in Pegasus Mail by filtering to directories and then having the user attach the directories via "Add mailbox to list".  Same thing could be done by filtering to a username and having the IMAP4 user mount the other user via IMAP.</p><p> </p>

I've set a global filter :


If header "T" is "download@domain_name.com" LogicalAnd ""
If header "S" is "newzipfile.zip" SendBinaryFile "C:\\Temp\\newzipfile.zip"
If header "T" contains "download@domain_name.com" Exit ""

This seems to work, but only if the email to download@domain_name.com is blank. ie NO body, just the subject.

A new email is sent from postmaster@domain_name.com with the attached file and a few random characters, something like this..

PK

If I send the email body, no file is emailed back... is that normal ?

Is there any way to change the senders address from postmaster to download@domain_name.com ?

Any way to create a template for the body of the return email ?

Thanks - MERCURY is one powerful program.

 

PLEASE ADD IMAP FILTERING :)

<p>I've set a global filter :</p><p> If header "T" is "download@domain_name.com" LogicalAnd "" If header "S" is "newzipfile.zip" SendBinaryFile "C:\\Temp\\newzipfile.zip" If header "T" contains "download@domain_name.com" Exit "" </p><p>This seems to work, but only if the email to download@domain_name.com is blank. ie NO body, just the subject.</p><p>A new email is sent from postmaster@domain_name.com with the attached file and a few random characters, something like this.. </p><p>PK </p><p>If I send the email body, no file is emailed back... is that normal ?</p><p>Is there any way to change the senders address from postmaster to download@domain_name.com ?</p><p>Any way to create a template for the body of the return email ?</p><p>Thanks - MERCURY is one powerful program.</p><p> </p><p>PLEASE ADD IMAP FILTERING :) </p>

I've tested this on Mercury 4.62 (which I assume you are using too). I got exactly the same result if the request had some text in the body of the message or not, so that won't cause the rule to fail. There could of course be some other problem with the message, but I would need to see it to test that.

Same as you I got some random characters in the body of the reply message (for no apparent reason). As far as I know there is no way to create a template for this action or change the sender address.

/Rolf

<p>I've tested this on Mercury 4.62 (which I assume you are using too). I got exactly the same result if the request had some text in the body of the message or not, so that won't cause the rule to fail. There could of course be some other problem with the message, but I would need to see it to test that. </p><p>Same as you I got some random characters in the body of the reply message (for no apparent reason). As far as I know there is no way to create a template for this action or change the sender address. </p><p>/Rolf </p>

Shame..

Anyone know how to get this working properly ??

Shame.. Anyone know how to get this working properly ??

Does anyone know any way to get this to work with out the random characters in the reply email ??
and how to change the return address ? 

I want to use this feature, but can at them moment because of these 2 issues. 

<p>Does anyone know any way to get this to work with out the random characters in the reply email ?? and how to change the return address ? </p><p>I want to use this feature, but can at them moment because of these 2 issues. </p>

To tailor the send file system further you will probably need to write a daemon. I'll post the issue with the random characters in the message body to the beta testers list.

/Rolf 

<p>To tailor the send file system further you will probably need to write a daemon. I'll post the issue with the random characters in the message body to the beta testers list.</p><p>/Rolf </p>

An alternative suggestion from Thomas Stephenson!

Known issue.  When you are using a Mercury/32 filter to reply by sending a

binary file

with no body text then the first characters in the binary file show up

where the body

text would be.  Works better to respond with a Tfile alias template

containing reply

text and the binary attachment. 

For an example, send a message to walkingman@tstephenson.com to see an

example

of the TFile alias.

This is alias I used.


The walkman.mer was a multipart/alternative message I sent to myself and

then

converted a template file by changing the headers to:

From: Automated File Delivery System <thomas@tstephenson.com>
To: ~T
Date: ~D

Pretty simple way to send almost any binary file in a formatted manner.

&lt;p&gt;&lt;i&gt;An alternative suggestion from Thomas Stephenson&lt;/i&gt;!&lt;/p&gt;&lt;blockquote&gt;&lt;div&gt;Known issue.&amp;nbsp; When you are using a Mercury/32 filter to reply by sending a binary file &lt;/div&gt;&lt;div&gt;with no body text then the first characters in the binary file show up where the body &lt;/div&gt;&lt;div&gt;text would be.&amp;nbsp; Works better to respond with a Tfile alias template containing reply &lt;/div&gt;&lt;div&gt;text and the binary attachment.&amp;nbsp; &lt;/div&gt; &lt;div&gt;For an example, send a message to walkingman@tstephenson.com to see an example &lt;/div&gt;&lt;div&gt;of the TFile alias.&lt;/div&gt; &lt;div&gt;This is alias I used.&lt;/div&gt; &lt;div&gt;T&lt;a href=&quot;file:///C:/MERCURY/SENDABLE/walkman.mer&quot; eudora=&quot;AUTOURL&quot;&gt;File:C:\MERCURY\SENDABLE\walkman.mer&lt;/a&gt;&lt;/div&gt; &lt;div&gt;The walkman.mer was a multipart/alternative message I sent to myself and then &lt;/div&gt;&lt;div&gt;converted a template file by changing the headers to: &lt;/div&gt; &lt;div&gt;From: Automated File Delivery System &amp;lt;thomas@tstephenson.com&amp;gt;&lt;/div&gt;&lt;div&gt;To: ~T&lt;/div&gt;&lt;div&gt;Date: ~D&lt;/div&gt; &lt;div&gt;Pretty simple way to send almost any binary file in a formatted manner. &lt;/div&gt;&lt;/blockquote&gt;

Thanks.

Looks a little messy to setup for lot of files, but will do exactly what I want ! :)

 

PLEASE ADD IMAP FILTERING 

&lt;p&gt;Thanks. &lt;/p&gt;&lt;p&gt;Looks a little messy to setup for lot of files, but will do exactly what I want ! :)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;PLEASE ADD IMAP FILTERING&amp;nbsp;&lt;/p&gt;

Another quick question !!

Any way to make this email a user AND send the a binary file. ?

Thanks 

&lt;p&gt;Another quick question !!&lt;/p&gt;&lt;p&gt;Any way to make this email a user AND send the a binary file. ?&lt;/p&gt;&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;

Does anyone know any way to get this to work with out the random characters in the reply email ??
and how to change the return address ?

If you are looking to send a binary file to a user based on the address used in the message you can use a template alias.  If you send mail to walkingman@tstephenson.com you will get back a message with an inline graphic.  The TFile alias in this case is TFile:C:\MERCURY\SENDABLE\walkman.mer and the walkman.mar file is a template file I built from a rich text multipart/mixed message I sent to myself.  Here's how the headers of the original YHAQ7Q3A.CNM  file were modified to make it a template file:

From: Automated File Delivery System <thomas@tstephenson.com>
To: ~T
Date: ~D
MIME-Version: 1.0
Content-type: Multipart/Mixed; boundary=Message-Boundary-25898
Subject: Walking man Inline GIF
Reply-to: support@tstephenson.com
Message-ID: <3E9F0E5A.19832.C458B14A@tstephenson.com>
Priority: normal
X-mailer: Pegasus Mail for Windows (v4.1)
X-AC-Weight: [####] (Whitelisted) -9999
X-CC-Diagnostic:
X-PMFLAGS: 570966144 9 1 YHAQ7Q3A.CNM            

Could have removed more of the original headers get get rid of the unnecessary X- header lines but I did not bother.  Really probably should look like:

From: Automated File Delivery System <thomas@tstephenson.com>

To: ~T

Date: ~D

MIME-Version: 1.0

Content-type: Multipart/Mixed; boundary=Message-Boundary-25898

Subject: Walking man Inline GIF

Reply-to: support@tstephenson.com

Priority: normal

 This whole process is pretty simple and quite flexible.

 

&lt;blockquote&gt;Does anyone know any way to get this to work with out the random characters in the reply email ?? and how to change the return address ? &lt;/blockquote&gt;&lt;p&gt;If you are looking to send a binary file to a user based on the address used in the message you can use a template alias.&amp;nbsp; If you send mail to walkingman@tstephenson.com you will get back a message with an inline graphic.&amp;nbsp; The TFile alias in this case is TFile:C:\MERCURY\SENDABLE\walkman.mer and the walkman.mar file is a template file I built from a rich text multipart/mixed message I sent to myself.&amp;nbsp; Here&#039;s how the headers of the original YHAQ7Q3A.CNM&amp;nbsp; file were modified to make it a template file:&lt;/p&gt;&lt;p&gt;From: Automated File Delivery System &amp;lt;thomas@tstephenson.com&amp;gt; To: ~T Date: ~D MIME-Version: 1.0 Content-type: Multipart/Mixed; boundary=Message-Boundary-25898 Subject: Walking man Inline GIF Reply-to: support@tstephenson.com Message-ID: &amp;lt;3E9F0E5A.19832.C458B14A@tstephenson.com&amp;gt; Priority: normal X-mailer: Pegasus Mail for Windows (v4.1) X-AC-Weight: [####] (Whitelisted) -9999 X-CC-Diagnostic: X-PMFLAGS: 570966144 9 1 YHAQ7Q3A.CNM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Could have removed more of the original headers get get rid of the unnecessary X- header lines but I did not bother.&amp;nbsp; Really probably should look like:&lt;/p&gt;&lt;p&gt;From: Automated File Delivery System &amp;lt;thomas@tstephenson.com&amp;gt; To: ~T Date: ~D MIME-Version: 1.0 Content-type: Multipart/Mixed; boundary=Message-Boundary-25898 Subject: Walking man Inline GIF Reply-to: support@tstephenson.com Priority: normal &lt;/p&gt;&lt;p&gt;&amp;nbsp;This whole process is pretty simple and quite flexible. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

With a multipart message you can have both a text and the binary attachment in the same email, if that is what you meant. If you meant sending an email to another person at the same time as sending the binary file to the person that requested it you can do that with a separate rule.

/Rolf 

&lt;p&gt;With a multipart message you can have both a text and the binary attachment in the same email, if that is what you meant. If you meant sending an email to another person at the same time as sending the binary file to the person that requested it you can do that with a separate rule.&lt;/p&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;

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

 

&lt;p&gt;Hope I&#039;m not jumping onto your thread - though this might help.&amp;nbsp;&lt;/p&gt;&lt;p&gt;With the help of &lt;b&gt;Thomas &lt;/b&gt;[Y] I have managed to get this working.&lt;/p&gt;&lt;p&gt;I have created a new user called &#039;&lt;b&gt;files&lt;/b&gt;&#039;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In filtering rules I have added:&lt;/p&gt;&lt;p&gt;# Test File Download If header &quot;T&quot; is &quot;files@domain_name.com&quot; LogicalAnd &quot;&quot; If header &quot;S&quot; is &quot;FILE1&quot; SendTemplate &quot;C:\\MERCURY\\files\\file1.mer&quot; If header &quot;S&quot; is &quot;FILE2&quot; SendTemplate &quot;C:\\MERCURY\\files\\file2.mer&quot; If header &quot;T&quot; is &quot;files@domain_name.com&quot; Exit &quot;&quot; #&amp;nbsp; &lt;/p&gt;&lt;p&gt;&lt;b&gt;file1.mer&lt;/b&gt; has something like this in it:&lt;/p&gt;&lt;p&gt;From: Automated File Delivery System &amp;lt;files@domain_name.com&amp;gt; To: ~T Subject: Subject: FILE1 Date: ~D MIME-Version: 1.0 Content-type: Multipart/Mixed; Boundary=&quot;5178F19B.1900.31886&quot; 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=&quot;file1.zip&quot;; type=&quot;Binary_Data&quot; Content-disposition: attachment; filename=&quot;file1.zip&quot; Content-transfer-encoding: BASE64 &lt;/p&gt;&lt;p&gt;NbhC14F3xdhLa4gxMEYkHlLtjZmrk2wZ37DNN3JMwDz18E9ngSMULHV2dQMaBMQX8dRQI OagS/1/USQi05BzJQfpGXkhrJlHktxqN+XyuSxR1SzSG9thCPuuxXPsTOwQ/8MaBMQX8dRQI AaE3iuZGIHZh4c3ARAmiSO0wCuzhLEIOM7sbXkA8tkcLGpi5FnIShUVAkcHTkGRPwju+uIFj 4YrAcOBqNnRsE85sU7goKgOPppFwghozXPDyI0KgpxCAIw8BG8SxXQIsUIB4DGkCDsF2fIYC WAPEqYKsQ7QD8HzaV0VcF6iBUbpPl5SfnPagd3B9etUH/O3q+vL96WH3EDo9/FqDD6f9k8ub PnQuPsKHzvV156L/ES6v4fimQ793u3B5xJPvTi8OGeBNr3Pc5d+2dOhY/56FESOH+BtDA8k1 &lt;/p&gt;&lt;p&gt; --5178F19B.1900.31886-- &lt;/p&gt;&lt;p&gt;file2.mer is similar but has file2.zip as the binary.&amp;nbsp;&lt;/p&gt;&lt;p&gt;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.&lt;/p&gt;&lt;p&gt;Hope this helps someone. Thanks &amp;nbsp;&lt;/p&gt;

Thanks TomT & Thomas.

That is exactly what I've been trying to do [:D]

Martin.


PLEASE ADD IMAP FILTERING

&lt;p&gt;Thanks TomT &amp;amp; Thomas.&lt;/p&gt;&lt;p&gt;That is exactly what I&#039;ve been trying to do [:D]&lt;/p&gt;&lt;p&gt;Martin.&lt;/p&gt;&lt;p&gt; PLEASE ADD IMAP FILTERING [B] &lt;/p&gt;

PLEASE ADD IMAP FILTERING

What type of IMAP filtering do you want?

 

&lt;blockquote&gt;PLEASE ADD IMAP FILTERING&lt;/blockquote&gt;&lt;p&gt;What type of IMAP filtering do you want?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

[quote user="Thomas R. Stephenson"]

PLEASE ADD IMAP FILTERING

What type of IMAP filtering do you want?[/quote]

Hi Thomas

I would like to be able to have Mercury filter / move messages to IMAP users folders based on criteria specified

as an example I have a user called FRED, he has an IMAP folder called PayPal so I would like to specify that any email to FRED with the subject PayPal, is delievered as unread mail to his Imap / PayPal folder.

Reading this thread is very similar:
http://community.pmail.com/forums/thread/1411.aspx

This would be an administrators job to setup not a users, if they want to filter within their client they can.

I can see that other users would like this. As a default I could create a SPAM folder for all my users, and then filter any thing marked as spam to that folder.
(some users don't want the spam deleting [:|] ) 

Many thanks for your help

[quote user=&quot;Thomas R. Stephenson&quot;] &lt;BLOCKQUOTE&gt;PLEASE ADD IMAP FILTERING&lt;/BLOCKQUOTE&gt; &lt;P&gt;What type of IMAP filtering do you want?[/quote]&lt;/P&gt; &lt;P&gt;Hi Thomas&lt;/P&gt; &lt;P&gt;I would like to be able to have Mercury filter / move messages to IMAP users folders based on criteria specified&lt;/P&gt; &lt;P&gt;as an example I have a user called FRED, he has an IMAP folder called PayPal so I would like to specify that any email to FRED with the subject PayPal, is delievered as unread mail to his Imap / PayPal folder.&lt;/P&gt; &lt;P&gt;Reading this thread is very similar: &lt;A href=&quot;http://community.pmail.com/forums/thread/1411.aspx&quot;&gt;http://community.pmail.com/forums/thread/1411.aspx&lt;/A&gt;&lt;/P&gt; &lt;P&gt;This would be an administrators job to setup not a users, if they want to filter within their client they can.&lt;/P&gt; &lt;P&gt;I can see that other users would like this. As a default I could create a SPAM folder for all my users, and then filter any thing marked as spam to that folder. (some users don&#039;t want the spam deleting [:|] )&amp;nbsp;&lt;/P&gt; &lt;P&gt;Many thanks for your help&lt;/P&gt;

It's not really anything to do with IMAP then, it's extending the general filtering to folders - as has been discussed before.

It&#039;s not really anything to do with IMAP then, it&#039;s extending the general filtering to&amp;nbsp;folders - as has been discussed before.

Sorry Martin - I'm jumping into another of your posts !

This is expanding the current filtering to include IMAP.
I asked about this quite a while back.

Would be a great feature.
 

&lt;p&gt;Sorry Martin - I&#039;m jumping into another of your posts !&lt;/p&gt;&lt;p&gt;This is expanding the current filtering to include IMAP. I asked about this quite a while back. Would be a great feature. &amp;nbsp;&lt;/p&gt;

My point exactly.  The only functions available thing I can see to add to IMAP4 is sorting on the server which has nothing to do with filtering.

My point exactly.&amp;nbsp; The only functions available thing I can see to add to IMAP4 is sorting on the server which has nothing to do with filtering.

Hi Thomas

However we look at this, I thing it would be great to be able to move email to a users IMAP folders based on specific critiria.

Being able to filter / sort / move based on rules create by the server administrator is fine by me.

I think you'd need to look at the TO, FROM, CC, SUBJECT and possibly any headers, then specify the destination.
Obviously this would be specific to each user and not global.

Thanks

&lt;p&gt;Hi Thomas&lt;/p&gt;&lt;p&gt;However we look at this, I thing it would be great to be able to move email to a users IMAP folders based on specific critiria.&lt;/p&gt;&lt;p&gt;Being able to filter / sort / move based on rules create by the server administrator is fine by me. &lt;/p&gt;&lt;p&gt;I think you&#039;d need to look at the TO, FROM, CC, SUBJECT and possibly any headers, then specify the destination. Obviously this would be specific to each user and not global.&lt;/p&gt;&lt;p&gt;Thanks &lt;/p&gt;

However we look at this, I thing it would be great to be able to move email to a users IMAP folders based on specific critiria.
The point is this has nothing at all to do with IMAP filtering, this is asking for filtering to the Mercury/32 and Pegasus mail folders.   This has been requested, and David is already looking at this but it has nothing at all to do with IMAP filtering. 
&lt;blockquote&gt;However we look at this, I thing it would be great to be able to move email to a users IMAP folders based on specific critiria.&lt;/blockquote&gt;The point is this has nothing at all to do with IMAP filtering, this is asking for filtering to the Mercury/32 and Pegasus mail folders. &amp;nbsp; This has been requested, and David is already looking at this but it has nothing at all to do with IMAP filtering.&amp;nbsp;
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft