On Sat, Jul 13, 2002 at 10:08:52PM -0500, David T-G wrote:
| ...and then Derrick 'dman' Hudson said...

| % Oh, actually, the entire envelope is changed.  I think David meant to
| % write "headers" --
| %     nothing in the message headers (or body) is changed, and new
| %     headers are added
| 
| Hmmm...  Perhaps I've misunderstood envelope; I thought that it was all
| of the headers.

No, the envelope normally isn't in the headers at all.  It will only
appear there if you configure your MTA to add 'Return-Path:' and
'Envelope-To:' headers.

Here's an example of an SMTP session (eg one for a message bounced by
mutt), but with some of the longer content remove for the sake of this
mailing list.

220 ns.gbnet.net ESMTP
EHLO dman.ddts.net
250-ns.gbnet.net
250-PIPELINING
250 8BITMIME
MAIL FROM:<[EMAIL PROTECTED]>
250 ok
RCPT TO:<[EMAIL PROTECTED]>
250 ok
DATA
354 go ahead
Received: (all received headers remain, but snipped in this example)
Date: Sat, 13 Jul 2002 22:08:52 -0500
From: David T-G <[EMAIL PROTECTED]>
To: Undisclosed-Recipient:;
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Disposition: inline
User-Agent: Mutt/1.4i
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]?body=unsubscribe>
Subject: Re: bouncing w/ mutt-1.3.28i
Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="Ah9ph+G2cWRpKogL"

[body of the message]
.
250 OK
QUIT
221 ns.gbnet.net closing connection


In this case, the envelope sender is <[EMAIL PROTECTED]> and the
envelope recipient is <[EMAIL PROTECTED]>.  The envelope is the data
in the SMTP dialog.  The headers are part of the "DATA" segment of the
SMTP transfer.  As far as SMTP is concerned, headers and body are all
part of "the message" and are a (mostly) a black box.  The envelope
and the headers often correspond, but don't always (and in the case of
spam, often have no relationship at all).

-D

-- 
If you hold to [Jesus'] teaching, you are really [Jesus'] disciples.
Then you will know the truth, and the truth will set you free.
        John 8:31-32
 
http://dman.ddts.net/~dman/

Attachment: msg29624/pgp00000.pgp
Description: PGP signature

Reply via email to