# HG changeset patch # User markus schnalke # Date 1291839458 10800 # Node ID bb3005ce0837325d473943c38f2d274b0fadadfd # Parent 84ea0b1fc8f84655f20998c6086e9c8ef57bfb18 reformating of code diff -r 84ea0b1fc8f8 -r bb3005ce0837 src/accept.c --- a/src/accept.c Tue Dec 07 19:21:44 2010 -0300 +++ b/src/accept.c Wed Dec 08 17:17:38 2010 -0300 @@ -367,23 +367,29 @@ for_string = g_strdup_printf(" for %s", addr_string(addr)); } - if (msg->received_host == NULL) { + if (!msg->received_host) { /* received locally */ - hdr = create_header(HEAD_RECEIVED, "Received: from %s by %s with %s (%s %s) id %s%s; %s\n", - passwd->pw_name, conf.host_name, prot_names[msg->received_prot], - PACKAGE, VERSION, msg->uid, for_string ? for_string : "", rec_timestamp()); + hdr = create_header(HEAD_RECEIVED, + "Received: from %s by %s with %s (%s %s) id %s%s; %s\n", + passwd->pw_name, conf.host_name, + prot_names[msg->received_prot], PACKAGE, VERSION, + 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, "Received: from %s (ident=%s) by %s with %s (%s %s) id %s%s; %s\n", - msg->received_host, msg->ident ? msg->ident : "unknown", conf.host_name, - prot_names[msg->received_prot], PACKAGE, VERSION, msg->uid, for_string ? for_string : "", - rec_timestamp()); + hdr = create_header(HEAD_RECEIVED, + "Received: from %s (ident=%s) by %s with %s (%s %s) id %s%s; %s\n", + msg->received_host, msg->ident ? msg->ident : "unknown", + 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 by %s with %s (%s %s) id %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()); + hdr = create_header(HEAD_RECEIVED, + "Received: from %s by %s with %s (%s %s) id %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 } header_fold(hdr);