ipurge error

Miro Dietiker, MD Systems miro.dietiker.maillist at md-systems.ch
Wed Feb 22 17:45:38 EST 2006


I try to reask you experts for the usage of the tool ipurge:

You may explain me the reason for broken ipurge?
Cyrus21 version: 2.1.18-1 (on debian sarge stable)

I simply need to delete mails via script..
Other suggestions?

Miro

> -----Ursprüngliche Nachricht-----
> Von: info-cyrus-bounces at lists.andrew.cmu.edu [mailto:info-cyrus-
> bounces at lists.andrew.cmu.edu] Im Auftrag von Miro Dietiker, MD Systems
> Gesendet: Freitag, 3. Februar 2006 09:38
> An: 'Kjetil Torgrim Homme'
> Cc: info-cyrus at lists.andrew.cmu.edu
> Betreff: AW: imapd & sieve: mail moved into date-name-folders
> 
> > Von: Kjetil Torgrim Homme [mailto:kjetilho at ifi.uio.no]
> Hi
> 
> > ipurge can do this, from our cyrus.conf:
> >
> >   purgespam     cmd="ipurge -X -d 14 -f user.%.spam" at=0200
> 
> Ipurge looks nice at its description. But it returns in any case to me
> the "help/usage" output, even if I enter the most simple params as
> described.
> 
> On my testmachine 'dev':
> dev:~# cyradm --user=cyrus localhost
> IMAP Password:
>               localhost> lm
> user/miro (\HasChildren)
> user/miro/SPAM (\HasNoChildren)
> user/miro/Test (\HasNoChildren)
> 
> dev:~# ipurge
> usage: ipurge [-f] [-s] [-C <alt_config>] [-x] [-X] [-i] {-d days | -b
> bytes|-k Kbytes|-m Mbytes}
>         [mboxpattern1 ... [mboxpatternN]]
>         there are no defaults and at least one of -d, -b, -k, -m
>         must be specified
>         if no mboxpattern is given ipurge works on all mailboxes
>          -x specifies an exact match for days or size
>          -f force also to delete mail below user.* and INBOX.*
>          -s skip over messages that are flagged.
>          -X use delivery time instead of date header for date matches.
>          -i invert match logic: -x means not equal, date is for newer,
> size is for smaller.
> 
> This is just a test machine, so I try:
> 
> dev:~# ipurge -f -d 0
> usage: ipurge [-f] [-s] [-C <alt_config>] [-x] [-X] [-i] {-d days | -b
> bytes|-k Kbytes|-m Mbytes}
> ...... and so on
> 
> dev:~# ipurge -f -d 0 user/miro/Test
> usage: ipurge [-f] [-s] [-C <alt_config>] [-x] [-X] [-i] {-d days | -b
> bytes|-k Kbytes|-m Mbytes}
> ...... and so on
> dev:~# ipurge -f -d 0 user.miro.SPAM
> usage: ipurge [-f] [-s] [-C <alt_config>] [-x] [-X] [-i] {-d days | -b
> bytes|-k Kbytes|-m Mbytes}
> ...... and so on
> 
> So all of these don't work.
> What's wrong here?
> 
> +-------------------------------+  +-------------------------------+
> | Miro Dietiker                 |  | MD Systems Miro Dietiker      |
> +-------------------------------+  +-------------------------------+
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Kjetil Torgrim Homme [mailto:kjetilho at ifi.uio.no]
> > Gesendet: Donnerstag, 2. Februar 2006 16:47
> > An: Miro Dietiker, MD Systems
> > Cc: info-cyrus at lists.andrew.cmu.edu
> > Betreff: Re: imapd & sieve: mail moved into date-name-folders
> >
> > On Wed, 2006-02-01 at 17:28 +0100, Miro Dietiker, MD Systems wrote:
> > > Is there a simple way to script the deletion of mails in this box
> older
> > > than 2month or so?
> >
> > ipurge can do this, from our cyrus.conf:
> >
> >   purgespam     cmd="ipurge -X -d 14 -f user.%.spam" at=0200
> >   purgetrash    cmd="ipurge -X -d 28 -f user.%.Trash" at=0230
> >
> > > Second: I would appreciate to have folders in this mailbox which
> > > represent a single day. As an option, this folder may be created
> moving
> > > "todays mails" with a cron job in this adhoc-created folder...
> > > First I took sieve trying to find a way to implement
> realtime-movement
> > > based on incoming-date to this autocreate-folder. As I see, sieve
is
> not
> > > capable doing that due to several restrictions!
> >
> > in Cyrus, fileinto a new folder will not create the folder
> automatically
> > unless you add the unofficial autosievefolder patch.  (the Sieve
> > standard is silent on this issue, so some implementations will
create
> > new folders automatically, while others won't.)
> >
> > to actually generate the correct folder name during delivery, you
> would
> > need the "variables" extension, and possibly the date-index
extension
> > (http://bgp.potaroo.net/ietf/idref/draft-freed-sieve-date-index/)
> > neither of which have been implemented in Cyrus.
> >
> > --
> > Kjetil T.
> >

+-------------------------------+  +-------------------------------+
| Miro Dietiker                 |  | MD Systems Miro Dietiker      |
+-------------------------------+  +-------------------------------+



More information about the Info-cyrus mailing list