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