Re: funcmail.py: generate notmuch-tags based on headers
[notmuch-archives.git] / ea / fe8d08ffa1db3b8d633d5e4acffe479c498725
1 Return-Path: <sojkam1@fel.cvut.cz>\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 6A14A49F192\r
6         for <notmuch@notmuchmail.org>; Thu, 11 Mar 2010 05:00:34 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.514\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.514 tagged_above=-999 required=5\r
12         tests=[AWL=-0.404, BAYES_05=-1.11] autolearn=ham\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 OqFZHfDTmtRj for <notmuch@notmuchmail.org>;\r
16         Thu, 11 Mar 2010 05:00:32 -0800 (PST)\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
18         by olra.theworths.org (Postfix) with ESMTP id 774414916B2\r
19         for <notmuch@notmuchmail.org>; Thu, 11 Mar 2010 05:00:32 -0800 (PST)\r
20 Received: from localhost (unknown [192.168.200.4])\r
21         by max.feld.cvut.cz (Postfix) with ESMTP id D3BC619F35F8;\r
22         Thu, 11 Mar 2010 14:00:13 +0100 (CET)\r
23 X-Virus-Scanned: IMAP AMAVIS\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])\r
25         by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,\r
26         port 10044)\r
27         with ESMTP id n2-OyK7Yuny7; Thu, 11 Mar 2010 14:00:08 +0100 (CET)\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
29         by max.feld.cvut.cz (Postfix) with ESMTP id AEB6719F35EE;\r
30         Thu, 11 Mar 2010 14:00:08 +0100 (CET)\r
31 Received: from steelpick.localdomain (k335-30.felk.cvut.cz [147.32.86.30])\r
32         (Authenticated sender: sojkam1)\r
33         by imap.feld.cvut.cz (Postfix) with ESMTPSA id 9E8B3FA003;\r
34         Thu, 11 Mar 2010 14:00:08 +0100 (CET)\r
35 Received: from wsh by steelpick.localdomain with local (Exim 4.71)\r
36         (envelope-from <sojkam1@fel.cvut.cz>)\r
37         id 1Nphzk-00074j-Fv; Thu, 11 Mar 2010 14:00:08 +0100\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>\r
39 To: James Vasile <james@hackervisions.org>, notmuch@notmuchmail.org\r
40 In-Reply-To: <87aauhp9kk.fsf@hackervisions.org>\r
41 References: <87aauhp9kk.fsf@hackervisions.org>\r
42 Date: Thu, 11 Mar 2010 14:00:08 +0100\r
43 Message-ID: <87pr3bm2sn.fsf@steelpick.localdomain>\r
44 MIME-Version: 1.0\r
45 Content-Type: text/plain; charset=us-ascii\r
46 Subject: Re: [notmuch] [PATCH] Change From and Bcc when creating reply draft\r
47         buffer\r
48 X-BeenThere: notmuch@notmuchmail.org\r
49 X-Mailman-Version: 2.1.13\r
50 Precedence: list\r
51 List-Id: "Use and development of the notmuch mail system."\r
52         <notmuch.notmuchmail.org>\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
56 List-Post: <mailto:notmuch@notmuchmail.org>\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
60 X-List-Received-Date: Thu, 11 Mar 2010 13:00:34 -0000\r
61 \r
62 Hi James,\r
63 \r
64 On Tue, 09 Mar 2010, James Vasile wrote:\r
65 > When notmuch creates a reply buffer, it guesses the From and Bcc\r
66 > addresses.  The client is in a better position to guess these, and this\r
67 > patch adjusts notmuch-reply accordingly.\r
68\r
69 > diff --git a/notmuch.el b/notmuch.el\r
70 > index ab56f48..07f957e 100644\r
71 > --- a/notmuch.el\r
72 > +++ b/notmuch.el\r
73 > @@ -436,10 +436,20 @@ buffer."\r
74 >    (message "Done"))\r
75 >  \r
76 >  (defun notmuch-reply (query-string)\r
77 > +  "Prepare a reply draft buffer.\r
78 > +\r
79 > +Have notmuch create a reply buffer, then adjust the from and bcc\r
80 > +headers to match our current user-full-name and\r
81 > +user-mail-address."\r
82 >    (switch-to-buffer (generate-new-buffer "notmuch-draft"))\r
83 >    (call-process notmuch-command nil t nil "reply" query-string)\r
84 >    (message-insert-signature)\r
85 >    (goto-char (point-min))\r
86 > +  (kill-line)\r
87 > +  (insert (format "From: %s <%s>" user-full-name user-mail-address))\r
88 \r
89 Notmuch reply contains From: address which is based on the addresses in\r
90 .notmuch-config and the replied message. When you use multiple addresses\r
91 (e.g. home and work address), notmuch puts there the one used in the\r
92 replied message. It seems that your patch would break this feature.\r
93 \r
94 -Michal\r