[PATCH] test: set mail host in emacs_deliver
[notmuch-archives.git] / 88 / 9d0c77f47728e328734828816d3a0a7ad94c95
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 olra.theworths.org (Postfix) with ESMTP id D83EF431FB6\r
6         for <notmuch@notmuchmail.org>; Sat, 12 Oct 2013 00:36:45 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.201\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
14         RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id 9Cvm1E8svkrB for <notmuch@notmuchmail.org>;\r
18         Sat, 12 Oct 2013 00:36:40 -0700 (PDT)\r
19 Received: from mail-wg0-f44.google.com (mail-wg0-f44.google.com\r
20  [74.125.82.44])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
21  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
22  A2CF4431FAE    for <notmuch@notmuchmail.org>; Sat, 12 Oct 2013 00:36:40 -0700\r
23  (PDT)\r
24 Received: by mail-wg0-f44.google.com with SMTP id n12so4277879wgh.35\r
25         for <notmuch@notmuchmail.org>; Sat, 12 Oct 2013 00:36:38 -0700 (PDT)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
27         h=from:to:cc:subject:date:message-id;\r
28         bh=h6CFFOXwggYsr5rwZogvuEKSyPvQuhCwAtQio60Fcbw=;\r
29         b=NrQLVfJpnbNCx/SIqg3xVGkag+s75N+2ZyD7sSlnfvMUzk3kNccKFnQLa90hHgsQmq\r
30         lpOKVz1++7/cwRR841vrCH8ablw01BZ/x9bU57Q81K+xL7tQqxUcwNnyzD03pO1PLQkb\r
31         cBSLJrvQJm1x+J9k4gXIhTxRidiKbgG29LKVuNpKWF82kjSUIkSAvTpdYa+7S/4+6KTN\r
32         aSaXSt7Fj3kSoSCLu8eBr7VcqihxqeyNDq9pzQ2levJU3/YK/AFcx303L0HEjOIMbaqa\r
33         JLV1qsjCgpp0HoH6dqacqv/r7AxUNx5zshXJWE43/347T5U7CC6EkR6T23lE8H92R5qt\r
34         r4RQ==\r
35 X-Received: by 10.194.123.8 with SMTP id lw8mr872432wjb.40.1381563396787;\r
36         Sat, 12 Oct 2013 00:36:36 -0700 (PDT)\r
37 Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
38         by mx.google.com with ESMTPSA id jf2sm12728394wic.2.1969.12.31.16.00.00\r
39         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
40         Sat, 12 Oct 2013 00:36:36 -0700 (PDT)\r
41 From: Mark Walters <markwalters1009@gmail.com>\r
42 To: notmuch@notmuchmail.org\r
43 Subject: [PATCH] test: set mail host in emacs_deliver\r
44 Date: Sat, 12 Oct 2013 08:36:30 +0100\r
45 Message-Id: <1381563390-19457-1-git-send-email-markwalters1009@gmail.com>\r
46 X-Mailer: git-send-email 1.7.9.1\r
47 X-BeenThere: notmuch@notmuchmail.org\r
48 X-Mailman-Version: 2.1.13\r
49 Precedence: list\r
50 List-Id: "Use and development of the notmuch mail system."\r
51         <notmuch.notmuchmail.org>\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
55 List-Post: <mailto:notmuch@notmuchmail.org>\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
59 X-List-Received-Date: Sat, 12 Oct 2013 07:36:46 -0000\r
60 \r
61 One test (reply to encrypted message in the crypto test) recently\r
62 started failing on some systems. The failure I saw were two extra\r
63 lines of the form\r
64 <87d2nbc5xg.fsf@host.i-did-not-set--mail-host-address--so-tickle-me>\r
65 \r
66 The test pipes the output through\r
67 \r
68 grep -v -e '^In-Reply-To:' -e '^References:'\r
69 \r
70 which would normally these two ids but it does not, in this case,\r
71 because they are so long they get put on a separate line in the output.\r
72 \r
73 To fix this we set mail-host-address for emacs deliver. example.com\r
74 seems a sensible address to use. This is short enough that we don't\r
75 get the line breaks above and the tests then all pass.\r
76 ---\r
77 \r
78 I don't know when this test started failing: I tried to bisect and it\r
79 went back quite a long way on machines which I thought had been\r
80 passing the tests. (It does look like things outside notmuch might\r
81 make some differences though so maybe this is not surprising)\r
82 \r
83 Best wishes\r
84 \r
85 Mark\r
86 \r
87 \r
88  test/test-lib.sh |    1 +\r
89  1 files changed, 1 insertions(+), 0 deletions(-)\r
90 \r
91 diff --git a/test/test-lib.sh b/test/test-lib.sh\r
92 index d3a8c58..2aa4dfc 100644\r
93 --- a/test/test-lib.sh\r
94 +++ b/test/test-lib.sh\r
95 @@ -445,6 +445,7 @@ emacs_deliver_message ()\r
96  \r
97      test_emacs \\r
98         "(let ((message-send-mail-function 'message-smtpmail-send-it)\r
99 +               (mail-host-address \"example.com\")\r
100                (smtpmail-smtp-server \"localhost\")\r
101                (smtpmail-smtp-service \"25025\"))\r
102            (notmuch-hello)\r
103 -- \r
104 1.7.9.1\r
105 \r