Article View: news.software.nntp
Article #49212Re: mail -> news converter needed
From: bill davidsen
Date: Wed, 29 Nov 2000 00:00
Date: Wed, 29 Nov 2000 00:00
37 lines
2635 bytes
2635 bytes
In article <y8%U5.41596$xK.1273443@news20.bellglobal.com>, Cassie Hilbig <chilbig@hotmail.com> wrote: | Building something to do this in Perl would be very easy. Look into the | Net::NNTP library, which includes the ability to post an article. In Unix, | the user account "newsgroup" (in your newsgroup@anything.com example) would | have a .forward (that's dot-forward) file in its home directory. This file | would automatically forward any mail it receives to your script that would | parse for subject and contents and post the news article (using the | Net::NNTP). You can do this in several ways, .forward being one, and use of procmail or and alias file entry being other common ways to get this done. The perl script is moderately simple, converting In-Reply-To headers to references helps newsreaders, and there are a few other headers which you might want to tweak. There's stuff which comes with INN, and I've rolled one twice (couldn't find the first one when I need it), not a big deal. I personally don't bother with the library, I just start a rnews process open(RN, "|rnews") || die "open rnews"; and send the edited article into that. You can run rnews against remote servers if they allow you to have transfer permission, using a command line option. The Net::NNTP library is probably justified if (a) you want to play with it, or (b) you have to use POST for article submission (be careful about loops!!), or (c) you need some authentication not readily supported by rnews. Many good solutions available, many tools to roll your own. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc Make the rules? I don't make the rules. I don't even FOLLOW the rules!
Technical Details
Message-ID:
<903kho$4g2u$1@newssvr06-en0.news.prodigy.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.mbox.zip!not-for-mailReferences:
<HBAH5.54$Cq1.4674@nreader1.kpnqwest.net> <271120000129408580%atsnntp0200@emailman.com> <y8%U5.41596$xK.1273443@news20.bellglobal.com>Show Full Headers
Complete Article Headers
Message-ID: <903kho$4g2u$1@newssvr06-en0.news.prodigy.com> Subject: Re: mail -> news converter needed Date: Wed, 29 Nov 2000 00:00:00 +0000 From: davidsen@tmr.com (bill davidsen) References: <HBAH5.54$Cq1.4674@nreader1.kpnqwest.net> <271120000129408580%atsnntp0200@emailman.com> <y8%U5.41596$xK.1273443@news20.bellglobal.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.mbox.zip!not-for-mail X-Deja-AN: 699217909 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr06-en0.news.prodigy.com 975525240 147550 192.168.190.236 (29 Nov 2000 19:14:00 GMT) Organization: TMR Associates, Schenectady NY NNTP-Posting-Date: 29 Nov 2000 19:14:00 GMT Newsgroups: news.software.nntp Originator: davidsen@darkstar.prodigy.com