Community Discussions and Support
Problem with general rule set (message size)

i've made two rules:

 1. if size < 10MB than deliver (forward) to recipient

2. if size > 10MB than delete message

 and it works! :)

 thank you for your patience and help.

 

&lt;P&gt;i&#039;ve made two rules:&lt;/P&gt; &lt;P&gt;&amp;nbsp;1. if size &amp;lt; 10MB than deliver (forward) to recipient&lt;/P&gt; &lt;P&gt;2. if size &amp;gt; 10MB than delete message&lt;/P&gt; &lt;P&gt;&amp;nbsp;and it works! :)&lt;/P&gt; &lt;P&gt;&amp;nbsp;thank you for your patience and help.&lt;/P&gt; &lt;P mce_keep=&quot;true&quot;&gt;&amp;nbsp;&lt;/P&gt;

Hello,

 I have a problem with setting correctly working general rule which will check  the size of the message.

I have made rule type=size and content=larger than 10000000 (10MB) action=delete.

I have made alias for presaved rule like this: login@domain.com real name: filter:c:\mercury\my_rule_name.rul.

This rule doesn't make sense because none of the sent test e-mails have arrived.

What can be a problem?

 

 

&lt;P&gt;Hello,&lt;/P&gt; &lt;P&gt;&amp;nbsp;I have a problem with setting correctly working general rule which will check&amp;nbsp; the size of the&amp;nbsp;message.&lt;/P&gt; &lt;P&gt;I have made rule type=size and content=larger than 10000000 (10MB) action=delete.&lt;/P&gt; &lt;P&gt;I have made alias for presaved rule like this: &lt;A href=&quot;mailto:login@domain.com&quot;&gt;login@domain.com&lt;/A&gt; real name: filter:c:\mercury\my_rule_name.rul.&lt;/P&gt; &lt;P&gt;This rule&amp;nbsp;doesn&#039;t make sense because&amp;nbsp;none of the sent test e-mails have arrived.&lt;/P&gt; &lt;P&gt;What can be a problem?&lt;/P&gt; &lt;P mce_keep=&quot;true&quot;&gt;&amp;nbsp;&lt;/P&gt; &lt;P mce_keep=&quot;true&quot;&gt;&amp;nbsp;&lt;/P&gt;

And what action do you expect the rule to perform if the message is under the size limit?

/Rolf 

&lt;p&gt;And what action do you expect the rule to perform if the message is under the size limit?&lt;/p&gt;&lt;p&gt;/Rolf&nbsp;&lt;/p&gt;

if message < 10 000 000 than deliver it to recipient

 

something like that...

 

so... i must make rule which will describe action in case message < 10MB?

 

and what action should have this rule? forward, or something?

&lt;p&gt;if message &amp;lt; 10 000 000 than deliver it to recipient&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;something like that... &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;so... i must make rule which will describe action in case message &amp;lt; 10MB?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;and what action should have this rule? forward, or something? &lt;/p&gt;

As the message has been taken out of the ordinary message flow by the alias you would need a move action to actually deliver it somewhere. The problem is that at this point you can't be sure if it's a To or Cc recipient that the message was intended for, unless these message always just have a To recipient. Bcc information is not available at all here.

Perhaps it would be a better alternative to use a global rule (with logical AND to check both To and size) here instead? If message size is not exceeded then the message would be delivered normally.

/Rolf
 

&lt;p&gt;As the message has been taken out of the ordinary message flow by the alias you would need a move action to actually deliver it somewhere. The problem is that at this point you can&#039;t be sure if it&#039;s a To or Cc recipient that the message was intended for, unless these message always just have a To recipient. Bcc information is not available at all here.&lt;/p&gt;&lt;p&gt;Perhaps it would be a better alternative to use a global rule (with logical AND to check both To and size) here instead? If message size is not exceeded then the message would be delivered normally.&lt;/p&gt;&lt;p&gt;/Rolf &amp;nbsp;&lt;/p&gt;
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