Hi! I want to know the number of messages deleted when the mail user connect by IMAP protocol. When the user uses POP, we got this directive in the configuration file: pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s This is the log: dovecot: Feb 09 02:31:02 Info: pop3-login: Login: user=<xxxxxx>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured dovecot: Feb 09 02:31:02 Info: POP3(xxxxx): Disconnected: Logged out top=2/3756, retr=0/0, del=0/7, size=17392 If you look at "del=0/7" we know that user deleted 0 messages. When the user log in the account by IMAP protocol, appears the following: dovecot: Feb 09 02:02:36 Info: imap-login: Login: user=<xxxxx>, method=PLAIN, rip=82.xxx.xxx.xxx, lip=82.xxx.xxx.xxx dovecot: Feb 09 02:03:02 Info: IMAP(xxxxx): Disconnected: Logged out And we don??t know the number of messages deleted, the question is: there is any directive like "pop3_logout_format" applied to IMAP?? Something like "imap_logout_format" ?? Dovecot version: 1.0.rc17.
On Fri, 2007-02-09 at 02:41 +0100, Hola wrote:> And we don??t know the number of messages deleted, the question is: > there is > any directive like "pop3_logout_format" applied to IMAP?? Something > like > "imap_logout_format" ??No, this is mostly because with POP3 it's very simple to give such a number. With IMAP then: - There are more than one mailbox. Should it count messages in all mailboxes? - IMAP has two-phase deletion. First the messages are marked as deleted, then they're expunged. Should it count expunges only? (I'd guess so) - Some IMAP clients "delete" messages by moving them to Trash mailbox. Are those counted as deletions? - IMAP supports multiple connections, and many clients use them. If another session expunges messages and our session sees those expunges, should they be counted? I think there are too many problems to give any kind of useful counters. If you just want it to give somewhat unrealiable counters, I guess that could be done somewhat easily by a plugin. Anyway, this is a low priority for me. -------------- 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/20070214/a6261d11/attachment.bin>