Hello, I have searched but have not found any information on logging imap actions. I want to log when someone uses imap to delete, move, copy, etc. This would greatly help me when someone deletes an email and asks where it went. I get this fairly often from a few users. Any help would be greatly appreciated. Thank you, Michael A. Painter Jr. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://dovecot.org/pipermail/dovecot/attachments/20070116/0ba17a8a/attachment-0002.html>
On Tue, Jan 16, 2007 at 07:35:47PM +0000, Michael A. Painter Jr. wrote:> Hello, > I have searched but have not found any information on logging imap > actions. I want to log when someone uses imap to delete, move, copy, etc. > This would greatly help me when someone deletes an email and asks where it > went. I get this fairly often from a few users. Any help would be greatly > appreciated.I second that! :)> Thank you, > Michael A. Painter Jr.-- Steven F. Siirila Office: Lind Hall, Room 130B Internet Services E-mail: sfs at umn.edu Office of Information Technology Voice: (612) 626-0244 University of Minnesota Fax: (612) 626-7593
On January 16, 2007 7:35:47 PM +0000 "Michael A. Painter Jr." <michaelapainter at gmail.com> wrote:> Hello, > I have searched but have not found any information on logging imap > actions. I want to log when someone uses imap to delete, move, copy, etc. > This would greatly help me when someone deletes an email and asks where it > went. I get this fairly often from a few users. Any help would be > greatly > appreciated.Have you tried lazy expunge?
On Tue, 2007-01-16 at 19:35 +0000, Michael A. Painter Jr. wrote:> Hello, > I have searched but have not found any information on logging > imap actions. I want to log when someone uses imap to delete, move, > copy, etc. This would greatly help me when someone deletes an email > and asks where it went. I get this fairly often from a few users. > Any help would be greatly appreciated.Well, since people have been asking this forever, I went and implemented a mail_log plugin which is now in CVS and in 1.0.rc18 also. I'm not sure what kinds of things everyone wants to log, but here's a start at least. Suggestions for how to improve it and what should be optional is welcome. A typical move-to-trash + expunge is logged like this: imap(tss): Info: copy -> Trash: uid=387094, msgid=<1054290290.19156.426.camel at hurina> imap(tss): Info: deleted: uid=387094, msgid=<1054290290.19156.426.camel at hurina> imap(tss): Info: expunged: uid=387094, msgid=<1054290290.19156.426.camel at hurina> It also logs mailbox deletions: imap(tss): Info: Mailbox deleted: blah It doesn't log if mails are deleted by something else than Dovecot. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070118/255714a9/attachment.bin>