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 0F16D429E2C
\r
6 for <notmuch@notmuchmail.org>; Thu, 12 May 2011 06:56:21 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 c+NmSrGVc38a for <notmuch@notmuchmail.org>;
\r
17 Thu, 12 May 2011 06:56:17 -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 8C5F2431FB6
\r
22 for <notmuch@notmuchmail.org>; Thu, 12 May 2011 06:56:17 -0700 (PDT)
\r
23 Received: by bwg12 with SMTP id 12so1388034bwg.26
\r
24 for <notmuch@notmuchmail.org>; Thu, 12 May 2011 06:56:15 -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=koq4PaH7rtKrHMqaxFWOmoPr6qSoOexc0jM6qsNPkRY=;
\r
29 b=qZ+qc5wUofpiQbi8c9IaOPd4b+a2cUFUubi6XAzzConWZZAudZ92PyiATyN2CDMTmv
\r
30 EBNhbRr/JwdNvYNHO3Ja80eugPu5R9bT5dyFIhfiD6XqQ02NAt91pxu/4OszSODbJo85
\r
31 Fa/jtzng7dAaxSLwJobaSdI4waZngE6xtiF08=
\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=R67+O6aGUA8vouAHUea1V8zSrex48G1H+Jw9RyfkzoIi8BCmvYkGgFY7xXpwpXnovk
\r
35 Lr5hybvPqw4ZtG12pkzmhKaZbrDco/8qdNq2M1jr5gKCRQ7Fz83Fs/ri3pqkKG3HrtCd
\r
36 Q/9cKLzQR1pNgD1dRBUGQZAgzcCQTsXSgu8Qw=
\r
37 Received: by 10.205.64.208 with SMTP id xj16mr253415bkb.60.1305208575846;
\r
38 Thu, 12 May 2011 06:56:15 -0700 (PDT)
\r
39 Received: from localhost ([91.144.186.21])
\r
40 by mx.google.com with ESMTPS id 5sm1666482faz.0.2011.05.12.06.56.14
\r
41 (version=TLSv1/SSLv3 cipher=OTHER);
\r
42 Thu, 12 May 2011 06:56:15 -0700 (PDT)
\r
43 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
\r
44 To: Notmuch Mail <notmuch@notmuchmail.org>
\r
45 Subject: [PATCH 2/2] test: add "notmuch-show for message with invalid From"
\r
47 Date: Thu, 12 May 2011 17:56:26 +0400
\r
48 Message-Id: <1305208586-24689-2-git-send-email-dmitry.kurochkin@gmail.com>
\r
49 X-Mailer: git-send-email 1.7.5.1
\r
50 In-Reply-To: <1305208586-24689-1-git-send-email-dmitry.kurochkin@gmail.com>
\r
51 References: <1305208586-24689-1-git-send-email-dmitry.kurochkin@gmail.com>
\r
52 X-BeenThere: notmuch@notmuchmail.org
\r
53 X-Mailman-Version: 2.1.13
\r
55 List-Id: "Use and development of the notmuch mail system."
\r
56 <notmuch.notmuchmail.org>
\r
57 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
60 List-Post: <mailto:notmuch@notmuchmail.org>
\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
62 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
64 X-List-Received-Date: Thu, 12 May 2011 13:56:21 -0000
\r
67 test/emacs | 13 +++++++++++++
\r
68 1 files changed, 13 insertions(+), 0 deletions(-)
\r
70 diff --git a/test/emacs b/test/emacs
\r
71 index 2e85b0c..f2983a7 100755
\r
74 @@ -37,8 +37,21 @@ output=$(test_emacs "(notmuch-show \"$maildir_storage_thread\") (princ (buffer-s
\r
75 expected=$(cat $EXPECTED/notmuch-show-thread-maildir-storage)
\r
76 test_expect_equal "$output" "$expected"
\r
78 +test_begin_subtest "notmuch-show for message with invalid From"
\r
79 +add_message "[subject]=\"message-with-invalid-from\"" "[from]=\"\\\"Invalid \\\" From\\\" <test_suite@notmuchmail.org>\""
\r
80 +thread=$(notmuch search --output=threads subject:message-with-invalid-from)
\r
81 +output=$(test_emacs "(notmuch-show \"$thread\") (princ (buffer-string))")
\r
82 +test_expect_equal "$output" \
\r
83 +'"Invalid " From" <test_suite@notmuchmail.org> (2001-01-05) (inbox)
\r
84 +Subject: message-with-invalid-from
\r
85 +To: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
86 +Date: Tue, 05 Jan 2001 15:43:57 -0000
\r
88 +This is just a test message (#1)'
\r
90 test_begin_subtest "Navigation of notmuch-search to thread view"
\r
91 output=$(test_emacs '(notmuch-search "tag:inbox") (notmuch-test-wait) (goto-char (point-min)) (re-search-forward "Working with Maildir") (notmuch-search-show-thread) (notmuch-test-wait) (princ (buffer-string))')
\r
92 +expected=$(cat $EXPECTED/notmuch-show-thread-maildir-storage)
\r
93 test_expect_equal "$output" "$expected"
\r
95 test_begin_subtest "Add tag from search view"
\r