[PATCH v2 03/14] cli/reply: reuse show_reply_headers() in headers-only format
[notmuch-archives.git] / 06 / 079a0d2001801e440533da193e407a211f7d81
1 Return-Path: <dmitry.kurochkin@gmail.com>\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 78CE5429E5B\r
6         for <notmuch@notmuchmail.org>; Tue, 31 Jan 2012 03:42:20 -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: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id LPu0-ksR-Het for <notmuch@notmuchmail.org>;\r
17         Tue, 31 Jan 2012 03:42:19 -0800 (PST)\r
18 Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com\r
19         [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id A7912429E34\r
22         for <notmuch@notmuchmail.org>; Tue, 31 Jan 2012 03:42:19 -0800 (PST)\r
23 Received: by bke11 with SMTP id 11so2430587bke.26\r
24         for <notmuch@notmuchmail.org>; Tue, 31 Jan 2012 03:42:16 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
27         :mime-version:content-type;\r
28         bh=ZkOUcgBODT0bJEu5wMZzxXKciOIACr3BYcwVNN+qufM=;\r
29         b=qRMJyUMtPPtP96DDSrE4kk2BQ0f9iOn/SLd1YRSO61cTySOdL4J5J5di5ecxryU1tD\r
30         Qm7qxegyEgruFXpzkFeHlY9snha+08ylL5h3GrHyadXYw7JKD6yzgVItERzb8cJBHkZL\r
31         M1KJdKzxizvHuoPzZtwtwGMgljykp8ucW1D9M=\r
32 Received: by 10.205.141.66 with SMTP id jd2mr4797559bkc.95.1328010136826;\r
33         Tue, 31 Jan 2012 03:42:16 -0800 (PST)\r
34 Received: from localhost ([91.144.186.21])\r
35         by mx.google.com with ESMTPS id d2sm44489668bky.11.2012.01.31.03.42.15\r
36         (version=TLSv1/SSLv3 cipher=OTHER);\r
37         Tue, 31 Jan 2012 03:42:16 -0800 (PST)\r
38 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
39 To: David Edmondson <dme@dme.org>, notmuch@notmuchmail.org\r
40 Subject: Re: [PATCH] emacs: Move the blank line from the bottom of the headers\r
41         to the top of the body.\r
42 In-Reply-To: <1327942340-23340-1-git-send-email-dme@dme.org>\r
43 References: <1327942340-23340-1-git-send-email-dme@dme.org>\r
44 User-Agent: Notmuch/0.11+139~gd9b7cab (http://notmuchmail.org) Emacs/23.3.1\r
45         (x86_64-pc-linux-gnu)\r
46 Date: Tue, 31 Jan 2012 15:41:05 +0400\r
47 Message-ID: <87vcnsm75a.fsf@gmail.com>\r
48 MIME-Version: 1.0\r
49 Content-Type: text/plain; charset=us-ascii\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Tue, 31 Jan 2012 11:42:20 -0000\r
63 \r
64 On Mon, 30 Jan 2012 16:52:20 +0000, David Edmondson <dme@dme.org> wrote:\r
65 > The blank line doesn't really change position, but is now considered\r
66 > to be part of the body rather than part of the headers. This means\r
67 > that it is visible when the body is visible rather than when the\r
68 > headers are visible.\r
69 > ---\r
70\r
71 > I'm interested in getting feedback on this.\r
72\r
73 > Unless you run with `notmuch-message-headers-visible' set to `nil' or\r
74 > regularly toggle header visibility, you probably don't care.\r
75\r
76 \r
77 +1\r
78 \r
79 Regards,\r
80   Dmitry\r
81 \r
82 >  emacs/notmuch-show.el |    4 ++--\r
83 >  1 files changed, 2 insertions(+), 2 deletions(-)\r
84\r
85 > diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
86 > index 84ac624..73f73d4 100644\r
87 > --- a/emacs/notmuch-show.el\r
88 > +++ b/emacs/notmuch-show.el\r
89 > @@ -854,8 +854,6 @@ current buffer, if possible."\r
90 >      ;; compatible with the existing implementation. This just sets it\r
91 >      ;; to after the first header.\r
92 >      (notmuch-show-insert-headers headers)\r
93 > -    ;; Headers should include a blank line (backwards compatibility).\r
94 > -    (insert "\n")\r
95 >      (save-excursion\r
96 >        (goto-char content-start)\r
97 >        ;; If the subject of this message is the same as that of the\r
98 > @@ -870,6 +868,8 @@ current buffer, if possible."\r
99 >      (setq notmuch-show-previous-subject bare-subject)\r
100 >  \r
101 >      (setq body-start (point-marker))\r
102 > +    ;; A blank line between the headers and the body.\r
103 > +    (insert "\n")\r
104 >      (notmuch-show-insert-body msg (plist-get msg :body) depth)\r
105 >      ;; Ensure that the body ends with a newline.\r
106 >      (unless (bolp)\r
107 > -- \r
108 > 1.7.8.3\r
109\r
110 > _______________________________________________\r
111 > notmuch mailing list\r
112 > notmuch@notmuchmail.org\r
113 > http://notmuchmail.org/mailman/listinfo/notmuch\r