unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] test: set mail host in emacs_deliver
@ 2013-10-12  7:36 Mark Walters
  2013-10-14 11:36 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Walters @ 2013-10-12  7:36 UTC (permalink / raw)
  To: notmuch

One test (reply to encrypted message in the crypto test) recently
started failing on some systems. The failure I saw were two extra
lines of the form
<87d2nbc5xg.fsf@host.i-did-not-set--mail-host-address--so-tickle-me>

The test pipes the output through

grep -v -e '^In-Reply-To:' -e '^References:'

which would normally these two ids but it does not, in this case,
because they are so long they get put on a separate line in the output.

To fix this we set mail-host-address for emacs deliver. example.com
seems a sensible address to use. This is short enough that we don't
get the line breaks above and the tests then all pass.
---

I don't know when this test started failing: I tried to bisect and it
went back quite a long way on machines which I thought had been
passing the tests. (It does look like things outside notmuch might
make some differences though so maybe this is not surprising)

Best wishes

Mark


 test/test-lib.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/test/test-lib.sh b/test/test-lib.sh
index d3a8c58..2aa4dfc 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -445,6 +445,7 @@ emacs_deliver_message ()
 
     test_emacs \
 	"(let ((message-send-mail-function 'message-smtpmail-send-it)
+               (mail-host-address \"example.com\")
 	       (smtpmail-smtp-server \"localhost\")
 	       (smtpmail-smtp-service \"25025\"))
 	   (notmuch-hello)
-- 
1.7.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] test: set mail host in emacs_deliver
  2013-10-12  7:36 [PATCH] test: set mail host in emacs_deliver Mark Walters
@ 2013-10-14 11:36 ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2013-10-14 11:36 UTC (permalink / raw)
  To: Mark Walters, notmuch

Mark Walters <markwalters1009@gmail.com> writes:

> One test (reply to encrypted message in the crypto test) recently
> started failing on some systems. The failure I saw were two extra
> lines of the form
> <87d2nbc5xg.fsf@host.i-did-not-set--mail-host-address--so-tickle-me>
>

pushed, thanks. Now I can rebuild notmuch on my office machine again.

d

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-14 11:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-12  7:36 [PATCH] test: set mail host in emacs_deliver Mark Walters
2013-10-14 11:36 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).