ATTACH-EXIST Condition

<< Click to Display Table of Contents >>

Navigation:  Event and Object Analysis > Capture Results Filtering > Filtration Basics > Rules > Criteria and Conditions >

ATTACH-EXIST Condition

Checks if the message has an attachment.

Description

The condition is considered true if a message has any attachments.

Format

<c name="attach-exist" />

The "name" attribute:

The name attribute specifies the name of the condition: name="attach-exist".

Example:

Drop messages with attachments.

<?xml version="1.0" encoding="utf-8"?>
<filter name="Message filter" version="1.0">
 <comment>Message filter.</comment>
 
 <table name="main">
   <rule enabled="1">
     <match>
       <c name="attach-exist" />
     </match>
     <action name="drop" />
   </rule>
 
 </table>
</filter>