# HG changeset patch # User markus schnalke # Date 1315993845 -7200 # Node ID 9d49dffc3070e576e3103e58fe51d82cee306b85 # Parent 4916f9df505193d59f7473fba0dfdd01775527d2 minor rework diff -r 4916f9df5051 -r 9d49dffc3070 src/accept.c --- a/src/accept.c Sun Sep 04 17:43:09 2011 +0200 +++ b/src/accept.c Wed Sep 14 11:50:45 2011 +0200 @@ -377,21 +377,18 @@ msg->uid, for_string ? for_string : "", rec_timestamp()); } else { /* received from remote */ -#ifdef ENABLE_IDENT DEBUG(5) debugf("adding 'Received:' header (5)\n"); hdr = create_header(HEAD_RECEIVED, +#ifdef ENABLE_IDENT "Received: from %s (ident=%s)\n\tby %s with %s (%s %s)\n\tid %s%s; %s\n", msg->received_host, msg->ident ? msg->ident : "unknown", +#else + "Received: from %s\n\tby %s with %s (%s %s)\n\tid %s%s; %s\n", + msg->received_host, +#endif conf.host_name, prot_names[msg->received_prot], PACKAGE, VERSION, msg->uid, for_string ? for_string : "", rec_timestamp()); -#else - hdr = create_header(HEAD_RECEIVED, - "Received: from %s\n\tby %s with %s (%s %s)\n\tid %s%s; %s\n", - msg->received_host, conf.host_name, - prot_names[msg->received_prot], PACKAGE, VERSION, - msg->uid, for_string ? for_string : "", rec_timestamp()); -#endif } msg->hdr_list = g_list_prepend(msg->hdr_list, hdr);