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

Fergus Henderson fjh at cs.mu.oz.au
Fri Apr 11 15:56:22 AEST 1997


Tyson Richard DOWD, you wrote:
> 
> 	2. Mailing list replies will not be successfully posted if they
> 	   don't meet the usual requirements of news - in particular,
> 	   you need more lines of new text than lines of quoted text.
> 	   (About 1 in 10 replies succumb to this fate).

The work-around for this one is

	s/^[|>]/ &/g

> 	3. Replies don't thread properly in news. I think this could
> 	   be fixed, but I'm not sure how at the moment.

Check for a "References:" header.  If there is one, then fine.
If not, check for a "In-Reply-To:" header, and if one is found,
then insert a new "References:" header with the same message-id.

i.e. in (untested) perl code:

	if ($header ~ /^References:/i) {
		/* fine */
	} else if ($header =~ /^In-Reply-To: (.*\n([ \t].*\n)*)/i) {
		$header .= "References: $1";
	} else {
		/* hopefully this is a new thread */
	}

-- 
Fergus Henderson <fjh at cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3         |     -- the last words of T. S. Garp.



More information about the developers mailing list