🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #4274

trn needs better address parsing

#4274
From: Guy Middleton
Date: Wed, 09 Jun 1993 16:52
36 lines
2203 bytes
One of our users posts messages in which the From: line is

	From: "Joe User (Joe)" <juser@watdragon.uwaterloo.ca>

This is a legal RFC-822 address, so the news software should be able
to handle it.  When we try to reply to it, trn replies instead to

	To: "Joe User

Since our mailer understands Internet addresses, it should be safe to reply
to the "From:" line directly, rather than to trn's stripped "To:" line:

*** 1.1	1993/06/07 19:42:20
--- common.h	1993/06/09 16:50:05
***************
*** 536,544 ****
  #ifdef INTERNET
  #   ifndef MAILHEADER		/* % */
  #	ifdef CONDSUB
! #	    define MAILHEADER "To: %t\nSubject: Re: %S\n%(%{REPLYTO}=^$?:Reply-To: %{REPLYTO}\n)Newsgroups: %n\nIn-Reply-To: %i\n%(%[references]!=^$?References\\: %[references]\n)Organization: %o\nCc: \nBcc: \n\n"
  #	else
! #	    define MAILHEADER "To: %t\nSubject: Re: %S\nNewsgroups: %n\nIn-Reply-To: %i\nReferences: %[references]\nCc: \nBcc: \n\n"
  #	endif
  #   endif
  #else
--- 536,544 ----
  #ifdef INTERNET
  #   ifndef MAILHEADER		/* % */
  #	ifdef CONDSUB
! #	    define MAILHEADER "To: %f\nSubject: Re: %S\n%(%{REPLYTO}=^$?:Reply-To: %{REPLYTO}\n)Newsgroups: %n\nIn-Reply-To: %i\n%(%[references]!=^$?References\\: %[references]\n)Organization: %o\nCc: \nBcc: \n\n"
  #	else
! #	    define MAILHEADER "To: %f\nSubject: Re: %S\nNewsgroups: %n\nIn-Reply-To: %i\nReferences: %[references]\nCc: \nBcc: \n\n"
  #	endif
  #   endif
  #else
Technical Details
Message-ID: <C8D5JL.CM7@math.uwaterloo.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!usc!cs.utexas.edu!utnut!torn!watserv2.uwaterloo.ca!watmath!gamiddle
References: <C866H1.7ur@borland.com>

Show Full Headers
Complete Article Headers
Message-ID: <C8D5JL.CM7@math.uwaterloo.ca>
Subject: trn needs better address parsing
Date: Wed, 9 Jun 1993 16:52:31 GMT
From: gamiddle@math.uwaterloo.ca (Guy Middleton)
References: <C866H1.7ur@borland.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!usc!cs.utexas.edu!utnut!torn!watserv2.uwaterloo.ca!watmath!gamiddle
Newsgroups: news.software.readers,news.software.nntp
Keywords: trn 3.0 ftp overview NOV XOVER thread mthreads
Sender: news@math.uwaterloo.ca (News Owner)
Organization: University of Waterloo Software Liberation Army
Lines: 36