MailEnable delete old mails

MailEnable provides a command line utility to purge messages from the MailEnable message store. The utility will purge all postmaster, badmail, Inbox or Deleted Items messages that exceed the specified age. It can be scheduled as a batch job using the Windows Task Scheduler if needed.

Parameters

POSTOFFICE|ALL = Apply to a single postoffice or to all post offices

DAYS = The minimum age of messages (in days).

SWITCHES = See following section (switches are delimited by a plus)

UNREAD = Do not purge unread messages

Switches: (delimited by a plus character)

POSTMASTER = Clean the Inbox of Postmaster Mailboxes

INBOX = Clean the Inbox of all Mailboxes

DELETED = Clean the Deleted Items Folder of all Mailboxes

SENT = Clean the Sent Items Folder of all Mailboxes

JUNK = Clean the Junk E-mail Folder of all Mailboxes

BADMAIL = Clean the System BadMail Folder

REPORT = Reports on matching deletions for all settings – does not delete files

Note: Multiple switches can be used if delimited with a + character.

e.g.

To delete all mails that are 200 days old

Following command will delete all 200 days old mails

mepurge

You can download mepurge from

http://www.mailenable.com/utilities/addons

http://www.mailenable.com/utilities/addons/MEPURGE.ZIP

MEPurge {days old} POSTMASTER|MAILBOX|BADMAIL

MEPurge 200 INBOX+DELETED+SENT UNREAD

See MailEnable

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *