[tpop3d-discuss] strange log entry in maillog?

Chris Lightfoot chris at ex-parrot.com
Fri, 29 Jun 2001 23:59:58 +0100


On Fri, Jun 29, 2001 at 03:07:56PM +0200, Patrick Das wrote:
> 
> Hi,
> 
> I'm installing tpop3d v1.3.3 and found a strange thing,
> which did not occur in the logs on my test server.
> 
> I get some 'strange' log entries can someone tell me what they mean?
> (I'm pointing at the UIDL lines with the hash thing)

    [...]
> Jun 29 14:59:28 piglet tpop3d[4451]: UIDL 1 (hash = Î^D²â?`^H7xë^^@d|W)
    [...]

> The pop session itself just works fine.

My bad. With verbose logging on, one of the things which
the server will print is the unique ID of a message which
it sends to the client. For Berkeley mailspools, this is
the MD5 checksum of the message; for maildir, it is a
sequence number. In either case, the UID is represented as
a 16-byte buffer.

The code prints this out verbatim (with %s in sprintf),
which is obviously wrong. I will fix this for the next
release; in the intervening period, please turn off
verbose logging, or replace line 379 of pop3.c with:

    print_log(LOG_INFO, "UIDL %d (hash = %s)", 1 + msg_num, hexhash(I->hash));

Apologies for this SNAFU.

-- 
Chris Lightfoot -- www.ex-parrot.com/~chris/
 ``I have a demonstration...  but we'll leave it to the end because
   I can't really carry on after it, as you will see.''
 (Physics lecture, on nuclear weapons)