|
From: Martin J. <mj...@ex...> - 2004-08-22 20:07:57
|
Viktor Kafke schrieb: > One of the Points in 2437 is using an empty! Origin-Line in his postings. > After gating such a Message, my INN is whining: > > Aug 21 18:50:19.494 - p99.worf.pfnz.de > <MSG...@fi...> 437 Body of header is all blanks > in "Organization" header > > an refuses the Posting. Can you solve this problem or should i patch it (and > post it here)?. Please try the following patch, it should avoid empty Organization headers, using the default from the config. This fix is also in the current CVS. Martin =================================================================== RCS file: /cvsroot/fidogate/fidogate/src/gate/ftn2rfc.c,v retrieving revision 4.63 diff -u -3 -p -r4.63 ftn2rfc.c --- ftn2rfc.c 22 Aug 2004 10:30:02 -0000 4.63 +++ ftn2rfc.c 22 Aug 2004 20:05:26 -0000 @@ -1090,6 +1090,7 @@ int unpack(FILE *pkt_file, Packet *pkt) } /* Common header */ + p = NULL; if(use_origin_for_organization && body.origin) { strip_crlf(body.origin); @@ -1104,12 +1105,13 @@ int unpack(FILE *pkt_file, Packet *pkt) p = buffer + strlen(" * Origin: "); while(is_blank(*p)) p++; - tl_appendf(&theader, "Organization: %s\n", p); - } - else - { - tl_appendf(&theader, "Organization: %s\n", cf_p_organization() ); + if(!*p) + p = NULL; } + if(!p) + p = cf_p_organization(); + tl_appendf(&theader, "Organization: %s\n", p); + tl_appendf(&theader, "Lines: %d\n", lines); if(gateway) tl_appendf(&theader, "X-Gateway: FIDO %s [FIDOGATE %s], %s\n", |