1 Return-Path: <prvs=372b3579b=jrosenthal@jhu.edu>
\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 86ADB431FDD
\r
6 for <notmuch@notmuchmail.org>; Wed, 29 Oct 2014 13:52:25 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_MED=-2.3] 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 TlxWAFudSMzl for <notmuch@notmuchmail.org>;
\r
16 Wed, 29 Oct 2014 13:52:20 -0700 (PDT)
\r
17 Received: from IPMTW1.johnshopkins.edu (ipmtw1.johnshopkins.edu
\r
18 [128.220.229.140]) (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 52C93431FC7
\r
21 for <notmuch@notmuchmail.org>; Wed, 29 Oct 2014 13:52:13 -0700 (PDT)
\r
22 X-IronPort-AV: E=Sophos;i="5.07,279,1413259200"; d="scan'208";a="15776389"
\r
23 Received: from guppy.hwcampus.jhu.edu (HELO localhost) ([10.161.32.234])
\r
24 by IPMTW1.johnshopkins.edu with ESMTP/TLS/AES128-SHA;
\r
25 29 Oct 2014 16:52:11 -0400
\r
26 From: Jesse Rosenthal <jrosenthal@jhu.edu>
\r
27 To: notmuch@notmuchmail.org
\r
28 Subject: [v2 2/3] test-lib: Add dummy subject to force empty subject
\r
29 Date: Wed, 29 Oct 2014 16:51:44 -0400
\r
30 Message-Id: <1414615905-22554-3-git-send-email-jrosenthal@jhu.edu>
\r
31 X-Mailer: git-send-email 2.1.2
\r
32 In-Reply-To: <1414615905-22554-1-git-send-email-jrosenthal@jhu.edu>
\r
33 References: <1414615905-22554-1-git-send-email-jrosenthal@jhu.edu>
\r
34 X-BeenThere: notmuch@notmuchmail.org
\r
35 X-Mailman-Version: 2.1.13
\r
37 List-Id: "Use and development of the notmuch mail system."
\r
38 <notmuch.notmuchmail.org>
\r
39 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
40 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
41 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
42 List-Post: <mailto:notmuch@notmuchmail.org>
\r
43 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
44 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
45 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
46 X-List-Received-Date: Wed, 29 Oct 2014 20:52:25 -0000
\r
48 At the moment, the test-lib fills in any missing headers. This makes
\r
49 it impossible to test our handling of empty subjects. This will
\r
50 allow us to use a special dummy subject -- `@FORCE_EMPTY` -- to force
\r
51 the subject to remain empty.
\r
53 test/test-lib.sh | 2 ++
\r
54 1 file changed, 2 insertions(+)
\r
56 diff --git a/test/test-lib.sh b/test/test-lib.sh
\r
57 index 53db9ca..6057238 100644
\r
58 --- a/test/test-lib.sh
\r
59 +++ b/test/test-lib.sh
\r
60 @@ -368,6 +368,8 @@ generate_message ()
\r
62 template[subject]="Test message #${gen_msg_cnt}"
\r
64 + elif [ "${template[subject]}" = "@FORCE_EMPTY" ]; then
\r
65 + template[subject]=""
\r
68 if [ -z "${template[date]}" ]; then
\r