unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 0bdd197f0e74af9d7dfa68850951bae7f40e3835 1060 bytes (raw)
name: test/T730-emacs-forwarding.sh 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
#!/usr/bin/env bash

test_description="emacs forwarding"
. $(dirname "$0")/test-lib.sh || exit 1

test_begin_subtest "Forward setting the correct references header"
message_id='OriginalMessage@notmuchmail.org'
add_message \
    [id]="$message_id" \
    '[from]="user@example.com"' \
    '[subject]="This is the original message"' \
    '[body]="-----Original Message-----
Text here."'

test_emacs "(let ((message-hidden-headers ())
	          (notmuch-fcc-dirs ()))
	     (notmuch-show \"id:$message_id\")
	     (notmuch-show-forward-message)
             (run-hooks 'notmuch-mua-send-hook)
	     (message-narrow-to-headers)
	     (test-visible-output))
            (run-hooks 'notmuch-mua-send-hook)"

cat <<EOF >EXPECTED
From: Notmuch Test Suite <test_suite@notmuchmail.org>
To: 
Subject: [user@example.com] This is the original message
References: <$message_id>
EOF
test_expect_equal_file EXPECTED OUTPUT

test_begin_subtest "Forwarding adding the forwarded tag"
test_expect_equal $(notmuch search --output=messages tag:forwarded) id:$message_id

test_done

debug log:

solving 0bdd197f ...
found 0bdd197f in https://yhetil.org/notmuch/20190404230126.4283-5-ekeberg@kth.se/

applying [1/1] https://yhetil.org/notmuch/20190404230126.4283-5-ekeberg@kth.se/
diff --git a/test/T730-emacs-forwarding.sh b/test/T730-emacs-forwarding.sh
new file mode 100755
index 00000000..0bdd197f

1:32: trailing whitespace.
To: 
Checking patch test/T730-emacs-forwarding.sh...
Applied patch test/T730-emacs-forwarding.sh cleanly.
warning: 1 line adds whitespace errors.

index at:
100755 0bdd197f0e74af9d7dfa68850951bae7f40e3835	test/T730-emacs-forwarding.sh

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

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).