Got ipurge to work

by saikrishbe

ipurge is a tool used to delete messages in the IMAP mailbox based on age or size of the mail. I had to use ipurge tool, tried things provided from the answers i got from googling. But, it didn’t work.

The materials in the net indicated that it should work this way:

$ipurge -d 30 -f user.saikrishbe.Junk

this will delete all mails which are 30 days old from the subfolder “Junk” . But this didn’t work for me.. i had to additionally mention the config file (imapd.conf)

$ipurge -C <path to imapd.conf> -d 30 -f user.saikrishbe.Junk

NOTE: you can do all this only after becoming the cyrus user.