> the level at which the imap commands are being logged is set hard-coded
> (sorry) in imap4.c. Just below the #include's you'll find a line saying
> #define COMMAND_SHOW_LEVEL TRACE_ERROR
>
> If you change the value of TRACE_ERROR to TRACE_DEBUG (and rebuild),
> the imap commands will no longer show up in the logs when using
> trace_level 2 in dbmail.conf.

okay, I have changed and compiled the code:

imap4.c
#define COMMAND_SHOW_LEVEL TRACE_DEBUG

debug.c
int TRACE_TO_SYSLOG = 0; /* default: yes */
int TRACE_VERBOSE = 0;   /* default: no */
int TRACE_LEVEL = 0;     /* default: error operations */

dbmail.conf
TRACE_LEVEL=0

and below is a cut of log. how to fix it?

Mar 19 14:38:41 sumy dbmail/pop3d[75737]: pop3(): user robin1 logged in
[messages=0, octets=0]
Mar 19 14:38:41 sumy dbmail/pop3d[75733]: pop3(): user robin logged in
[messages=0, octets=0]
Mar 19 14:38:44 sumy dbmail/pop3d[75733]: pop3_handle_connection(): user
robin logging out [messages=0, octets=0]
Mar 19 14:38:44 sumy dbmail/pop3d[75737]: pop3_handle_connection(): user
robin1 logging out [messages=0, octets=0]
Mar 19 14:39:14 sumy dbmail/imap4d[75729]: PerformChildTask(): incoming
connection from [195.177.124.62]
Mar 19 14:39:14 sumy dbmail/imap4d[75729]: _ic_login(): user (id:1, name
igor) tries login^M
Mar 19 14:39:14 sumy dbmail/imap4d[75729]: _ic_login(): user (id 1, name
igor) login accepted @ 2003-03-19 14:39:14^M
Mar 19 14:39:18 sumy dbmail/imap4d[75729]: _ic_logout(): user (id:1)
logging out @ [2003-03-19 14:39:18]^M
Mar 19 14:39:18 sumy dbmail/imap4d[75729]: IMAPClientHandler(): Closing
connection for client from IP [195.177.124.62]
Mar 19 14:39:19 sumy dbmail/imap4d[75727]: PerformChildTask(): incoming
connection from [195.177.124.62]
Mar 19 14:39:19 sumy dbmail/imap4d[75727]: _ic_login(): user (id:357, name
yana) tries login^M
Mar 19 14:39:19 sumy dbmail/imap4d[75727]: _ic_login(): user (id 357, name
yana) login accepted @ 2003-03-19 14:39:19^M
Mar 19 14:39:22 sumy dbmail/imap4d[75727]: _ic_logout(): user (id:357)
logging out @ [2003-03-19 14:39:22]^M
Mar 19 14:39:22 sumy dbmail/imap4d[75727]: IMAPClientHandler(): Closing
connection for client from

Reply via email to