Article View: news.software.nntp
Article #83463Re: Please consider this INN patch for mailpost
From: Julien ÉLIE
Date: Thu, 30 Sep 2010 21:03
Date: Thu, 30 Sep 2010 21:03
84 lines
4004 bytes
4004 bytes
Hi Dieter, >> I would have added: >> >> chop ($Gateway = `/bin/hostname`) if ! $Gateway ; >> >> the same way it is done for $Mailname. > > I specifically left that out for one reason: Virtual hosting. The > /bin/hostname name may not be the same name as the news server, nor even > under the same domain name. We could add another command line parameter to > exclude additional hostnames if necessary. Then how would it harm if /bin/hostname was in the patterns to look for? > However, > while the script is running, the name from the TCP socket might be > "localhost" if it's using the loopback interface to connect between mail > and news. It does not matter to have "localhost" left in Received: or *-To: headers. No problem to not look for it, if I understand the aim of your patch. >> I would also have changed: >> >> -my $exclude = 'Organization|Distribution'; >> +my $exclude = >> > 'Archive|Archived-At|Comments|Distribution|Keywords|Organization|Summary'; > > I didn't do that because if the message was first gated from news to mail > and is being gated back (why, I don't know) for some reason, the message > may already have these headers present, and I saw no reason not to preserve > them. I do not understand. If we do not list these headers here, it means that they are renamed. For instance, the Comments: header field becomes X-Comments: and that's why I thought we had better list it here. We should preserve these headers. >> +The Received: and *-To: headers are also stripped out to prevent >> spamming > > Actually, the "Received" header is not stripped out, but it is altered to > delete the "FOR _mailbox_" clause Yep, I will change the wording. >> +=item B<-z> I<header>[B<:>I<header>...] >> + >> +A colon-separated list of additional headers which should be removed. >> + >> +By default, removed headers are: >> + >> + Bcc >> + X-Trace >> + X-Complaints-To >> + >> =back >> >> =head1 FILES > > Same comment as above regarding news->mail->news gating. I did not change anything here. The X-Trace: and X-Complaints-To: headers have always been removed by mailpost. Injection-Date: and Injection-Info: headers are currently renamed to X-*. Maybe the first one should remain unchanged and the second one removed (like X-Trace:). -- Julien ÉLIE « La fin du monde est un sujet sérieux, surtout pour ceux qui s'y préparent. » (Filiu)
Technical Details
Message-ID:
<i82tvh$n8g$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!news2.arglkargh.de!news.ecp.fr!news.trigofacile.com!.POSTED.aaubervilliers-151-1-48-199.w83-114.abo.wanadoo.fr!not-for-mailReferences:
<i4s5et$6km$1@snarked.org> <i82hhu$74b$1@news.trigofacile.com> <i82sm5$9g3$1@snarked.org>Show Full Headers
Complete Article Headers
Message-ID: <i82tvh$n8g$1@news.trigofacile.com> Subject: Re: Please consider this INN patch for mailpost Date: Thu, 30 Sep 2010 23:03:43 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <i4s5et$6km$1@snarked.org> <i82hhu$74b$1@news.trigofacile.com> <i82sm5$9g3$1@snarked.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!news2.arglkargh.de!news.ecp.fr!news.trigofacile.com!.POSTED.aaubervilliers-151-1-48-199.w83-114.abo.wanadoo.fr!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 84 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 8bit Injection-Date: Thu, 30 Sep 2010 21:03:45 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-host="aaubervilliers-151-1-48-199.w83-114.abo.wanadoo.fr:83.114.132.199"; logging-data="23824"; mail-complaints-to="abuse@trigofacile.com" In-Reply-To: <i82sm5$9g3$1@snarked.org> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6002.18197 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18263 X-Original-Bytes: 3829