[m-dev.] mail<->news gateway

Tyson Richard DOWD trd at students.cs.mu.oz.au
Wed Apr 2 11:54:52 AEST 1997


> 
> I've asked amb to make cs.mercury moderated with mercury-developers
> as the moderation address.  That will solve the news->mail gateway and
> archiving problems.  I have a script (~fjh/bin/scripts/mdev-submit)
> for the mail->news gateway which will take a mail message, add the
> appropriate headers, and post it, but as yet I have no way of invoking

mdev-submit had a couple of problems, here's a diff

--- /home/pgrad/trd/bin/scripts/mdev-submit	Wed Apr  2 11:50:46 1997
+++ /home/pgrad/fjh/bin/scripts/mdev-submit	Mon Mar 31 20:05:51 1997
@@ -46,8 +46,6 @@
 	chop $header;
 	$header .= $next;
 	$body = "";
-} else {
-	$body = $next;
 }
 
 # Read in the (rest of the) body
@@ -153,6 +151,6 @@
 #
 
 print "Posting article...\n";
-system "/usr/local/news/inews -h -M -S < $tmp" || die "$0: inews failed\n";
+system "inews -h -M -S < $tmp" || die "$0: inews failed\n";
 
 #-----------------------------------------------------------------------------#

Since it's being run by procmail, inews is not in my path, and it was
chopping the first paragraph because of the test for Newsgroups lines
in the body of the message (thought you might want to know about that
one in case you use this script in future).

This message is also another test case - hopefully it will appear
as intended. 

Once the newsgroup becomes moderated, the setup should work.

-- 
       Tyson Dowd           #
                            #             Sign on refridgerator:
     trd at cs.mu.oz.au        #           Refrigerate after opening. 
http://www.cs.mu.oz.au/~trd #                  - C. J. Owen.



More information about the developers mailing list