Article View: news.software.nntp
Article #82009Re: news2mail should send a sender header - how?
From: D. Stussy
Date: Fri, 16 Oct 2009 06:20
Date: Fri, 16 Oct 2009 06:20
26 lines
1727 bytes
1727 bytes
"Michael Vogel" <ike@spamfence.net> wrote in message
news:4ad705c5$0$6552$9b4e6d93@newsspool4.arcor-online.net...
> I want to sync several mailing lists. For this I want the script
> news2mail (included in INN2) to add a sender header.
>
> How can this be done?
Easily. In subroutine mailto(), the second parameter is the envelope
sender identity, which is the third field from the configuration file (or
the news user if not specified or multiple list senders are specified).
Before the line that indicates:
print SM "To: @a\n\n";
try adding:
print SM "Sender: $s\n";
By function: sub mailto($sm_token, $envelope_from, @envelope_to)
In the script: ($t, $s, @a)
Does that help?
Technical Details
Message-ID:
<hbagln$k9r$4@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!not-for-mailReferences:
<4ad705c5$0$6552$9b4e6d93@newsspool4.arcor-online.net>Show Full Headers
Complete Article Headers
Message-ID: <hbagln$k9r$4@snarked.org> Subject: Re: news2mail should send a sender header - how? Date: Thu, 15 Oct 2009 23:20:53 -0700 From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org> References: <4ad705c5$0$6552$9b4e6d93@newsspool4.arcor-online.net> 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!not-for-mail Newsgroups: news.software.nntp Lines: 26 Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org> NNTP-Posting-Host: pool-71-160-18-32.lsanca.dsl-w.verizon.net X-Trace: snarked.org 1255720439 20795 71.160.18.32 (16 Oct 2009 19:13:59 GMT) X-Complaints-To: newsmaster@snarked.org NNTP-Posting-Date: Fri, 16 Oct 2009 19:13:59 +0000 (UTC) X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478