ipurge question

Alain Spineux aspineux at gmail.com
Mon Jul 21 17:07:31 EDT 2008


On Mon, Jul 21, 2008 at 2:31 PM,  <dino.swanwick at custserv.com> wrote:
> Hello,
>
> I'm am trying to use the ipurge command to delete messages and have a
> question.  Here is the directory structure and files:
>
>   /var/spool/imap/d/user/john
>         Deleted Items           07/19/2008      9:21:37 PM
> rwx------       cyrus
>         Drafts                  07/19/2008      9:21:37 PM
> rwx------       cyrus
>         MACS                    07/19/2008      9:21:37 PM
> rwx------       cyrus
>         Sent Items              07/19/2008      9:21:37 PM
> rwx------       cyrus
>         1.              13,646  07/09/2008      5:09:00 PM
> rw-------       cyrus
>         2.              10,007  07/10/2008      10:18:01 AM
> rw-------       cyrus
>         cyrus.cache     1,796   07/18/2008      3:49:49 PM
> rw-------       cyrus
>         cyrus.header    170     07/18/2008      5:04:49 PM
> rw-------       cyrus
>         cyrus.index     136     07/18/2008      3:49:49 PM
> rw-------       cyrus
>         cyrus.squat     17,023  07/18/2008      3:49:49 PM
> rw-------       cyrus
>
> How can I delete the items in "/var/spool/imap/d/user/john"  (i.e. item "1."
> and "2.") without deleting the items in "/var/spool/imap/d/user/john/MACS"?

Dont know how with ipurge, bu you could try using the "expire"
attribute (man cyradm)
and then run cyr_expire

>
> I tried this command ==> su cyrus -c "/bin/ipurge -d1 user/dino"    ===> But
> nothing is deleted.

You dont use -f here, then it delete only shared folder
>
> When I try this one ==> su cyrus -c "/opt/insight/bin/ipurge -d1 -f
> user/dino"    ===> It deletes all messages in all directories in
> "/var/spool/imap/d/user/john"

-d1 , one day old
>
> What am I doing wrong?
>
> Thanks!
>
> ----
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>



-- 
Alain Spineux
aspineux gmail com
May the sources be with you


More information about the Info-cyrus mailing list