imexpire doesn't work
Hello All,
I have created the store.expire as follows:
Rule1.regexp: 1
Rule1.messagedays: 1
Rule1.folderpattern: user/.*/INBOX
However, i can still see the messages in the INBOX
Can anyone lead me to the correct solution, knowing that store.expire is owned by the messaging server.
Moreover, how can i purge these mails at once, rather than waiting for 1 day?
Thanks,
Lewis
[434 byte] By [
Lewis_SUNa] at [2007-11-27 7:10:07]

# 1
Where did you place the file?
When are you looking?
\
Are you indeed looking to expire all messages after a day?
What is the actual goal you have? Perhaps I can offer you a better/faster way to do it.
For example, if you really want to remove all messages from a user, use mboxutil to delete the mailbox.Since the ldap entry is still there, the mailbox will be recrated automatically in the event the user logs in or a message arrives.
# 2
Hi,
Actually i am moving the mailboxes for more than a user to a new folder.. i did use the mboxutil , however as you know that the messages will stay in the 00 and so on folders, therefore i am using the imexpire to purge them and i need to purge them at once and not leave them in the 00 folder
i tried placing the file under /config and also /store/primary however nothing helped out...
Do you have any suggestions?
Thanks,
Lewis
# 3
Hi,
First I suggest you read up on the imexpire command in the Messaging Server Administrator Guide (http://docs.sun.com/app/docs/doc/819-2650/6n4u4dttr?a=view)
"To implement the automatic message removal policy defined in the previous section, you must set the imexpire rules. Rules are set by putting them into a store.expirerule file. An example of two global store.expirerule rules is shown below"
So the file you need is store.expirerule and _not_ store.expire
To test the rule/file you can run:
./imexpire -n -d -v 3
This will tell you which messages the imexpire will delete.
On your ultimate goal:
>> Actually i am moving the mailboxes for more than a user to a new folder.. i did use the >> mboxutil , however as you know that the messages will stay in the 00 and so on folders, >> therefore i am using the imexpire to purge them and i need to purge them at once and >> not leave them in the 00 folder
What is the problem with the messages remaining in the 00 folders?
What is the mboxutil command you are using to 'move' the folders?
Regards,
Shane.