imapd logging for mail deletion/creation

Scott Adkins adkinss at
Tue Sep 13 10:43:44 EDT 2005

At first glance, it looks pretty good.  We are doing something very similar
in our environment.  We log deliveries of e-mails, but not deletions or
movement of e-mails between folders.  What we were particularly interested
in were the deletion/creation/renaming of mailboxes, which is the extra
logging code we added, similar to the patch you showed.  We also do the
same for ACL creates/changes.  Both sets of operations operate on the
mailboxes.db files and are slower operations in general (locking, etc),
so we wanted to monitor the time it took to complete the operations, and
we wanted to verify that when we upgraded to the new version (the one we
are running now), the time would decrease substantially as a result (which
it did!).


--On Tuesday, September 13, 2005 11:50 AM +0200 Bernhard Reiter <bernhard at> wrote:

> It seems we are in a better need of logging
> so answer questions which client or MTA has created or deleted specific emails.
> More details can be found here:
> Out of time pressure we did not find something good
> and Bernhard Herzog created a quick hack (also linked from issue928 above).
> I am attaching it here for convenience.
> Warning: This is experimental,
> we do not know if it actually logs everything.
> Does it look okay for the purpose?
> Were we missing a method to answer the question without it?
> What would be the right way of implementing such logging?
> Any hints appreciated.
> 	Bernhard

      Scott W. Adkins      
   UNIX Systems Engineer                  mailto:adkinss at
        ICQ 7626282                 Work (740)593-9478 Fax (740)593-1944
     PGP Public Key available at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 231 bytes
Desc: not available
Url :

More information about the Cyrus-devel mailing list