cannot expunge messages

Nicola Nye nicola at fastmailteam.com
Mon Nov 13 18:03:23 EST 2017


Hi Eugene,

Just to check: has the mail actually been deleted by the client?

cyr_expire is there (I believe) to clean up messages and folders
that have been flagged as deleted by the client but not yet
physically removed. It can't remove mail that is undeleted, no
matter how old it is.
https://www.cyrusimap.org/imap/reference/faqs/o-deleted-expired-expunged-purged.html[1]
Perhaps ipurge might be more what you need?
https://www.cyrusimap.org/imap/reference/manpages/systemcommands/ipurge.html
Cheers,

   Nicola


On Tue, Nov 14, 2017, at 04:41 AM, Eugene M. Zheganin wrote:
> Hi,
> 
> I'm using cyrus 2.5.11. I have abount hundred mailboxes, most of them> are used by users which still prefer POP3 over IMAP, but recently I
> noticed that I have non-deleted mail for almost a year in such
> mailboxes. I also have a roundcube web-interface configured to
> use IMAP,> so I took a brief look in one of such mailboxes and in contains
> only one> letter (obviously not fetched by the user at the time being).
> 
> I have in cyrus.conf:
> 
> EVENTS {
>   checkpoint cmd="ctl_cyrusdb -c" period=30
> 
>   delprune cmd="cyr_expire -E 3" at=0400
> 
>   deleteprune cmd="cyr_expire -E 4 -D 5" at=0430
>   expungeprune cmd="cyr_expire -E 4 -X 5" at=0445
> 
>   tlsprune cmd="tls_prune" at=0400
> }
> 
> 
> Liiks like 'cyr_expire -E 4 -X 5' should expunge all the old mail, but> clearly this isn't happening. Why ? I'vetried to launch it by
> hand under> the cyrus user - nothing happens. I've also set the 'expire'
> property to> 5 for all of the mailboxes:
> 
> # cyradm --user cyrus localhost
> Password:
> localhost> info
> {Server Wide}
>   private:
>     admin: NIL
>     comment: NIL
>     expire: NIL
>     squat: NIL
>   shared:
>     admin: NIL
>     comment: NIL
>     motd: NIL
>     expire: 5
>     freespace: 97686204
>     most: 97686204;153245190
>     total: 97686204;153245190
>     shutdown: NIL
>     squat: NIL
> localhost>
> 
> 
> This is what's happening when I launch this manually:
> 
> 
> [cyrus at gw0:~]> cyr_expire -vvv -E 3 -D 3 -X3
> Expunging deleted messages in mailboxes older than 3.00 days
> 
> Expired 0 and expunged 6386 out of 1915882 messages from 316 mailboxes> Removing deleted mailboxes older than 3.00 days
> Removed 0 deleted mailboxes
> 
> 
> This doesn't help either (by the way: what is a private and shared
> mailbox ? looks like cyrus documentation isn't much better than
> 15 years> ago).
> 
> I'm starting to think that may be I should delete these messages
> by hand.> 
> Thanks.
> 
> Eugene.
> 
> ----
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Links:

  1. https://www.cyrusimap.org/dev/imap/reference/faqs/o-deleted-expired-expunged-purged.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20171114/ba143cd9/attachment.html>


More information about the Info-cyrus mailing list