Re: [PATCH v4 08/16] reorganize indexing of multipart/signed and multipart/encrypted
[notmuch-archives.git] / f9 / 9f98d8bd4a4a6f5948895603ffe195df34864b
1 Return-Path: <markwalters1009@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 arlo.cworth.org (Postfix) with ESMTP id 2176E6DE1ABD\r
6  for <notmuch@notmuchmail.org>; Sun, 14 Feb 2016 10:40:39 -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.252\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.252 tagged_above=-999 required=5 tests=[AWL=0.318,\r
12   DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13  FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7,\r
14  RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-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 F5Ro50kCSfYh for <notmuch@notmuchmail.org>;\r
19  Sun, 14 Feb 2016 10:40:36 -0800 (PST)\r
20 Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com\r
21  [74.125.82.66]) by arlo.cworth.org (Postfix) with ESMTPS id D74596DE1A2F for\r
22  <notmuch@notmuchmail.org>; Sun, 14 Feb 2016 10:40:25 -0800 (PST)\r
23 Received: by mail-wm0-f66.google.com with SMTP id c200so12198702wme.0\r
24  for <notmuch@notmuchmail.org>; Sun, 14 Feb 2016 10:40:25 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26  h=from:to:cc:subject:date:message-id:in-reply-to:references;\r
27  bh=t6Z+I/U2kV6EPFXiti1hnP6pfo6O2iMbWv/rZONfxE0=;\r
28  b=IZ7233ITgZ1Mr0WNkNcRczRBZUB6yeNVsRes99PvddR3aHIQtH7YC+e9pKQeYAg/Ii\r
29  vAna35V2TsoSS7byf80k5pZW6dHrf3mqQ+FfEjlbBpZlgaROlDcgbOzLkHoYGiWulIof\r
30  WpWtUmAJR+xPvTe/lFz5MJrJLzFgdxwYcjjSDt7iDXfsZKk9YfoEOPgKn4Tl/pcR+O3p\r
31  1g6g9iA9geLrIAsUHuqnaGtI0KInnAZBGeIRUV4hQNbjWq8WdAZOTaZg6QWq8gMjbs1K\r
32  9JAl0MdlKFGMu+bSaE2GpWUoEMnX3HiFbLCyDy7F8s1eu80guE24/xqELgeLGP1rDmNC\r
33  /K9Q==\r
34 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
35  d=1e100.net; s=20130820;\r
36  h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\r
37  :references;\r
38  bh=t6Z+I/U2kV6EPFXiti1hnP6pfo6O2iMbWv/rZONfxE0=;\r
39  b=Isx0OJ61nj/BgPSBsrYXxIuWhNstbk3FaaX8uj9MxqkIqk5Sr7mznFD83r4yvdYnno\r
40  tdRX3mu0NG09LJVjpMrVb7SITG3dFNZ/fIcEi93QpnO5Q1/I2BdUZPpyicPeDHFQiF6z\r
41  Mpy86tkXkMcjBLK1KUIwCZ9ia6J1m4rzZ0zKhw7Sf1b1Rg2syaas7QVbnry9IZSfqJXB\r
42  WXL5SPX8ETtkjR9pKbTV38QTbFN3XPzidjNegIvz/iaT0fWuNMfSfrczdm8IcPpyjD8Z\r
43  EbotipYjUoUvhSgocyqh8fLNKMGhxiqS5H7ne76RKtYx2AQphWj6Hk82sE+Ev5EsxZii\r
44  gupw==\r
45 X-Gm-Message-State:\r
46  AG10YOQGqAdHtw0xa6NUy6+Rbki0GQpywY2xyrVvsV7mz7jBZEtrYNV2oZHC+y1LG4gQNw==\r
47 X-Received: by 10.28.136.139 with SMTP id k133mr8781952wmd.103.1455475224572; \r
48  Sun, 14 Feb 2016 10:40:24 -0800 (PST)\r
49 Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162])\r
50  by smtp.gmail.com with ESMTPSA id ka4sm21737310wjc.47.2016.02.14.10.40.23\r
51  (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
52  Sun, 14 Feb 2016 10:40:24 -0800 (PST)\r
53 From: Mark Walters <markwalters1009@gmail.com>\r
54 To: notmuch@notmuchmail.org\r
55 Subject: [PATCH v5 7/7] test: fix the tests for the new reply code\r
56 Date: Sun, 14 Feb 2016 18:39:59 +0000\r
57 Message-Id: <1455475199-32622-8-git-send-email-markwalters1009@gmail.com>\r
58 X-Mailer: git-send-email 2.1.4\r
59 In-Reply-To: <1455475199-32622-1-git-send-email-markwalters1009@gmail.com>\r
60 References: <1455475199-32622-1-git-send-email-markwalters1009@gmail.com>\r
61 X-BeenThere: notmuch@notmuchmail.org\r
62 X-Mailman-Version: 2.1.20\r
63 Precedence: list\r
64 List-Id: "Use and development of the notmuch mail system."\r
65  <notmuch.notmuchmail.org>\r
66 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
67  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
68 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
69 List-Post: <mailto:notmuch@notmuchmail.org>\r
70 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
71 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
72  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
73 X-List-Received-Date: Sun, 14 Feb 2016 18:40:39 -0000\r
74 \r
75 This sets the part-insertion code to never insert part headers (as we\r
76 didn't before).\r
77 \r
78 With that change there is only one failing test: this test has a text\r
79 part (an email message) listed as application/octet-stream. Notmuch\r
80 show displays this part, but the reply code omitted it as it had type\r
81 application/octet-stream. The new code correctly includes it. Thus\r
82 update the expected output to match.\r
83 ---\r
84  test/T310-emacs.sh | 32 ++++++++++++++++++++++++++++++++\r
85  test/test-lib.el   |  4 ++++\r
86  2 files changed, 36 insertions(+)\r
87 \r
88 diff --git a/test/T310-emacs.sh b/test/T310-emacs.sh\r
89 index 61bc369..22ca71c 100755\r
90 --- a/test/T310-emacs.sh\r
91 +++ b/test/T310-emacs.sh\r
92 @@ -473,6 +473,38 @@ Alex Botero-Lowry <alex.boterolowry@gmail.com> writes:\r
93  > and http://mail-index.netbsd.org/pkgsrc-bugs/2006/06/07/msg016808.htmlspecifically\r
94  > uses 64 as the\r
95  > buffer size.\r
96 +> From e3bc4bbd7b9d0d086816ab5f8f2d6ffea1dd3ea4 Mon Sep 17 00:00:00 2001\r
97 +> From: Alexander Botero-Lowry <alex.boterolowry@gmail.com>\r
98 +> Date: Tue, 17 Nov 2009 11:30:39 -0800\r
99 +> Subject: [PATCH] Deal with situation where sysconf(_SC_GETPW_R_SIZE_MAX) returns -1\r
100 +>\r
101 +> ---\r
102 +>  notmuch-config.c |    2 ++\r
103 +>  1 files changed, 2 insertions(+), 0 deletions(-)\r
104 +>\r
105 +> diff --git a/notmuch-config.c b/notmuch-config.c\r
106 +> index 248149c..e7220d8 100644\r
107 +> --- a/notmuch-config.c\r
108 +> +++ b/notmuch-config.c\r
109 +> @@ -77,6 +77,7 @@ static char *\r
110 +>  get_name_from_passwd_file (void *ctx)\r
111 +>  {\r
112 +>      long pw_buf_size = sysconf(_SC_GETPW_R_SIZE_MAX);\r
113 +> +    if (pw_buf_size == -1) pw_buf_size = 64;\r
114 +>      char *pw_buf = talloc_zero_size (ctx, pw_buf_size);\r
115 +>      struct passwd passwd, *ignored;\r
116 +>      char *name;\r
117 +> @@ -101,6 +102,7 @@ static char *\r
118 +>  get_username_from_passwd_file (void *ctx)\r
119 +>  {\r
120 +>      long pw_buf_size = sysconf(_SC_GETPW_R_SIZE_MAX);\r
121 +> +    if (pw_buf_size == -1) pw_buf_size = 64;\r
122 +>      char *pw_buf = talloc_zero_size (ctx, pw_buf_size);\r
123 +>      struct passwd passwd, *ignored;\r
124 +>      char *name;\r
125 +> -- \r
126 +> 1.6.5.2\r
127 +>\r
128  > _______________________________________________\r
129  > notmuch mailing list\r
130  > notmuch@notmuchmail.org\r
131 diff --git a/test/test-lib.el b/test/test-lib.el\r
132 index 596a705..02e020c 100644\r
133 --- a/test/test-lib.el\r
134 +++ b/test/test-lib.el\r
135 @@ -184,6 +184,10 @@ nothing."\r
136  (setq notmuch-tag-deleted-formats\r
137        '((".*" nil)))\r
138  \r
139 +;; For historical reasonse we don't print part headers when replying\r
140 +;; in the tests suite\r
141 +(setq notmuch-mua-reply-insert-header-p-function 'notmuch-show-reply-insert-header-p-never)\r
142 +\r
143  ;; force a common html renderer, to avoid test variations between\r
144  ;; environments\r
145  \r
146 -- \r
147 2.1.4\r
148 \r