Re: notmuch-emacs should correctly handle signature status on reply
[notmuch-archives.git] / 77 / 21ef960a0ab211ad888f18ea73cf152a700fb6
1 Return-Path: <dme@dme.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 arlo.cworth.org (Postfix) with ESMTP id 218626DE0355\r
6  for <notmuch@notmuchmail.org>; Fri, 29 Apr 2016 07:34:09 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.181\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.181 tagged_above=-999 required=5\r
12  tests=[AWL=-0.114, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,\r
13  RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,\r
14  RCVD_IN_MSPIKE_WL=-0.01, SPF_NEUTRAL=0.652, UNPARSEABLE_RELAY=0.001]\r
15  autolearn=disabled\r
16 Received: from arlo.cworth.org ([127.0.0.1])\r
17  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
18  with ESMTP id SJGzhufX_Gxt for <notmuch@notmuchmail.org>;\r
19  Fri, 29 Apr 2016 07:34:00 -0700 (PDT)\r
20 Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com\r
21  [74.125.82.42]) by arlo.cworth.org (Postfix) with ESMTPS id 73D166DE0356 for\r
22  <notmuch@notmuchmail.org>; Fri, 29 Apr 2016 07:34:00 -0700 (PDT)\r
23 Received: by mail-wm0-f42.google.com with SMTP id n129so30268118wmn.1\r
24  for <notmuch@notmuchmail.org>; Fri, 29 Apr 2016 07:34:00 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
26  d=dme-org.20150623.gappssmtp.com; s=20150623;\r
27  h=to:subject:in-reply-to:references:from:date:message-id:mime-version;\r
28  bh=RYf1n/THyuVW+FPvo6KGEzUFqhS722YNfgSHZiq8PIQ=;\r
29  b=AkuDA5pIKOc7GcLpkhqrxM3ynux1e+JfeWdMoY1++tV17xmGGGU73ZcQ8ESE5Rg7Hq\r
30  pEzjYozfstFtlNOG7JvcKGWQIpa6JzLeJUlXrS73zFVqWDvh6SOWIptgZRo6JnpwCn5L\r
31  1uq8j6FxoMbz4CoVvRpLd6iUH1+hXP2Z92lD67XLpDGKt1LarqimOGvhbTZ3FwO/UtJT\r
32  sW+Gd88Y1eEa4QfpxkqFL5QyFm+Akvepw4+Nyy/A9og8hh+fkiOlMKA2gcjKh3VT0eMt\r
33  fGg2ym7z9O0Y/4eELgVOZmM44FtNJTWtj1V30q/iZphB2yCHhRU5NnxWkTzmgl8/0/KD\r
34  St6Q==\r
35 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
36  d=1e100.net; s=20130820;\r
37  h=x-gm-message-state:to:subject:in-reply-to:references:from:date\r
38  :message-id:mime-version;\r
39  bh=RYf1n/THyuVW+FPvo6KGEzUFqhS722YNfgSHZiq8PIQ=;\r
40  b=NIaJz9YwuWcCPr5IrICu7EBUZ/sIlRvIg41M0bCtrIy9yW64emQw/wu4RdxrCZwNLR\r
41  CXngvzPQmYZT6hOqpWKI/nJT0iVR9NfdK/Mc8g0SPuG2ubP/6gm/cOrutrBXk0kn30OO\r
42  NDxv/T9UvN/OVs86v4Fi8N5CsApiOZzimLwUzOQGNzUStkkLPR/ndJG+vTN8+ktJy/dl\r
43  CyoxDR/6f97IHLqdWtF2rDlWp92pKvitzLmS3/7x4pN6TZutlTwSjy45HduqzS+KzmVC\r
44  8zK78kGeCr3YHmnhuDkYLp9XUpX+yQcVcH1d8WQBcMxOo9vru0riuBrTSWQRUFjHBD3d\r
45  0SSA==\r
46 X-Gm-Message-State:\r
47  AOPr4FXd44pwlB91yWdj5pmHTYl/PMZ6E2VXgbiXdVoeK3pd9EqLnPB2gJsGF2ErPT6kqg==\r
48 X-Received: by 10.28.25.67 with SMTP id 64mr4543395wmz.10.1461940438506;\r
49  Fri, 29 Apr 2016 07:33:58 -0700 (PDT)\r
50 Received: from disaster-area.hh.sledj.net\r
51  ([2a01:348:1a2:1:ea39:35ff:fe2c:a227])\r
52  by smtp.gmail.com with ESMTPSA id gt7sm15074119wjc.1.2016.04.29.07.33.57\r
53  (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
54  Fri, 29 Apr 2016 07:33:57 -0700 (PDT)\r
55 Received: from localhost (disaster-area.hh.sledj.net [local])\r
56  by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 5a52364d;\r
57  Fri, 29 Apr 2016 14:33:56 +0000 (UTC)\r
58 To: sfischme@uwaterloo.ca, Notmuch Mail <notmuch@notmuchmail.org>\r
59 Subject: Re: message-default-mail-headers not working in notmuch 0.22\r
60 In-Reply-To: <87y47wmsfi.fsf@uwaterloo.ca>\r
61 References: <87y47wmsfi.fsf@uwaterloo.ca>\r
62 From: David Edmondson <dme@dme.org>\r
63 Date: Fri, 29 Apr 2016 15:33:56 +0100\r
64 Message-ID: <m2shy4eb6z.fsf@dme.org>\r
65 MIME-Version: 1.0\r
66 Content-Type: text/plain\r
67 X-BeenThere: notmuch@notmuchmail.org\r
68 X-Mailman-Version: 2.1.20\r
69 Precedence: list\r
70 List-Id: "Use and development of the notmuch mail system."\r
71  <notmuch.notmuchmail.org>\r
72 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
73  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
74 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
75 List-Post: <mailto:notmuch@notmuchmail.org>\r
76 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
77 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
78  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
79 X-List-Received-Date: Fri, 29 Apr 2016 14:34:09 -0000\r
80 \r
81 On Fri, Apr 29 2016, Sebastian Fischmeister wrote:\r
82 > After upgrading to notmuch 0.22, my emacs config seems broken:\r
83 >\r
84 > (setq message-default-mail-headers "Reply-to: me@example.com\nBcc: me@example.com")\r
85 >\r
86 > When creating a new mail, it has no header other than "To:" and\r
87 > "Subject:".\r
88 >\r
89 > Since I cannot find any item in the NEWS related to this release, is\r
90 > this expected behaviour?\r
91 \r
92 No, it's not intended. Please try this patch:\r
93 \r
94 diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el\r
95 index 0445975..399e138 100644\r
96 --- a/emacs/notmuch-mua.el\r
97 +++ b/emacs/notmuch-mua.el\r
98 @@ -338,7 +338,10 @@ modified. This function is notmuch addaptation of\r
99           ;; We need to convert any string input, eg from rmail-start-mail.\r
100           (dolist (h other-headers other-headers)\r
101             (if (stringp (car h)) (setcar h (intern (capitalize (car h))))))))\r
102 -       (args (list yank-action send-actions)))\r
103 +       (args (list yank-action send-actions))\r
104 +       ;; Cause `message-setup-1' to do things relevant for mail,\r
105 +       ;; such as observe `message-default-mail-headers'.\r
106 +       (message-this-is-mail t))\r
107      ;; message-setup-1 in Emacs 23 does not accept return-action\r
108      ;; argument. Pass it only if it is supplied by the caller. This\r
109      ;; will never be the case when we're called by `compose-mail' in\r