🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Tom van Nes Wed, 22 Feb 1995 09:39
Re: sendmail-to-news, inn
#3383
Author: Tom van Nes
Date: Wed, 22 Feb 1995 09:39
59 lines
2569 bytes
In article <3hkdin$j6m@hk.super.net>,
Mr Cheuk Kong Lo <cklo@hk.super.net> wrote:
>Hi, 
>
>I'm trying to get the usenet mailer to work, but unfortunately the
>stock sample m4 macro doesn't get along with INN (1.4sec) here. They
>have entirely different syntax.
>
>1.	Does anyone know of the mail2news package?
>
>2.	I pulled out c-news's "inews" and "tear" and wrote a script, it's
>	kinda work manually, but I can't get the message body to
>	input to the script when it's processed by sendmail. How is the 
>	e-mail body sent (pipe??) to the delivery agent?
>
>Thanks.
>
>--
>Chris Lo                    	   |                 _/_/_/    _/_/   _/_/_/


on our mail server I have entries in /etc/aliases, like:

  test:  test@news

on the news host I have entries in the /etc/aliases, like:

  test:  "|/bin/mail2news alt.test"

So any mail sent to test@news gets forwarded to the host news
where the mail is processed and put into the newsgroup alt.test.


here the mail2news script:
(Note: you need inews)
------------------------------------------- 
#!/bin/sh

/usr/bin/awk '
BEGIN {
        print "Newsgroups: '$1'"
        print "Distribution: local"
}

/^$/    { body=1 }
body == 1 { print ; next }

/^Subject:/
/^From:/

'| /var/lib/news/bin/inews -h -V
------------------------------------------- 

-- 
  *****     Tom van Nes        | RFC822: thomas.vannes@alcatel.ch
   ***      Alcatel STR        | DECnet: PSI%479512391::T_VANNES
    *       Friesenbergstr. 75 | X.400:  c=CH a=arCom p=Alcatel 
 ALCATEL    CH-8055 Zuerich    |         s=Vannes g=Thomas
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads