Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 56659431FC4 for ; Sun, 19 Feb 2012 12:59:01 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7dkpUWJIHkzO for ; Sun, 19 Feb 2012 12:58:59 -0800 (PST) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 1B9AA431FB6 for ; Sun, 19 Feb 2012 12:58:51 -0800 (PST) Received: by mail-wi0-f181.google.com with SMTP id hi8so3113628wib.26 for ; Sun, 19 Feb 2012 12:58:51 -0800 (PST) Received-SPF: pass (google.com: domain of pieter@praet.org designates 10.180.95.105 as permitted sender) client-ip=10.180.95.105; Authentication-Results: mr.google.com; spf=pass (google.com: domain of pieter@praet.org designates 10.180.95.105 as permitted sender) smtp.mail=pieter@praet.org Received: from mr.google.com ([10.180.95.105]) by 10.180.95.105 with SMTP id dj9mr11915115wib.18.1329685131879 (num_hops = 1); Sun, 19 Feb 2012 12:58:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.180.95.105 with SMTP id dj9mr9955583wib.18.1329685131797; Sun, 19 Feb 2012 12:58:51 -0800 (PST) Received: from localhost (104.218-242-81.adsl-dyn.isp.belgacom.be. [81.242.218.104]) by mx.google.com with ESMTPS id ga1sm29386405wib.5.2012.02.19.12.58.51 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 19 Feb 2012 12:58:51 -0800 (PST) From: Pieter Praet To: David Edmondson Subject: [PATCH 3/3] test: emacs: toggle thread content indentation in `notmuch-show' Date: Sun, 19 Feb 2012 21:56:30 +0100 Message-Id: <1329684990-12504-4-git-send-email-pieter@praet.org> X-Mailer: git-send-email 1.7.8.1 In-Reply-To: <1329684990-12504-1-git-send-email-pieter@praet.org> References: <1328688139-3865-1-git-send-email-dme@dme.org> <1329684990-12504-1-git-send-email-pieter@praet.org> X-Gm-Message-State: ALoCoQkJw/e5HZapAbSDdCsojjJNQrV+Ql7zQxn2b1JVdtKQJwW83H39DH8P+xO9L/O0oRZBL0sX Cc: Notmuch Mail X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Feb 2012 20:59:01 -0000 See commit c205e8ff. --- test/emacs | 9 ++ .../notmuch-show-indent-thread-content-off | 79 ++++++++++++++++++++ 2 files changed, 88 insertions(+), 0 deletions(-) create mode 100644 test/emacs.expected-output/notmuch-show-indent-thread-content-off diff --git a/test/emacs b/test/emacs index 320057a..357ac73 100755 --- a/test/emacs +++ b/test/emacs @@ -591,5 +591,14 @@ test_emacs '(let ((notmuch-show-only-matching-messages nil)) (test-visible-output))' test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-elide-non-matching-messages-on +test_begin_subtest "notmuch-show: disable indentation of thread content (w/ notmuch-show-toggle-thread-indentation)" +test_emacs '(notmuch-search "from:lars@seas.harvard.edu and subject:\"Maildir storage\"") + (notmuch-test-wait) + (notmuch-search-show-thread) + (notmuch-test-wait) + (notmuch-show-toggle-thread-indentation) + (test-visible-output)' +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-indent-thread-content-off + test_done diff --git a/test/emacs.expected-output/notmuch-show-indent-thread-content-off b/test/emacs.expected-output/notmuch-show-indent-thread-content-off new file mode 100644 index 0000000..37b4f7d --- /dev/null +++ b/test/emacs.expected-output/notmuch-show-indent-thread-content-off @@ -0,0 +1,79 @@ +Lars Kellogg-Stedman (2009-11-17) (inbox signed) +Subject: [notmuch] Working with Maildir storage? +To: notmuch@notmuchmail.org +Date: Tue, 17 Nov 2009 14:00:54 -0500 + +[ multipart/mixed ] +[ multipart/signed ] +[ text/plain ] +I saw the LWN article and decided to take a look at notmuch. I'm +currently using mutt and mairix to index and read a collection of +Maildir mail folders (around 40,000 messages total). + +notmuch indexed the messages without complaint, but my attempt at +searching bombed out. Running, for example: + + notmuch search storage + +Resulted in 4604 lines of errors along the lines of: + + Error opening + /home/lars/Mail/read-messages.2008/cur/1246413773.24928_27334.hostname,U=3026:2,S: + Too many open files + +I'm curious if this is expected behavior (i.e., notmuch does not work +with Maildir) or if something else is going on. + +Cheers, + +[ 4-line signature. Click/Enter to show. ] +[ application/pgp-signature ] +[ text/plain ] +[ 4-line signature. Click/Enter to show. ] + Mikhail Gusarov (2009-11-17) (inbox signed unread) + Lars Kellogg-Stedman (2009-11-17) (inbox signed) +Subject: Re: [notmuch] Working with Maildir storage? +To: Mikhail Gusarov +Cc: notmuch@notmuchmail.org +Date: Tue, 17 Nov 2009 15:33:01 -0500 + +[ multipart/mixed ] +[ multipart/signed ] +[ text/plain ] +> See the patch just posted here. + +Is the list archived anywhere? The obvious archives +(http://notmuchmail.org/pipermail/notmuch/) aren't available, and I +think I subscribed too late to get the patch (I only just saw the +discussion about it). + +It doesn't look like the patch is in git yet. + +-- Lars + +[ 4-line signature. Click/Enter to show. ] +[ application/pgp-signature ] +[ text/plain ] +[ 4-line signature. Click/Enter to show. ] + Mikhail Gusarov (2009-11-17) (inbox unread) + Keith Packard (2009-11-17) (inbox unread) + Lars Kellogg-Stedman (2009-11-18) (inbox signed unread) +Subject: Re: [notmuch] Working with Maildir storage? +To: Keith Packard +Cc: notmuch@notmuchmail.org +Date: Tue, 17 Nov 2009 19:50:40 -0500 + +[ multipart/mixed ] +[ multipart/signed ] +[ text/plain ] +> I've also pushed a slightly more complicated (and complete) fix to my +> private notmuch repository + +The version of lib/messages.cc in your repo doesn't build because it's +missing "#include " (for the uint32_t on line 466). + +[ 4-line signature. Click/Enter to show. ] +[ application/pgp-signature ] +[ text/plain ] +[ 4-line signature. Click/Enter to show. ] + Carl Worth (2009-11-18) (inbox unread) -- 1.7.8.1