imexpire

imexpire scans all user folders in the message store and marks all the messages that match the specified criteria as permanently deleted, or "expired."

The deleted messages will be expunged from the user mailbox when the user connects or disconnects from the server.

The actual data will be removed from the message store when impurge -a is run after the imexpire utility.

imexpire must be run on the message store server by root or by the message store owner.


Note - imexpire does not remove expired messages from the message store. It only marks those messages as "expired." You must run impurge -a after you run imexpire to reclaim the disk space. When imexpire is used with the -s option, it marks the "unseen" messages as "pending" instead of "expired." Once a message is marked as "pending", imexpire will not expire the message. You must run impurge -a to clear the "pending" flag.

Syntax

 
imexpire [-d date | -n num] [-i] [-l config_file_location] [-s] [-v]
 

The options for this command are:

-d date  

"Expires" all messages older than the date specified. date must be of the form yyyymmdd, where yyyy specifies the year, mm specifies the month, and dd specifies the day.  

-n num  

"Expires" all messages older than num days.  

-i  

Interactive mode. With this option, imexpire prompts once for confirmation before removing any messages.  

-l config_file_location  

Location of Message Access Services configuration file (ims.cnf). If the -l option is not specified, the default location (/etc/opt/SUNWmail/ims/) will be used.  

-s  

"Expires" only messages that have been "seen". The -s option must be run together with the -d option or the -n option.  

-v  

Verbose mode. Provides details of the imexpire operation.  


Examples

The following command "expires" all messages from the message store that are older than February 14, 1998:

 
% imexpire -d 19980214
 
% impurge -a
 




Copyright © 1999 Sun Microsystems, Inc. All Rights Reserved.