Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / 89 / 2c90876ee5b7a62fd8997133574267562f3224
1 Return-Path: <dmitry.kurochkin@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 CA2AC429E55\r
6         for <notmuch@notmuchmail.org>; Mon, 27 Jun 2011 21:45:50 -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.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id xnzkA11FSDE1 for <notmuch@notmuchmail.org>;\r
17         Mon, 27 Jun 2011 21:45:49 -0700 (PDT)\r
18 Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com\r
19         [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 71C36421162\r
22         for <notmuch@notmuchmail.org>; Mon, 27 Jun 2011 21:45:41 -0700 (PDT)\r
23 Received: by mail-bw0-f53.google.com with SMTP id 12so4889638bwg.26\r
24         for <notmuch@notmuchmail.org>; Mon, 27 Jun 2011 21:45:41 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer\r
27         :in-reply-to:references;\r
28         bh=CDcgU5fdHp3WMIZFVedVa+Ku0+Yx920QD1lDH4RuU4o=;\r
29         b=TQMs9UO/ifK0mTghvvuOX/r7+IEjOvy9NKfJ4dyLOygNz+KarOY3q/TDlN/1CdJjjC\r
30         /NVpVA4zlBpjjqgwDCDT2xyGRH0sAUGaGQVvR59D8ti6YvK3oqT1hcfVYFQlf7D493hi\r
31         I4NXPuSbqmLxM6Xn7lUWNmlYxD0NOQi2JsU8k=\r
32 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
33         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
34         b=k1rzL5U4ithfsEYDcaRRL2QSH+5Jhor/98Ca/ylzjvZ3SvnUMLCTq4nn9a4RRfutni\r
35         mVlFYH5O6xa+xZq/WcP3FhwTUhEW2RnU9ym4XIaSD98aAiGlY5KhWlpVN1AIf84WAoAJ\r
36         8YaLjiHfMagPZOU58ug7nUYJTc8deRJQ19wj8=\r
37 Received: by 10.204.26.215 with SMTP id f23mr5281858bkc.140.1309236341120;\r
38         Mon, 27 Jun 2011 21:45:41 -0700 (PDT)\r
39 Received: from localhost ([91.144.186.21])\r
40         by mx.google.com with ESMTPS id ek1sm4739592bkb.21.2011.06.27.21.45.40\r
41         (version=TLSv1/SSLv3 cipher=OTHER);\r
42         Mon, 27 Jun 2011 21:45:40 -0700 (PDT)\r
43 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
44 To: notmuch@notmuchmail.org\r
45 Subject: [PATCH 06/10] test: remove some sed(1) calls in Emacs tests\r
46 Date: Tue, 28 Jun 2011 08:45:07 +0400\r
47 Message-Id: <1309236311-2162-6-git-send-email-dmitry.kurochkin@gmail.com>\r
48 X-Mailer: git-send-email 1.7.5.4\r
49 In-Reply-To: <1309236311-2162-1-git-send-email-dmitry.kurochkin@gmail.com>\r
50 References: <1309236311-2162-1-git-send-email-dmitry.kurochkin@gmail.com>\r
51 X-BeenThere: notmuch@notmuchmail.org\r
52 X-Mailman-Version: 2.1.13\r
53 Precedence: list\r
54 List-Id: "Use and development of the notmuch mail system."\r
55         <notmuch.notmuchmail.org>\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
59 List-Post: <mailto:notmuch@notmuchmail.org>\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
63 X-List-Received-Date: Tue, 28 Jun 2011 04:45:51 -0000\r
64 \r
65 Few Emacs tests used sed(1) to remove unexpected output in the\r
66 beginning to avoid getting confused by messages such as "Parsing\r
67 /home/cworth/.mailrc... done".  This is no longer needed since\r
68 tests are run in a temporary home directory instead of the user's\r
69 one.  So remove these sed(1) calls.\r
70 ---\r
71  test/emacs |    5 -----\r
72  1 files changed, 0 insertions(+), 5 deletions(-)\r
73 \r
74 diff --git a/test/emacs b/test/emacs\r
75 index 8f8b841..4592005 100755\r
76 --- a/test/emacs\r
77 +++ b/test/emacs\r
78 @@ -250,13 +250,10 @@ EOF\r
79  test_expect_equal_file OUTPUT EXPECTED\r
80  \r
81  test_begin_subtest "Reply within emacs"\r
82 -# We sed away everything before the ^From in the output to avoid getting\r
83 -# confused by messages such as "Parsing /home/cworth/.mailrc... done"\r
84  test_emacs '(notmuch-search "subject:\"testing message sent via SMTP\"")\r
85             (notmuch-test-wait)\r
86             (notmuch-search-reply-to-thread)\r
87             (test-output)'\r
88 -sed -i -ne '/^From/,$ p' OUTPUT\r
89  sed -i -e 's/^In-Reply-To: <.*>$/In-Reply-To: <XXX>/' OUTPUT\r
90  cat <<EOF >EXPECTED\r
91  From: Notmuch Test Suite <test_suite@notmuchmail.org>\r
92 @@ -284,11 +281,9 @@ test_emacs '(notmuch-show-save-part "id:cf0c4d610911171136h1713aa59w9cf9aa31f052\r
93  test_expect_equal_file attachment2.gz "$EXPECTED/attachment"\r
94  \r
95  test_begin_subtest "View raw message within emacs"\r
96 -first_line=$(head -n1 $EXPECTED/raw-message-cf0c4d-52ad0a)\r
97  test_emacs '(notmuch-show "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com")\r
98             (notmuch-show-view-raw-message)\r
99             (test-output)'\r
100 -sed -i -ne "/$first_line/,\$ p" OUTPUT\r
101  test_expect_equal_file OUTPUT $EXPECTED/raw-message-cf0c4d-52ad0a\r
102  \r
103  test_begin_subtest "Hiding/showing signature in notmuch-show view"\r
104 -- \r
105 1.7.5.4\r
106 \r