MBOX-Line: From mrc at CAC.Washington.EDU  Mon Oct 17 07:24:38 2005
To: imap-protocol@u.washington.edu
From: Mark Crispin <mrc@CAC.Washington.EDU>
Date: Fri Jun  8 12:34:36 2018
Subject: [Imap-protocol] Envelope "From" via IMAP
In-Reply-To: <1129558735.1214.360.camel@hurina>
References: <858610995.1129557894.146542220.97946@mcgi3.rambler.ru>
	<1129558735.1214.360.camel@hurina>
Message-ID: <Pine.OSX.4.64.0510170721100.1022@pangtzu.panda.com>

On Mon, 17 Oct 2005, Timo Sirainen wrote:
> On Mon, 2005-10-17 at 18:04 +0400, Alex Kapranoff wrote:
> > Is there a way to get envelope "From" information for a mail via IMAP?
> > Specifically, "ENVELOPE" fetch item does not seem to return it.
> No, unless it was written to some header by your MDA.

I was confused when I first read this message.

I assume that you are talking about the internal "From " line that appears 
in the traditional UNIX mailbox format, and *not* the RFC 2822 "From:" 
header line?  If so, then Timo's response is correct.

The "From " line is an artifact of traditional UNIX mailbox format; it 
does not appear in other mailbox formats.  This generally contains the 
return address, which is not necessarily the same as the originator or 
reply address.

Many MDAs will write a Return-Path: header with this data.  If yours does 
not, there many be a switch in your mail delivery configuration to enable 
it.

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.

