]> git.notmuchmail.org Git - notmuch/commitdiff
test: set mail host in emacs_deliver
authorMark Walters <markwalters1009@gmail.com>
Sat, 12 Oct 2013 07:36:30 +0000 (08:36 +0100)
committerDavid Bremner <bremner@debian.org>
Mon, 14 Oct 2013 11:23:07 +0000 (08:23 -0300)
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.

test/test-lib.sh

index d3a8c58e97b92eb5382341860fb0e493aa8209b2..2aa4dfc958acf0cf1275fc339f0cc5eb7133b69e 100644 (file)
@@ -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)