Sieve environment extension

New in  Messaging Server 7.0-3.01, the Sieve environment extension specified in RFC 5183  (Sieve Email Filtering: Environment Extension)  has been implemented. All of the items defined in the RFC are provided, namely:,  ,  ,  ,  ,  ,  ,. Additionally, the  item returns the name of the current source channel and the   item returns the name of the current destination channel.

New in  Messaging Server 7.3-0.01, the   item returns    or   according to whether the  autoreply criteria have been met for use of the "internal" autoreply response text. Also new in  Messaging Server 7.3-0.01, the MTA supports two new Sieve environment items,   and. The former provides      access to the sender address that&#x27;s associated with the authentication       state for the SMTP session. The latter provides similar access to the      user identity.

New in 7.0.5, the MTA supports the new Sieve environment item. When the Sieves       associated with a recipient are evaluated in order, each evaluation       that performs an explicit handling action sets this item as it finishes       so the next Sieve in the sequence can check it. A Sieve script that doesn&#x27;t      perform an explicit handling action will leave this item unchanged. Possible values that can be set are:

 

 

 

 

 

 

 

 

</ul>

Note that testing the   environment item makes the Sieve script recipient-specific in the same fashion an   test does, and will result in this and subsequent Sieves being reevaluated for every recipient. Although any script can test this item, it is intended for use when other applications and utilities such as    ask the MTA to perform antispam and antivirus checks.

New in 8.0, the MTA supports a new Sieve environment item,. This item returns the current MT-PRIORITY value as a string.

New in 8.0, the MTA supports a new Sieve environment item,. This item returns the current type of enqueue operation that is underway. The possible values are " ", " ", " ", and " ".

New in 8.0.1.2, the MTA supports new Sieve environment items,,  ,  ,   The "count" items return the number of notification or vacation messages the current sieve has enqueued. The "quota" items return the number of additional notification or vacation actions the current sieve is allowed to perform.

Two additional private Sieve environment items have been added in MS 8.0.2.2. returns the number of accessible MIME levels in the current message, i.e. the MIME "depth" of the message. returns the maximum number of MIME parts found in any multipart in the message. <span id='Sieve_custom_environment_items'> Arbitrary, custom environment items may be set via the    mapping table or any of the  recipient   mapping tables using the   flag. The value of such a custom environment item may subsequently be tested in a Sieve script. For instance, the following  entry defines, for messages coming in  via the SMTP port from the   channel (the Internet), the custom environment item " ", giving it the value " " of the name the SMTP client claimed on the HELO/EHLO line: FROM_ACCESS TCP&#x7c;&#x2a;&#x7c;25&#x7c;&#x2a;&#x7c;SMTP/&#x2a;/&#x2a;&#x7c;MAIL&#x7c;tcp_local&#x7c;&#x2a;      $C$+Eheloname&#x7c;$2 A Sieve script may then test this custom " " environment item: require &#x5b;"environment","fileinto"&#x5d;; if environment :contains "heloname" "" { if environment "heloname" :is "Bogus Name" {fileinto "bogus"; } }
 * 1) First, check if heloname item is set:
 * 1) If heloname item IS set, then check its value:

See also:
 * ldap_autoreply_text_internal MTA Option
 * mtprioritiesallowed Option
 * FROM_ACCESS mapping table
 * Recipient access mapping tables
 * conditionalpassthrough Option
 * Sieve hierarchy
 * imexpire invoking spamfilter packages
 * Sieve supported extensions
 * Sieve language