From nobody  Mon Jan 13 09:38:06 1997
Received: (from nobody@localhost)
          by freefall.freebsd.org (8.8.4/8.8.4) id JAA24351;
          Mon, 13 Jan 1997 09:38:06 -0800 (PST)
Message-Id: <199701131738.JAA24351@freefall.freebsd.org>
Date: Mon, 13 Jan 1997 09:38:06 -0800 (PST)
From: fenner@parc.xerox.com
To: freebsd-gnats-submit@freebsd.org
Subject: Gnats creates malformed Resent-Reply-To: headers
X-Send-Pr-Version: www-1.0

>Number:         2481
>Category:       misc
>Synopsis:       Gnats creates malformed Resent-Reply-To: headers
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pst
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 13 09:40:01 PST 1997
>Closed-Date:    Sat Jan 24 14:21:30 PST 1998
>Last-Modified:  Sat Jan 24 14:24:43 PST 1998
>Originator:     Bill Fenner
>Release:        n/a
>Organization:
Xerox
>Environment:
GNATS as installed on freefall.freebsd.org
>Description:
The PR->email gateway creates malformed Resent-Reply-To: headers if the
submitted PR doesn't have a Reply-To: header.

Example set of well-formed resent-* headers:

Resent-Date: Sun, 12 Jan 1997 18:00:02 -0800 (PST)
Resent-Message-Id: <199701130200.SAA10726@freefall.freebsd.org>
Resent-From: gnats (GNATS Management)
Resent-To: freebsd-bugs
Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, hsu@clinet.fi

Example of malformed Resent-* headers

Resent-Date: Sun, 12 Jan 1997 17:10:03 -0800 (PST)
Resent-Message-Id: <199701130110.RAA08266@freefall.freebsd.org>
Resent-From: gnats (GNATS Management)
Resent-To: freebsd-bugs
Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org,
        Received:"from methan.chemie.fu-berlin.de (methan.chemie.fu-berlin.de [1
60.45.22.81])
          by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id RAA07769
          for" <FreeBSD-gnats-submit@freebsd.org>; Sun,
        12 Jan 1997 17:00:37.-0800 (PST)

Note that one of the "Received:" headers managed to make it into the
Resent-Reply-To: line.  This causes replies to:

a) Not go to the original submitter
b) Get cc'd to freebsd-gnats-submit, potentially opening a new PR
c) Get cc'd to the date (or other weird portions of the Received line),
causing strange mail errors.

It also causes strict mailers such as zmailer to insert header parsing
error warnings in the headers.

(Not everyone sees these symptoms because many MUA's don't understand
the Resent-* headers at all)

>How-To-Repeat:
Submit a PR without a Reply-To: header in the original email, look at
the mail that gets sent to the freebsd-bugs mailing list.

>Fix:
Make gnats add the original message From: to the Resent-Reply-To: header
if the original message has to Reply-To: header.

>Release-Note:
>Audit-Trail:

From: j@uriah.heep.sax.de (J Wunsch)
To: fenner@parc.xerox.com
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: misc/2481: Gnats creates malformed Resent-Reply-To: headers
Date: Mon, 13 Jan 1997 23:50:25 +0100

 As fenner@parc.xerox.com wrote:
 
 > Resent-Date: Sun, 12 Jan 1997 18:00:02 -0800 (PST)
 > Resent-Message-Id: <199701130200.SAA10726@freefall.freebsd.org>
 > Resent-From: gnats (GNATS Management)
 > Resent-To: freebsd-bugs
 > Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, hsu@clinet.fi
 
 I think it should also preserve the Reply-To header literally for
 followups if one was present.
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)

From: Bill Fenner <fenner@parc.xerox.com>
To: fenner@parc.xerox.com, joerg_wunsch@uriah.heep.sax.de
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: misc/2481: Gnats creates malformed Resent-Reply-To: headers
Date: Mon, 13 Jan 1997 15:02:10 PST

 >I think it should also preserve the Reply-To header literally for
 >followups if one was present.
 
 Only because most MUA's don't grok Resent-* at all.  RFC822 says that
 Resent-* fields, if present, are to be treated as "more recent" than
 the original versions.  It carefully avoids specifying which fields
 to use when replying, so we can't claim that MUA's that skip
 Resent-Reply-To are violating anything, but the Resent-* fields are
 there so that forwarders don't have to modify existing fields...
 
 (Perhaps the easiest solution is to stop using Resent-* because of
 its ambiguous semantics to MUA's...)
 
   Bill
State-Changed-From-To: suspended->closed 
State-Changed-By: pst 
State-Changed-When: Sat Jan 24 14:21:30 PST 1998 
State-Changed-Why:  
Fixed in gnats 3.104.  Freefall is downrev, feel free to upgrade it. 
>Unformatted:
