Ok, the history of this problem is listed below, but now that I have a good test lab up and working... I thought I would let everyone know what I have found.
The problem is that ipurge doesn't seem to work when I specify a mboxpattern, but if I don't specify a mboxpattern and run the script it works flawlessly. ./ipurge -f -d 1 (this works but deletes mail from all folders) ./ipurge -f -d 1 user/%/mail/Trash (doesn't work) ./ipurge -f -d 1 user/*/mail/Trash (doesn't work) ./ipurge -f -d 1 user/telsey/mail/[EMAIL PROTECTED] (doesn't work) Has anyone else run into a problem with ipurge when specifying a mboxpattern? I have listed a sample of what ipurge returns when ./ipurge -f -d 1 is executed. [EMAIL PROTECTED] bin]$ ./ipurge -f -d 1 Working on user/[EMAIL PROTECTED] total messages 7 total bytes 15896 Deleted messages 0 Deleted bytes 0 Remaining messages 7 Remaining bytes 15896 Working on user/telsey/mail/[EMAIL PROTECTED] total messages 0 total bytes 0 Deleted messages 0 Deleted bytes 0 Remaining messages 0 Remaining bytes 0 Working on user/telsey/mail/[EMAIL PROTECTED] total messages 4 total bytes 2208 Deleted messages 0 Deleted bytes 0 Remaining messages 4 Remaining bytes 2208 Working on user/telsey/mail/[EMAIL PROTECTED] total messages 0 total bytes 0 Deleted messages 0 Deleted bytes 0 Remaining messages 0 Remaining bytes 0 >> >> >> [EMAIL PROTECTED] wrote: >> >>>>[EMAIL PROTECTED] wrote: >>>> >>>> >>>>>I know this question has been asked by others, but I was unable to >>>>> find a solution in my research. The problem I am having is with >>>>> ipurge, and when I execute the command it executes, doesn't return >>>>> an error, and doesn't remove the mail. >>>>> >>>>>We are running cyrus 2.2.1 beta, and we are using virtual domains, >>>>> and the unixhierchysep instead of the standard dot (i.e. >>>>> user/<useracct> instead of user.<useracct>). >>>>> >>>>>I am attempting to removed old mail from two folders with the >>>>>following commands. >>>>> >>>>>ipurge -f -d 3 user/*/mail/Trash >>>>>ipurge -f -d 7 user/*/mail/JunkMail >>>>> >>>>>My understanding is that the * would include all user accounts, and >>>>> could be changed to something like [EMAIL PROTECTED] (Our mail >>>>> accounts contain the name and domain). >>>> >>>>No, the domain is always appended to the end of the mailboxname. >>>> Try: >>>> >>>>ipurge -f -d 3 user/%/mail/[EMAIL PROTECTED] >>>> >>>>-- >>>>Kenneth Murchison Oceana Matrix Ltd. >>>>Software Engineer 21 Princeton Place >>>>716-662-8973 x26 Orchard Park, NY 14127 >>>>--PGP Public Key-- http://www.oceana.com/~ken/ksm.pgp >>> >>> >>> so if I were going to run it against all accounts, I would use a "%" >>> instead of an "*"? Ok, I will give it a try. >> >> * matches everything, including the hierarchy separator. % doesn't >> match the separator, so you will only get >> user/telsey/mail/[EMAIL PROTECTED] and not >> user/telsey/foo/bar/mail/[EMAIL PROTECTED] >>> >>> For testing on an individual account, would the following work for a >>> user with an account like [EMAIL PROTECTED] >>> >>> ipurge -f -d 3 user/telsey/mail/[EMAIL PROTECTED] >> >> Yes. >> >>> >>> Thanks for your help. I just want to be extremely sure that I don't >>> fubar the syntax and end up deleting mail that I had not intended to >>> remove. >>> >> -- >> Kenneth Murchison Oceana Matrix Ltd. >> Software Engineer 21 Princeton Place >> 716-662-8973 x26 Orchard Park, NY 14127 >> --PGP Public Key-- http://www.oceana.com/~ken/ksm.pgp > > > Ok, I tried the individual ipurge command above (ipurge -f -d 3 > user/telsey/mail/[EMAIL PROTECTED]), but it did not remove anything. It > executed and imediately went back to the prompt with no error or > anything else. I definately have old items in my Trash. > > I am executing the command from the command line as the cyrus account. > > su - cyrus > cd /usr/cyrus/bin > ./ipurge -f -d 1 user/telsey/mail/[EMAIL PROTECTED] > > Does ipurge log any information anywhere? Is there an updated version > of the program? I'm ready, and willing to try anything.