hi all, is there a way to somehow log the size of an IMAP session with Dovecot? With POP3 there is this pop3 format string I can set in dovecot.conf, but I don't see an equivalent for IMAP. If so, are there any plans to add this functionality? thanks, armijn -- --------------------------------------------------------------------------- armijn at uulug.nl | http://www.uulug.nl/ | UULug: Utrecht Linux Users Group ---------------------------------------------------------------------------
On Tue, 2007-05-01 at 16:57 +0200, Armijn Hemel wrote:> hi all, > > is there a way to somehow log the size of an IMAP session with Dovecot? > With POP3 there is this pop3 format string I can set in dovecot.conf, > but I don't see an equivalent for IMAP. > > If so, are there any plans to add this functionality?IMAP has multiple mailboxes, so I don't see how this could work in any useful way. It could of course log just INBOX's size, but since the client wouldn't necessarily even open the INBOX that would be just extra work for nothing but a log line. What do you need it for anyway? -------------- 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/20070511/f4569b23/attachment.bin>
Hi Timo,> > is there a way to somehow log the size of an IMAP session with Dovecot? > > With POP3 there is this pop3 format string I can set in dovecot.conf, > > but I don't see an equivalent for IMAP. > > > > If so, are there any plans to add this functionality? > > IMAP has multiple mailboxes, so I don't see how this could work in any > useful way. It could of course log just INBOX's size, but since the > client wouldn't necessarily even open the INBOX that would be just extra > work for nothing but a log line. > > What do you need it for anyway?I work for a small hosting company. We host websites and people's mail on a shared hosting server. Mail is accessed through POP3 or IMAP. I need to be able to measure the IMAP size for accounting, since people pay for the bandwidth and I need to be able to justify it in my reports :-) It can already be done with POP3, where there is a "size" value: dovecot: May 07 09:11:54 Info: POP3(xxxxx at xxxxxxx.xx): Disconnected: Logged out top=0/0, retr=2/29469, del=2/2, size=29433 armijn -- ------------------------------------------------------------------------- armijn at uulug.nl | http://www.uulug.nl/ | UULug: Utrecht Linux Users Group -------------------------------------------------------------------------