How to Expire Messages Based on Received Date and Other Message Header

(Doc ID 1338172.1)

Last updated on NOVEMBER 15, 2017

Applies to:

Oracle Communications Messaging Server - Version 7.0.0 and later
Information in this document applies to any platform.

Goal

The imexpire command supports the use of the sieve filtering language to create complex scripts that can be used to expire messages based on criteria that standard imexpire rules cannot accomplish.

This document describes how to create an expiration rule using the Sieve filtering language to expire messages based on the Received: header AND another header within a single expire rule.

The expire rule syntax supports multiple selection criteria without using a Sieve filter, but the criteria is evaluated in a logical OR fashion.  If any criterion matches, the rule matches and the operation is performed.  Enhancement Request 12236754 asks for an AND operation to be added.  This article provides a workaround using a Sieve filter.

Note: you should create your rule file with a test file name and test it before renaming it to the production name.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms