cyr_expire: behaviour and "annotation"

tschloss at web.de tschloss at web.de
Sat Dec 17 08:50:47 EST 2005


Craig White schrieb:

>On Sat, 2005-12-17 at 12:11 +0100, tschloss at web.de wrote:
>
>>On Thu, 2005-12-15 at 16:55 +0100, tschloss at web.de wrote:
>>
>>>Hi,
>>>last night I lost 80% of my folder hierachie in a shared mailbox. I seems that it happened during the daily cyr_expire.
>>>
>>>Is it possible that cyr_expire did not only delete the messages but the containing folders/boxes? See log below.
>>>
>>>If this is not possible, I have to look for the "killer" somewhere else. If it is, I will have to find out why all these messages expired last night.
>>>
>>>Thanks in advance.
>>>Thomas
>>>tschloss at web.de
>>>
>>>Dec 14 03:57:37 linux master[3053]: process 27977 exited, status 0
>>>Dec 14 03:59:01 linux /usr/sbin/cron[27979]: (root) CMD ( rm -f /var/spool/cron/lastrun/cron.hourly)
>>>Dec 14 04:00:00 linux master[27980]: about to exec /usr/lib/cyrus/bin/cyr_expire
>>>Dec 14 04:00:00 linux master[27981]: about to exec /usr/lib/cyrus/bin/tls_prune
>>>Dec 14 04:00:00 linux cyr_expire[27980]: duplicate_prune: pruning back 3 days
>>>Dec 14 04:00:00 linux cyr_expire[27980]: mydelete: starting txn 2147484083
>>>Dec 14 04:00:00 linux cyr_expire[27980]: mydelete: committing txn 2147484083
>>
>>................
>>
>>>Dec 14 04:00:00 linux cyr_expire[27980]: mydelete: committing txn 2147484105
>>>Dec 14 04:00:00 linux cyr_expire[27980]: duplicate_prune: purged 22 out of 112 entries
>>>Dec 14 04:00:00 linux cyr_expire[27980]: expunged 0 out of 0 messages from 0 mailboxes
>>>Dec 14 04:00:00 linux master[3053]: process 27981 exited, status 0
>>>Dec 14 04:00:00 linux master[3053]: process 27980 exited, status 0
>>>Dec 14 04:05:29 linux master[28013]: about to exec /usr/lib/cyrus/bin/imapd
>>>______________________________________________________________
>>
>>----
>>what does your 'expire' command consist of?
>>
>>Craig
>>
>>----
>>Cyrus Home Page: http://asg.web.cmu.edu/cyrus
>>Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
>>List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>>
>>Craig, 
>>thanks fpr your reply. I was busy with trying to get the messages back from my backups and struggled with "recosntruct".
>>
>>Where can I see the actual parameters of the command issued (esp. -E nn)?
>>I have difficulties to understand the man page: 
>>it talks about an annotation (/vendor/cmu/cyrus-imapd/expire) to a mailbox. Where can I find these annotations (if present). I can find a Database "annotations.db", but have no idea how to look into it or manage it.
>>I have never configured something in this area. So another question is: Is cyr_expire primarily for duplicates or could it be possible, that there is a "time-to-live" for normal messages (which would be strange!!). 
>
>----
>clipping from 'cyrus.conf'
>
>  # this is only necessary if using duplicate delivery suppression,
>  # Sieve or NNTP
>  delprune      cmd="cyr_expire -E 3" at=0400
>
>clipping from 'man cyr_expire'
>
>  Cyr_expire  is used to expire messages and duplicate delivery database
>  entries.  The expiration of messages is controlled by the /ven-
>  dor/cmu/cyrus-imapd/expire mailbox annotation which specifies the age
>  (in days) of messages  in  the  given  mailbox  that  should  be
>  deleted.  Any duplicate delivery database entries which correspond to
>  the mailbox are also deleted at the same frequency.
>
>I haven't had any emails deleted on me so I am guessing that it is the
>duplicate delivery database entries.
>
>I am however doing some 'purging' of emails automatically via cyrus
>master (cyrus.conf)...
>
>  # prune root messages over 60 days old
>  purgebulk   cmd="ipurge -d 60 -f user.root" at=200
>
>  # purge SPAMBOX messages over 7 days old
>  purgebulk   cmd="ipurge -f -d  7 */SPAMBOX" at=230
>
>Craig
>
Thanks, I found the imap.d.conf -line in the meanwhile. It ist exactly the same as your example.
So does anybody have a hint on the second way to manage the time until deletion, the "annotation"-stuff?
Where do I find/manipulate the annotations and if it is the databse annotations.db how do I open/manage this DB?

Thx.
Thomas

PS: I don´t think that this was responsible for killing my 20 mailfolders. I didn´t find any hints that cyr_expire can
remove directories (sub-mailboxes completely from filesystem and mailboxes.db).
So I assume that it was a client error (the software, or even more plausible the user). I send another question about
how to read the binary log file.

______________________________________________________________________
XXL-Speicher, PC-Virenschutz, Spartarife & mehr: Nur im WEB.DE Club!		
Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130




More information about the Info-cyrus mailing list