Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / 5e / 0c618b4b7cbac1a974a4932dc9bfe297967b41
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 A29636DE1B5B\r
6  for <notmuch@notmuchmail.org>; Tue,  9 Feb 2016 12:34:38 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.095\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.095 tagged_above=-999 required=5\r
12  tests=[AWL=-0.028, 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 e5-X8JSSN370 for <notmuch@notmuchmail.org>;\r
19  Tue,  9 Feb 2016 12:34:36 -0800 (PST)\r
20 Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com\r
21  [74.125.82.67]) by arlo.cworth.org (Postfix) with ESMTPS id F0DED6DE1778 for\r
22  <notmuch@notmuchmail.org>; Tue,  9 Feb 2016 12:34:35 -0800 (PST)\r
23 Received: by mail-wm0-f67.google.com with SMTP id c200so16093wme.0\r
24  for <notmuch@notmuchmail.org>; Tue, 09 Feb 2016 12:34:35 -0800 (PST)\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  :content-type; bh=MIC+FKc3gmAiaDnTTzmw2UZcGbtB+AIDuappfz/Ptsc=;\r
29  b=aRBoQE173RSTSkkLEv5LtSW6+kPsQCuq3SGUcs4G4H7Y69YxXwu51oXA+iRskkD2VR\r
30  4i0LEBdwppjddx9D9jd0nN8+ZlRl+rQYLfTzZqzT/6UqFo3F3NH4T5z7GqS4wltXpDlY\r
31  8wDEa/7b6R4OO0QWvQ8ogso3/hRnWwdBJqDYTaThjGrpOzJ8ACRN3RhUCM45r7g26PK2\r
32  JoVs2NKY0DnpOGx8LMUKyjbF9amR+rl1V/VmRc76uQB/YSGhNsiFDKI9vKyLupABu90v\r
33  YllxX6CnHNVsMwEIccyNwWCc3ds1QhQ5oyNDjluC2h6Xx7pnlJRbj9wnfzh6DcwSLPk0\r
34  RftA==\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:content-type;\r
39  bh=MIC+FKc3gmAiaDnTTzmw2UZcGbtB+AIDuappfz/Ptsc=;\r
40  b=e7ku3d9rCIO67/NX4UYrBExP4blkK6oQpnXYBYEJU0mKIiBqcxT71+PM6EsK5s3x8w\r
41  ZGU1TErA0X8u0lOU6bCrOfi4/RIu6pYCgtuCaP5aEmvJxRof63QFcEsUd366WhNQveuG\r
42  WuH/kQwAJEY+4y01D2PqRWS/5fnTfMuSflGj+hgEKJKYCu01h8dws1F8n5ccx5qvr2cM\r
43  Q7N3lm/sUamWafFa46vxX2IlYOtvR1nAec5FA2nbSmgMdrv1x2Gdx5IA4o8XYqTZYMRp\r
44  mOxT2yQzmCLsvlFlGQucRZ70kCNQ0D6qiLGLrInD62WCslHCyu1+9bk7dzwXfJyV9lhG\r
45  l42g==\r
46 X-Gm-Message-State:\r
47  AG10YOT0OS9Q6sEQB/hn1hxq4WpZ41LLhDhIBmigNYGUgigFtGIvPXqFLbFpEHNmoS7dag==\r
48 X-Received: by 10.194.23.232 with SMTP id p8mr41650543wjf.80.1455050074646;\r
49  Tue, 09 Feb 2016 12:34:34 -0800 (PST)\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 ka4sm36360361wjc.47.2016.02.09.12.34.33\r
53  (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
54  Tue, 09 Feb 2016 12:34:33 -0800 (PST)\r
55 Received: from localhost (disaster-area.hh.sledj.net [local])\r
56  by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 740f338b;\r
57  Tue, 9 Feb 2016 20:34:32 +0000 (UTC)\r
58 To: Mark Walters <markwalters1009@gmail.com>, notmuch@notmuchmail.org\r
59 Subject: Re: [PATCH v4 7/7] test: fix the tests for the new reply code\r
60 In-Reply-To: <1446894276-7814-8-git-send-email-markwalters1009@gmail.com>\r
61 References: <1446894276-7814-1-git-send-email-markwalters1009@gmail.com>\r
62  <1446894276-7814-8-git-send-email-markwalters1009@gmail.com>\r
63 From: David Edmondson <dme@dme.org>\r
64 Date: Tue, 09 Feb 2016 20:34:32 +0000\r
65 Message-ID: <m2wpqd39nr.fsf@dme.org>\r
66 MIME-Version: 1.0\r
67 Content-Type: text/plain\r
68 X-BeenThere: notmuch@notmuchmail.org\r
69 X-Mailman-Version: 2.1.20\r
70 Precedence: list\r
71 List-Id: "Use and development of the notmuch mail system."\r
72  <notmuch.notmuchmail.org>\r
73 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
74  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
75 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
76 List-Post: <mailto:notmuch@notmuchmail.org>\r
77 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
78 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
79  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
80 X-List-Received-Date: Tue, 09 Feb 2016 20:34:38 -0000\r
81 \r
82 On Sat, Nov 07 2015, Mark Walters wrote:\r
83 > This sets the part-insertion code to never insert part headers (as we\r
84 > didn't before).\r
85 >\r
86 > With that change there is only one failing test: this test has a text\r
87 > part (an email message) listed as application/octet-stream. Notmuch\r
88 > show displays this part, but the reply code omitted it as it had type\r
89 > application/octet-stream. The new code correctly includes it. Thus\r
90 > update the expected output to match.\r
91 \r
92 Looks fine.\r
93 \r
94 > ---\r
95 >  test/T310-emacs.sh | 32 ++++++++++++++++++++++++++++++++\r
96 >  test/test-lib.el   |  4 ++++\r
97 >  2 files changed, 36 insertions(+)\r
98 >\r
99 > diff --git a/test/T310-emacs.sh b/test/T310-emacs.sh\r
100 > index 61bc369..22ca71c 100755\r
101 > --- a/test/T310-emacs.sh\r
102 > +++ b/test/T310-emacs.sh\r
103 > @@ -473,6 +473,38 @@ Alex Botero-Lowry <alex.boterolowry@gmail.com> writes:\r
104 >  > and http://mail-index.netbsd.org/pkgsrc-bugs/2006/06/07/msg016808.htmlspecifically\r
105 >  > uses 64 as the\r
106 >  > buffer size.\r
107 > +> From e3bc4bbd7b9d0d086816ab5f8f2d6ffea1dd3ea4 Mon Sep 17 00:00:00 2001\r
108 > +> From: Alexander Botero-Lowry <alex.boterolowry@gmail.com>\r
109 > +> Date: Tue, 17 Nov 2009 11:30:39 -0800\r
110 > +> Subject: [PATCH] Deal with situation where sysconf(_SC_GETPW_R_SIZE_MAX) returns -1\r
111 > +>\r
112 > +> ---\r
113 > +>  notmuch-config.c |    2 ++\r
114 > +>  1 files changed, 2 insertions(+), 0 deletions(-)\r
115 > +>\r
116 > +> diff --git a/notmuch-config.c b/notmuch-config.c\r
117 > +> index 248149c..e7220d8 100644\r
118 > +> --- a/notmuch-config.c\r
119 > +> +++ b/notmuch-config.c\r
120 > +> @@ -77,6 +77,7 @@ static char *\r
121 > +>  get_name_from_passwd_file (void *ctx)\r
122 > +>  {\r
123 > +>      long pw_buf_size = sysconf(_SC_GETPW_R_SIZE_MAX);\r
124 > +> +    if (pw_buf_size == -1) pw_buf_size = 64;\r
125 > +>      char *pw_buf = talloc_zero_size (ctx, pw_buf_size);\r
126 > +>      struct passwd passwd, *ignored;\r
127 > +>      char *name;\r
128 > +> @@ -101,6 +102,7 @@ static char *\r
129 > +>  get_username_from_passwd_file (void *ctx)\r
130 > +>  {\r
131 > +>      long pw_buf_size = sysconf(_SC_GETPW_R_SIZE_MAX);\r
132 > +> +    if (pw_buf_size == -1) pw_buf_size = 64;\r
133 > +>      char *pw_buf = talloc_zero_size (ctx, pw_buf_size);\r
134 > +>      struct passwd passwd, *ignored;\r
135 > +>      char *name;\r
136 > +> -- \r
137 > +> 1.6.5.2\r
138 > +>\r
139 >  > _______________________________________________\r
140 >  > notmuch mailing list\r
141 >  > notmuch@notmuchmail.org\r
142 > diff --git a/test/test-lib.el b/test/test-lib.el\r
143 > index 04c8d63..6e1689a 100644\r
144 > --- a/test/test-lib.el\r
145 > +++ b/test/test-lib.el\r
146 > @@ -184,6 +184,10 @@ (defmacro notmuch-test-progn (&rest body)\r
147 >  (setq notmuch-tag-deleted-formats\r
148 >        '((".*" nil)))\r
149 >  \r
150 > +;; For historical reasonse we don't print part headers when replying\r
151 > +;; in the tests suite\r
152 > +(setq notmuch-mua-reply-insert-header-p-function 'notmuch-show-reply-insert-header-p-never)\r
153 > +\r
154 >  ;; force a common html renderer, to avoid test variations between\r
155 >  ;; environments\r
156 >  \r
157 > -- \r
158 > 2.1.4\r
159 >\r
160 > _______________________________________________\r
161 > notmuch mailing list\r
162 > notmuch@notmuchmail.org\r
163 > https://notmuchmail.org/mailman/listinfo/notmuch\r