My Oracle Support Banner

How to Expire Messages Based on Received Date and Other Message Header ? (Doc ID 1338172.1)

Last updated on APRIL 20, 2021

Applies to:

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


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.


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.