[PATCH] cli: add a tool for starting new message in the emacs ui
[notmuch-archives.git] / fe / 0f267ce50d01bc4e59dc4c26ec9863675735ec
1 Return-Path: <pieter@praet.org>\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 B0408429E25\r
6         for <notmuch@notmuchmail.org>; Fri, 13 May 2011 08:08:15 -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.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id PqB2E1s8sIQt for <notmuch@notmuchmail.org>;\r
16         Fri, 13 May 2011 08:08:14 -0700 (PDT)\r
17 Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com\r
18         [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 0C6A8429E2F\r
21         for <notmuch@notmuchmail.org>; Fri, 13 May 2011 08:08:11 -0700 (PDT)\r
22 Received: by mail-wy0-f181.google.com with SMTP id 11so2198850wyi.26\r
23         for <notmuch@notmuchmail.org>; Fri, 13 May 2011 08:08:11 -0700 (PDT)\r
24 Received: by 10.216.143.74 with SMTP id k52mr1506596wej.0.1305299291573;\r
25         Fri, 13 May 2011 08:08:11 -0700 (PDT)\r
26 Received: from localhost (54.209-242-81.adsl-dyn.isp.belgacom.be\r
27         [81.242.209.54])\r
28         by mx.google.com with ESMTPS id f52sm1190803wes.35.2011.05.13.08.08.09\r
29         (version=TLSv1/SSLv3 cipher=OTHER);\r
30         Fri, 13 May 2011 08:08:10 -0700 (PDT)\r
31 From: Pieter Praet <pieter@praet.org>\r
32 To: Notmuch Mail <notmuch@notmuchmail.org>\r
33 Subject: [PATCH 2/3] test: emacs: add subtest "Verify that 'replied' tag is\r
34         added to reply's parent message."\r
35 Date: Fri, 13 May 2011 17:07:49 +0200\r
36 Message-Id: <1305299270-4316-2-git-send-email-pieter@praet.org>\r
37 X-Mailer: git-send-email 1.7.4.1\r
38 In-Reply-To: <1305299270-4316-1-git-send-email-pieter@praet.org>\r
39 References: <1305275652-22956-1-git-send-email-pieter@praet.org>\r
40         <1305299270-4316-1-git-send-email-pieter@praet.org>\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Fri, 13 May 2011 15:08:16 -0000\r
54 \r
55 Signed-off-by: Pieter Praet <pieter@praet.org>\r
56 ---\r
57  test/emacs |    4 ++++\r
58  1 files changed, 4 insertions(+), 0 deletions(-)\r
59 \r
60 diff --git a/test/emacs b/test/emacs\r
61 index 18d8322..c0fba52 100755\r
62 --- a/test/emacs\r
63 +++ b/test/emacs\r
64 @@ -142,6 +142,10 @@ On Fri, 29 Mar 1974 10:00:00 -0000, Notmuch Test Suite <test_suite@notmuchmail.o\r
65  \r
66  Reply to a message via Emacs with fake SMTP"\r
67  \r
68 +test_begin_subtest "Verify that 'replied' tag is added to reply's parent message."\r
69 +notmuch new > /dev/null # update message count\r
70 +output=$(notmuch search 'tag:replied' | notmuch_search_sanitize)\r
71 +test_expect_equal "$output" "thread:XXX   1974-03-29 [1/2] Notmuch Test Suite; Testing message sent via SMTP (inbox replied)"\r
72  \r
73  test_begin_subtest "Save attachment from within emacs"\r
74  echo "./attachment" | test_emacs '(notmuch-show "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com") (notmuch-show-save-attachments)' > /dev/null 2>&1\r
75 -- \r
76 1.7.4.1\r
77 \r