Re: Deleting messages marked for deletion older than X days

2008-08-19 Thread Adam Tauno Williams
On Tue, 2008-08-19 at 10:05 +1000, Bron Gondwana wrote: On Mon, Aug 18, 2008 at 05:09:53PM -0500, Kenneth Marshall wrote: In the manual page, the definition of the '-X' option seems to do what you want: -X expunge-days Expunge previously deleted messages older than

Re: Deleting messages marked for deletion older than X days

2008-08-19 Thread Gerard Beekmans
Wesley, I looked at ipurge but I find it also happily deletes messages that weren't marked for deletion. It appears to delete everything older than X days, regardless of that \Deleted flag mentioned in another reply. Gerard Beekmans IT Manager Achilles Media Tel: 403-678-1216 ext. 102 Email:

Re: Deleting messages marked for deletion older than X days

2008-08-19 Thread Gerard Beekmans
Hi Bron, Yes, it sounds like that's what I'm looking for: running expunge periodically. Now there's one slight problem here: I can't just run expunge as it is. I have users who periodically need to undelete messages. I'd like expunge to only act on messages older than X days, giving people

Deleting messages marked for deletion older than X days

2008-08-18 Thread Gerard Beekmans
Hi, I am looking for a way to run a daily script on the Cyrus IMAP server that processes every user's mail folders and deletes every message marked for deletion older than X days. I realize the proper way to do this is client-side and have the client program purge/expunge the mailboxes

Re: Deleting messages marked for deletion older than X days

2008-08-18 Thread Kenneth Marshall
I think that the cyr_expire command may be what you are searching for. Ken On Mon, Aug 18, 2008 at 03:35:20PM -0600, Gerard Beekmans wrote: Hi, I am looking for a way to run a daily script on the Cyrus IMAP server that processes every user's mail folders and deletes every message marked

Re: Deleting messages marked for deletion older than X days

2008-08-18 Thread Gerard Beekmans
Hi Ken, From the description it seems like cyr_expire will apply to every email in a mailbox. I don't want to delete any regular emails other than the ones already marked for deletion by an email client who is lacking a decent purge feature. Gerard Beekmans IT Manager Achilles Media Tel:

Re: Deleting messages marked for deletion older than X days

2008-08-18 Thread Kenneth Marshall
In the manual page, the definition of the '-X' option seems to do what you want: -X expunge-days Expunge previously deleted messages older than expunge-days (when using the delayed expunge mode). The default is 0 (zero) days, which will expunge

Re: Deleting messages marked for deletion older than X days

2008-08-18 Thread Gerard Beekmans
I'll do some more checking then. My cyr_expire version doesn't even have the -X option (I'm testing this on a system that has cyrus imap 2.2.13 as its recent version). Gerard Beekmans IT Manager Achilles Media Tel: 403-678-1216 ext. 102 Email: [EMAIL PROTECTED] Kenneth Marshall wrote: In

Re: Deleting messages marked for deletion older than X days

2008-08-18 Thread Kenneth Marshall
It must be a 2.3 option, we are running 2.3.10+ here. Ken On Mon, Aug 18, 2008 at 04:21:29PM -0600, Gerard Beekmans wrote: I'll do some more checking then. My cyr_expire version doesn't even have the -X option (I'm testing this on a system that has cyrus imap 2.2.13 as its recent version).

Re: Deleting messages marked for deletion older than X days

2008-08-18 Thread Wesley Craig
cyr_expire -D and -X deal with delayed delete expunge, respectively. Neither will address message that the MUA hasn't already deleted (in the case of folders) or expunged (in the case of messages). The tool that is closest to the desired functionality is ipurge. In order for ipurge to

Re: Deleting messages marked for deletion older than X days

2008-08-18 Thread Bron Gondwana
On Mon, Aug 18, 2008 at 05:09:53PM -0500, Kenneth Marshall wrote: In the manual page, the definition of the '-X' option seems to do what you want: -X expunge-days Expunge previously deleted messages older than expunge-days (when using the delayed expunge