diff -ruN inn-1.7.2.orig/frontends/rnews.c inn-1.7.2/frontends/rnews.c --- inn-1.7.2.orig/frontends/rnews.c 2004-07-12 18:29:17.000000000 +0200 +++ inn-1.7.2/frontends/rnews.c 2004-07-12 18:29:07.000000000 +0200 @@ -207,6 +207,15 @@ syslog(L_ERROR, "cant fopen %s %m", buff); return; } + { + char h[1024 + 24], r[1024]; + int len; + sprintf(r, reason, arg); + sprintf(h, "X-rnews-Reject-Reason: %s\n", r); + len = strlen(h); + if (fwrite(h, 1, len, F) != len) + syslog(L_ERROR, "cant fwrite %s %m", buff); + } i = strlen(article); if (fwrite((POINTER)article, (SIZE_T)1, (SIZE_T)i, F) != i) syslog(L_ERROR, "cant fwrite %s %m", buff);