He all,
I'm migrating a big system from Courier to Dovecot and we have a custom analyzer logger system to Courier logs.
We have got the very similar specs on IMAP LOGIN log, but I can't get the Logout format.
Courier write like that:
... imapd: LOGOUT, user=luism.martinez, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=131, sent=632, time=0
¿Is there any Variables on imap_logout_format to get headers, body and time vars?
On Mon, 2010-10-18 at 19:05 +0200, Antonio Perez-Aranda wrote:
Courier write like that:
... imapd: LOGOUT, user=luism.martinez, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=131, sent=632, time=0
¿Is there any Variables on imap_logout_format to get headers, body and time vars?
What do they mean? Is headers/body the number of fetches or number of bytes fetched of headers/bodies?
Anyway, no, there's no imap_logout_format for now.
Umm, and ¿Is it possible to log FETCH actions without modifying the code?
Mail logger plugin can't let me set FETCH as event to log.
Then I could count the number of header/body retrieved.
2010/10/18 Timo Sirainen tss@iki.fi:
On Mon, 2010-10-18 at 19:05 +0200, Antonio Perez-Aranda wrote:
Courier write like that:
... imapd: LOGOUT, user=luism.martinez, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=131, sent=632, time=0
¿Is there any Variables on imap_logout_format to get headers, body and time vars?
What do they mean? Is headers/body the number of fetches or number of bytes fetched of headers/bodies?
Anyway, no, there's no imap_logout_format for now.
On 19.10.2010, at 9.01, Antonio Perez-Aranda wrote:
Umm, and ¿Is it possible to log FETCH actions without modifying the code?
Mail logger plugin can't let me set FETCH as event to log.
Then I could count the number of header/body retrieved.
You could write a plugin, but other than that you can't do it currently. http://dovecot.org/patches/2.0/stats-plugin.c could be helpful here, it logs about every command.
participants (2)
-
Antonio Perez-Aranda
-
Timo Sirainen