changeset 362:9d49dffc3070

minor rework
author markus schnalke <meillo@marmaro.de>
date Wed, 14 Sep 2011 11:50:45 +0200 (2011-09-14)
parents 4916f9df5051
children 02bc0331e390
files src/accept.c
diffstat 1 files changed, 5 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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);