Re: Questions from a user new to notmuch
authorJani Nikula <jani@nikula.org>
Sat, 24 Mar 2012 12:17:10 +0000 (14:17 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:42 +0000 (09:45 -0800)
ea/ad4945645e9279819fe14cd3aa5f992427eea7 [new file with mode: 0644]

diff --git a/ea/ad4945645e9279819fe14cd3aa5f992427eea7 b/ea/ad4945645e9279819fe14cd3aa5f992427eea7
new file mode 100644 (file)
index 0000000..8a7138a
--- /dev/null
@@ -0,0 +1,96 @@
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 94516431FAF\r
+       for <notmuch@notmuchmail.org>; Sat, 24 Mar 2012 05:17:17 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 8m8vinr9cRh6 for <notmuch@notmuchmail.org>;\r
+       Sat, 24 Mar 2012 05:17:17 -0700 (PDT)\r
+Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com\r
+       [209.85.217.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id C6C25431FAE\r
+       for <notmuch@notmuchmail.org>; Sat, 24 Mar 2012 05:17:16 -0700 (PDT)\r
+Received: by lbok6 with SMTP id k6so3274693lbo.26\r
+       for <notmuch@notmuchmail.org>; Sat, 24 Mar 2012 05:17:15 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=google.com; s=20120113;\r
+       h=from:to:cc:subject:in-reply-to:references:user-agent:date\r
+       :message-id:mime-version:content-type:x-gm-message-state;\r
+       bh=6wf6v08DlsJ48vNdGX/fDWMztYUNAkQPfJiOb9ebwOE=;\r
+       b=lYzv5PyUTwQqtSUWSouiQlw42UGqJGRQjwPyADDHx6yN8dlEGJehnPdrrWxDX6aHkH\r
+       2H9E5Owe2cfrJ3OSpaxN7GTVe3mv6irIHjDUTXTA96Z21qOWzWqPohKtAUzkKyEGdPUK\r
+       rfjMYJk95D+X7BrREyC4W3qRtSZJJkTd4s7x5Ol8SjbPeVnIDDW7NYhKOshzY+CQL1nf\r
+       pAAfVmvgTtqbIs1qj/4he/zDXuYfzR6P+kM1ULqc+vRJ6R8cwm+9BHKGSsnVnRBZovkT\r
+       ueiMsHSAolvqia6/oYHgrcVOBoIxZMelBdeKvAdUsoh5vGFGY68IK3X8aUYacF0jEqeE\r
+       e1Xg==\r
+Received: by 10.152.103.12 with SMTP id fs12mr11050256lab.47.1332591435219;\r
+       Sat, 24 Mar 2012 05:17:15 -0700 (PDT)\r
+Received: from localhost (dsl-hkibrasgw4-fe50f800-253.dhcp.inet.fi.\r
+       [84.248.80.253])\r
+       by mx.google.com with ESMTPS id a8sm13883224lba.15.2012.03.24.05.17.12\r
+       (version=SSLv3 cipher=OTHER); Sat, 24 Mar 2012 05:17:13 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: Patrick Totzke <patricktotzke@googlemail.com>,\r
+       Austin Clements <amdragon@MIT.EDU>, Kyle Sexton <ks@mocker.org>\r
+Subject: Re: Questions from a user new to notmuch\r
+In-Reply-To: <20120324100448.2696.11042@brick.lan>\r
+References: <m2k42d9v7i.fsf@Kyles-MacBook-Pro-2.local.i-did-not-set--mail-host-address--so-tickle-me>  <20120322223907.GO2670@mit.edu>\r
+       <20120324100448.2696.11042@brick.lan>\r
+User-Agent: Notmuch/0.11.1+295~g780f284 (http://notmuchmail.org) Emacs/23.3.1\r
+       (i686-pc-linux-gnu)\r
+Date: Sat, 24 Mar 2012 14:17:10 +0200\r
+Message-ID: <878viqqjll.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Gm-Message-State:\r
+ ALoCoQnxmHBZrqLZzjqLP4MW67XopFEHMrwLbm2P25clXqCf3crtkAzh3/LYtTTKkMfnwN57KBJE\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 24 Mar 2012 12:17:17 -0000\r
+\r
+On Sat, 24 Mar 2012 10:04:48 +0000, Patrick Totzke <patricktotzke@googlemail.com> wrote:\r
+> Quoting Austin Clements (2012-03-22 22:39:07)\r
+> >> 2. I received a message that was addressed to a distribution group and\r
+> >>    tried to reply.  Because the TO: address is not my address, notmuch\r
+> >>    fails to guess the proper FROM: address to set.  Is there a way to\r
+> >>    handle this use case?  This is with the emacs notmuch client.\r
+> >\r
+> >Not in general, since notmuch doesn't know where the mail was\r
+> >addressed to.  I believe some people have solved problems like this\r
+> >using Emacs hooks, but I don't know the details.\r
+> \r
+> Does the notmuch CLI not use the 'Delivered-To' header for this?\r
+\r
+To decide which from address to use for replying, the CLI (and therefore\r
+emacs ui) looks for primary and other email addresses in the\r
+reply-to/from, to, cc, bcc, envelope-to, x-original-to, and finally\r
+received headers, in this order, before falling back to just using\r
+primary email.\r
+\r
+If someone is interested (read: I'm too busy right now), and it's\r
+desirable, it would be a one-liner to add delivered-to in the to_headers\r
+array in guess_from_received_header() in notmuch-reply.c. Plus a few\r
+dozen lines of test code. ;)\r
+\r
+BR,\r
+Jani.\r