Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 36E4A431FBF for ; Sat, 29 Nov 2014 04:57:26 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PhCYudYZgYm6 for ; Sat, 29 Nov 2014 04:57:20 -0800 (PST) Received: from 4angle.com (4angle.com [82.145.46.9]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id DA41C431FAE for ; Sat, 29 Nov 2014 04:57:19 -0800 (PST) Received: from cpc19-cmbg14-2-0-cust212.5-4.cable.virginm.net ([86.6.30.213] helo=x230) by 4angle.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.82) (envelope-from ) id 1XuhaN-0006Rw-0E for notmuch@notmuchmail.org; Sat, 29 Nov 2014 12:57:15 +0000 Received: from edward by x230 with local (Exim 4.85_RC1-XX) (envelope-from ) id 1XuhaM-0007DY-U4 for notmuch@notmuchmail.org; Sat, 29 Nov 2014 12:57:15 +0000 Date: Sat, 29 Nov 2014 12:57:14 +0000 From: Edward Betts To: notmuch@notmuchmail.org Subject: Re: exim pipe transport, notmuch insert and mbox-style messages Message-ID: <20141129125714.GA23134@x230> References: <20141122092851.GA31815@x230> <87tx1r7enm.fsf@maritornes.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87tx1r7enm.fsf@maritornes.cs.unb.ca> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2014 12:57:26 -0000 David Bremner wrote: > Edward Betts writes: > > I wonder if 'notmuch insert' could be modified to detect and drop the From_ > > line before writing the message to disk and index it. It could do that > > silently or with a warning. > > I don't know about the larger question(s), but I'd suggest just escaping > it to something like X-Envelope-From: . There may even be some > semi-standard header to use for this. The main piece of information in the From_ line is the return path address, a properly configured MTA will add a Return-path header. RFC 2821 says the Return-path header is added to a message "when the delivery SMTP server makes the final delivery". I don't think the From_ line needs to be captured into an X-Envelope-From header. We could make 'notmuch insert' add the 'Return-path' header to messages if it is missing, but the From_ line is present. This is probably too much complexity. -- Edward.