🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #71601

Re: Mail2News gateway question

#71601
From: Jeffrey M. Vinocur
Date: Sat, 14 May 2005 14:01
35 lines
2261 bytes
In article <KaRWKmORXOgCFwyJ@earth.amigo.co.uk>,
David Mahon  <nospam@amigo.co.uk> wrote:
>
>[ Exim, INN, mailpost ]
>
>Can someone give me pointers on how I can automatically gate email 
>messages to the right newsgroup based upon
>
>1) email being send to a specific address (mail2news@domain)

With mailpost, users type a different email address for each
group that they want the post to be gatewayed to.  Then you
configure your mail server to run mailpost with the appropriate
group name on the mailpost commandline.


>2) email having a Newsgroups: header with the required newsgroups

Mailpost does not look in emails for a Newsgroups header.  (Many
email clients do not allow users to insert arbitrary headers.)

If you wanted to do this with mailpost, you'd need to either
patch the mailpost source, or configure your Exim to parse out
the Newsgroups header from the email and list its contents on the
mailpost commandline.

Another way that seems feasible would be to write a small filter
to sit between Exim and mailpost.  It would simply locate the
Newsgroups header, spawn mailpost with appropriate commandline
arguments, and then pass the article along.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <d650c3$ivk$1@puck.litech.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.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.maxwell.syr.edu!news.litech.org!not-for-mail
References: <KaRWKmORXOgCFwyJ@earth.amigo.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <d650c3$ivk$1@puck.litech.org>
Subject: Re: Mail2News gateway question
Date: Sat, 14 May 2005 14:01:39 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <KaRWKmORXOgCFwyJ@earth.amigo.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.maxwell.syr.edu!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Litech Systems Design
Lines: 35
Sender: jeff@litech.org
NNTP-Posting-Host: puck.litech.org
X-Trace: puck.litech.org 1116079299 19444 66.218.0.75 (14 May 2005 14:01:39
 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Sat, 14 May 2005 14:01:39 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)