[Top] [Prev] [Next] [Bottom]




Attributes


During recursive disassembly of an email message or Web data a standard set of attributes are attached to each component that is generated. These attributes can be used and updated at various stages of MIMEsweeper processing.

You can also create your own user-defined attributes which can be used and updated during MIMEsweeper processing. For example, the If directive can be used to create an attribute based on the <Response> generated by a validator instance or, in the case of MAILsweeper, the <Response> that is generated by AMUcheck.

See page 7-102 for more details on the If directive.

Each attribute comprises an attribute name and an attribute value. The name is a string and the value is a string, quoted string or integer. Both the name and value are case insensitive.

Attribute assignment

Several MIMEsweeper directives can create or update an attribute.

This is achieved using an attribute assignment of the form:

<Attribute_Name>=<Attribute_Value>

where:

If the string contains special characters, such as a space, it must always be enclosed in double quotes.

For example:

ContainerClass=Container
ContainerName=DOSEXE
direction=In
direction="Into Sales"
mysize=103
WSW_LANGUAGE=2
ContainerName=Image

If the attribute already exists the value is updated. If the attribute does not exist it is created with the given value.

Attribute expression

Several directives may need to check the value of an attribute.

This is achieved by using an attribute expression as the value of the directive. The attribute expression can evaluate to TRUE or FALSE.

The expression is of the form:

<Attribute_Name> <Operator> <Attribute_Value>

where:

If the string contains special characters, such as a space, it must always be enclosed in double quotes.

Valid comparison operators that can be used in an attribute expression are:

Operator Meaning
== Equals
> Greater than
>= Greater than or equal to
< Less than
<= Less than or equal to
!= Not equal to

For example:

ContainerClass==Container
ContainerName==DOSEXE
direction==in
direction=="Into Sales"
mysize==*
WSW_LANGUAGE>2
ContainerName!=Image
If the attribute expression uses the == operator it can have the wildcard character * as its value. This character will match any string.



[Top] [Prev] [Next] [Bottom]



msw.support@mimesweeper.com

Copyright © 1998, Content Technologies Limited. All rights reserved.