unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Edward Betts <edward@4angle.com>
To: notmuch@notmuchmail.org
Subject: Re: exim pipe transport, notmuch insert and mbox-style messages
Date: Sat, 29 Nov 2014 12:57:14 +0000	[thread overview]
Message-ID: <20141129125714.GA23134@x230> (raw)
In-Reply-To: <87tx1r7enm.fsf@maritornes.cs.unb.ca>

David Bremner <david@tethera.net> wrote:
> Edward Betts <edward@4angle.com> 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.

  parent reply	other threads:[~2014-11-29 12:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-22  9:28 exim pipe transport, notmuch insert and mbox-style messages Edward Betts
2014-11-22  9:44 ` David Bremner
2014-11-22 16:26   ` Andrei POPESCU
2014-11-29 12:57   ` Edward Betts [this message]
2014-11-29 13:21     ` David Bremner
2014-11-23 10:20 ` Tomi Ollila
2014-11-23 11:08   ` Tomi Ollila

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141129125714.GA23134@x230 \
    --to=edward@4angle.com \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).