Dear Developers! We are using postfix as an MTA for a long time ago at sevaral places.
We would like if the attached patch(es) gets applied to the mainline so we didn't need to apply it to the source and build a new .deb +package every time a new version came out. The purpose of the pacth is to put more information to the syslog at the 'cleanup' phase of the letter. It is necessary for us because +we process the syslog in a special way. Best Regards, Gabor VARADI
diff -ruN postfix-2.7.1.old/src/cleanup/cleanup_message.c postfix-2.7.1/src/cleanup/cleanup_message.c --- postfix-2.7.1.old/src/cleanup/cleanup_message.c 2009-04-07 21:57:53.000000000 +0200 +++ postfix-2.7.1/src/cleanup/cleanup_message.c 2011-07-26 10:30:55.000000000 +0200 @@ -254,7 +254,7 @@ if ((attr = nvtable_find(state->attr, MAIL_ATTR_LOG_ORIGIN)) == 0) attr = "unknown"; - vstring_sprintf(state->temp1, "%s: %s: %s %.200s from %s;", + vstring_sprintf(state->temp1, "%s: %s: %s %.1024s from %s;", state->queue_id, action, class, content, attr); if (state->sender) vstring_sprintf_append(state->temp1, " from=<%s>", state->sender); @@ -463,7 +463,7 @@ const char *map_class; if (msg_verbose) - msg_info("%s: '%.200s'", myname, vstring_str(header_buf)); + msg_info("%s: '%.1024s'", myname, vstring_str(header_buf)); /* * Crude header filtering. This stops malware that isn't sophisticated diff -ruN postfix-2.7.1.old/src/global/header_body_checks.c postfix-2.7.1/src/global/header_body_checks.c --- postfix-2.7.1.old/src/global/header_body_checks.c 2008-01-09 15:04:37.000000000 +0100 +++ postfix-2.7.1/src/global/header_body_checks.c 2011-07-26 10:31:35.000000000 +0200 @@ -441,10 +441,10 @@ const HBC_TEST_CONTEXT *dp = (HBC_TEST_CONTEXT *) context; if (*text) { - msg_info("%s: %s: %s %.200s: %s", + msg_info("%s: %s: %s %.1024s: %s", dp->queueid, action, where, content, text); } else { - msg_info("%s: %s: %s %.200s", + msg_info("%s: %s: %s %.1024s", dp->queueid, action, where, content); } }
diff -ruN postfix-2.8.3.old/src/cleanup/cleanup_message.c postfix-2.8.3/src/cleanup/cleanup_message.c --- postfix-2.8.3.old/src/cleanup/cleanup_message.c 2010-07-27 22:34:20.000000000 +0200 +++ postfix-2.8.3/src/cleanup/cleanup_message.c 2011-07-26 10:34:11.000000000 +0200 @@ -254,7 +254,7 @@ if ((attr = nvtable_find(state->attr, MAIL_ATTR_LOG_ORIGIN)) == 0) attr = "unknown"; - vstring_sprintf(state->temp1, "%s: %s: %s %.200s from %s;", + vstring_sprintf(state->temp1, "%s: %s: %s %.1024s from %s;", state->queue_id, action, class, content, attr); if (state->sender) vstring_sprintf_append(state->temp1, " from=<%s>", state->sender); @@ -467,7 +467,7 @@ const char *map_class; if (msg_verbose) - msg_info("%s: '%.200s'", myname, vstring_str(header_buf)); + msg_info("%s: '%.1024s'", myname, vstring_str(header_buf)); /* * Crude header filtering. This stops malware that isn't sophisticated diff -ruN postfix-2.8.3.old/src/global/header_body_checks.c postfix-2.8.3/src/global/header_body_checks.c --- postfix-2.8.3.old/src/global/header_body_checks.c 2010-07-28 01:49:53.000000000 +0200 +++ postfix-2.8.3/src/global/header_body_checks.c 2011-07-26 10:34:29.000000000 +0200 @@ -445,10 +445,10 @@ const HBC_TEST_CONTEXT *dp = (HBC_TEST_CONTEXT *) context; if (*text) { - msg_info("%s: %s: %s %.200s: %s", + msg_info("%s: %s: %s %.1024s: %s", dp->queueid, action, where, content, text); } else { - msg_info("%s: %s: %s %.200s", + msg_info("%s: %s: %s %.1024s", dp->queueid, action, where, content); } }