[Dovecot] Log imap commands

forumer at smartmobili.com forumer at smartmobili.com
Wed Jan 11 16:11:12 EET 2012


Hi,

I am trying to optimize an imap library and I am comparing with some 
existing webmail, for instance
from roundcube I can log the imap commands with the following format :

[11-Jan-2012 14:22:55 +0100]: [DBD1] S: * OK [CAPABILITY IMAP4rev1 
LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN 
AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5] Dovecot ready.
[11-Jan-2012 14:22:55 +0100]: [DBD1] C: A0001 ID ("name" "Roundcube 
Webmail" "version" "0.6" "php" "5.3.5-1ubuntu7.4" "os" "Linux" "command" 
"/")
[11-Jan-2012 14:22:55 +0100]: [DBD1] S: * ID NIL
[11-Jan-2012 14:22:55 +0100]: [DBD1] S: A0001 OK ID completed.
[11-Jan-2012 14:22:55 +0100]: [DBD1] C: A0002 AUTHENTICATE CRAM-MD5
[11-Jan-2012 14:22:55 +0100]: [DBD1] S: + 
RDM1MTE1NjkxOTQzODE4NDEuMTMyNjI4ODE3NUBzZC0zMDYzNT4=
[11-Jan-2012 14:22:55 +0100]: [DBD1] C: 
d2ViZ3Vlc3RAc21hcnRtb2JpbGkuY29tIDczODMxNjUzZmVlYzdjNDVlNzRkYTg1YjIwMjk2NWM0
[11-Jan-2012 14:22:55 +0100]: [DBD1] S: A0002 OK [CAPABILITY IMAP4rev1 
LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY 
THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE 
UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT 
SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS FUZZY] Logged in
[11-Jan-2012 14:22:55 +0100]: [DBD1] C: A0003 NAMESPACE
[11-Jan-2012 14:22:55 +0100]: [DBD1] S: * NAMESPACE (("" ".")) NIL NIL
[11-Jan-2012 14:22:55 +0100]: [DBD1] S: A0003 OK Namespace completed.
[11-Jan-2012 14:22:55 +0100]: [DBD1] C: A0004 LOGOUT
[11-Jan-2012 14:22:55 +0100]: [DBD1] S: * BYE Logging out
...

And now I would like to do the same from my imap library so I have 
started wireshark but it's a bit messy and difficult to compare.
I was wondering if dovecot allows to log imap communications ?

Thanks




More information about the dovecot mailing list