Here is a one line diff to make bincimapd log each IMAP command
sent by the client. This was helpful in debugging my mail client.
Hope someone else finds it useful.
Again with the handmade diff, "-" are old lines, "+" are new lines:

bincimapd.cc:
150-: switch (o->process(*dep, request)) {
151-: case Operator::OK:
152-:   com << request.getTag() << " OK " << request.getName()
153-:       << " completed" << endl;
154+:  logger << "Request '" << request.getName() << "' succeeded."  << endl;
155-:   break;

You can just type 'make' in the src dir to regenerate a new bincimapd.
No need to repeat the top level config and make process.

Here is a sample of the log output when I converted an old mbox and
then accessed with Mozilla.

Dec 10 12:11:42 millhouse bincimap-up[343]: Client connected to Binc IMAP from ?
Dec 10 12:11:42 millhouse bincimapd[344]: User <john> entered authenticated mode.
Dec 10 12:11:42 millhouse bincimapd[344]: Request 'SELECT' succeeded.
Dec 10 12:11:42 millhouse bincimapd[344]: Request 'FETCH' succeeded.
Dec 10 12:12:13 millhouse last message repeated 48 times
Dec 10 12:13:14 millhouse last message repeated 123 times
Dec 10 12:13:53 millhouse last message repeated 90 times
Dec 10 12:15:55 millhouse bincimapd[344]: Request 'STORE' succeeded.
Dec 10 12:16:27 millhouse bincimapd[344]: Request 'STORE' succeeded.

                              ,,,
                             (oo)
  ----------------------o0Oo-(_)-oO0o-----------------------
  |    John F. Masinter      Total Business Computing Inc. |
  | Voice: 770-886-9100 x10         Fax: upon request      |
  | mailto:[EMAIL PROTECTED]        http://www.totalb.com    |
  |     P.O. Box 88584               Atlanta, GA 30356     |
  ------------------------ooO--Ooo--------------------------

"The spec said Windows-95 or better...so I installed Linux"



Reply via email to