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.
Several MIMEsweeper directives can create or update an attribute.
This is achieved using an attribute assignment of the form:
<Attribute_Name>=<Attribute_Value>
![]() |
If the string contains special characters, such as a space, it must always be enclosed in double quotes. |
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.
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>
![]() |
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 |
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. |
Copyright © 1998, Content Technologies Limited. All rights reserved.