[PATCH 2/3] test: emacs: toggle eliding of non-matching messages in `notmuch-show'
On Sun, 19 Feb 2012, Pieter Praet wrote: > See commits 44a544ed, 866ce8b1, 668b66ec. > --- > test/emacs | 38 ++ > .../notmuch-show-elide-non-matching-messages-off | 79 > > .../notmuch-show-elide-non-matching-messages-on| 75 +++ > 3 files changed, 192 insertions(+), 0 deletions(-) > create mode 100644 > test/emacs.expected-output/notmuch-show-elide-non-matching-messages-off > create mode 100644 > test/emacs.expected-output/notmuch-show-elide-non-matching-messages-on This patch looks good to me and with other possible ways of implementing elide [1] seems well worth having. It needs [1/3] which I think is ok but I have never used the crypto stuff so wouldn't count this as a review of that patch. Patch [3/3] also looks fine. Best wishes Mark [1] id:"1334077496-9172-1-git-send-email-markwalters1009 at gmail.com" > > diff --git a/test/emacs b/test/emacs > index b207d20..320057a 100755 > --- a/test/emacs > +++ b/test/emacs > @@ -553,5 +553,43 @@ test_emacs '(let ((notmuch-crypto-process-mime nil)) > (test-visible-output))' > test_expect_equal_file OUTPUT > $EXPECTED/notmuch-show-process-crypto-mime-parts-on > > +test_begin_subtest "notmuch-show: don't elide non-matching messages" > +test_emacs '(let ((notmuch-show-only-matching-messages nil)) > + (notmuch-search "from:lars at seas.harvard.edu and subject:\"Maildir > storage\"") > + (notmuch-test-wait) > + (notmuch-search-show-thread) > + (notmuch-test-wait) > + (test-visible-output))' > +test_expect_equal_file OUTPUT > $EXPECTED/notmuch-show-elide-non-matching-messages-off > + > +test_begin_subtest "notmuch-show: elide non-matching messages" > +test_emacs '(let ((notmuch-show-only-matching-messages t)) > + (notmuch-search "from:lars at seas.harvard.edu and subject:\"Maildir > storage\"") > + (notmuch-test-wait) > + (notmuch-search-show-thread) > + (notmuch-test-wait) > + (test-visible-output))' > +test_expect_equal_file OUTPUT > $EXPECTED/notmuch-show-elide-non-matching-messages-on > + > +test_begin_subtest "notmuch-show: elide non-matching messages (w/ > notmuch-show-toggle-elide-non-matching)" > +test_emacs '(let ((notmuch-show-only-matching-messages nil)) > + (notmuch-search "from:lars at seas.harvard.edu and subject:\"Maildir > storage\"") > + (notmuch-test-wait) > + (notmuch-search-show-thread) > + (notmuch-test-wait) > + (notmuch-show-toggle-elide-non-matching) > + (test-visible-output))' > +test_expect_equal_file OUTPUT > $EXPECTED/notmuch-show-elide-non-matching-messages-on > + > +test_begin_subtest "notmuch-show: elide non-matching messages (w/ prefix arg > to notmuch-show)" > +test_emacs '(let ((notmuch-show-only-matching-messages nil)) > + (notmuch-search "from:lars at seas.harvard.edu and subject:\"Maildir > storage\"") > + (notmuch-test-wait) > + (let ((current-prefix-arg t)) > + (notmuch-search-show-thread)) > + (notmuch-test-wait) > + (test-visible-output))' > +test_expect_equal_file OUTPUT > $EXPECTED/notmuch-show-elide-non-matching-messages-on > + > > test_done > diff --git > a/test/emacs.expected-output/notmuch-show-elide-non-matching-messages-off > b/test/emacs.expected-output/notmuch-show-elide-non-matching-messages-off > new file mode 100644 > index 000..b31fe62 > --- /dev/null > +++ b/test/emacs.expected-output/notmuch-show-elide-non-matching-messages-off > @@ -0,0 +1,79 @@ > +Lars Kellogg-Stedman (2009-11-17) (inbox signed) > +Subject: [notmuch] Working with Maildir storage? > +To: notmuch at 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 at notmuchmail.org > + Date: Tue, 17 Nov 2009 15:33:01 -0500 > + > + [ multipart/mixed ] > + [ multipart/signed ] > + [ text/plain ] > + > See the patch just
Re: [PATCH 2/3] test: emacs: toggle eliding of non-matching messages in `notmuch-show'
On Sun, 19 Feb 2012, Pieter Praet pie...@praet.org wrote: See commits 44a544ed, 866ce8b1, 668b66ec. --- test/emacs | 38 ++ .../notmuch-show-elide-non-matching-messages-off | 79 .../notmuch-show-elide-non-matching-messages-on| 75 +++ 3 files changed, 192 insertions(+), 0 deletions(-) create mode 100644 test/emacs.expected-output/notmuch-show-elide-non-matching-messages-off create mode 100644 test/emacs.expected-output/notmuch-show-elide-non-matching-messages-on This patch looks good to me and with other possible ways of implementing elide [1] seems well worth having. It needs [1/3] which I think is ok but I have never used the crypto stuff so wouldn't count this as a review of that patch. Patch [3/3] also looks fine. Best wishes Mark [1] id:1334077496-9172-1-git-send-email-markwalters1...@gmail.com diff --git a/test/emacs b/test/emacs index b207d20..320057a 100755 --- a/test/emacs +++ b/test/emacs @@ -553,5 +553,43 @@ test_emacs '(let ((notmuch-crypto-process-mime nil)) (test-visible-output))' test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-process-crypto-mime-parts-on +test_begin_subtest notmuch-show: don't elide non-matching messages +test_emacs '(let ((notmuch-show-only-matching-messages nil)) + (notmuch-search from:l...@seas.harvard.edu and subject:\Maildir storage\) + (notmuch-test-wait) + (notmuch-search-show-thread) + (notmuch-test-wait) + (test-visible-output))' +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-elide-non-matching-messages-off + +test_begin_subtest notmuch-show: elide non-matching messages +test_emacs '(let ((notmuch-show-only-matching-messages t)) + (notmuch-search from:l...@seas.harvard.edu and subject:\Maildir storage\) + (notmuch-test-wait) + (notmuch-search-show-thread) + (notmuch-test-wait) + (test-visible-output))' +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-elide-non-matching-messages-on + +test_begin_subtest notmuch-show: elide non-matching messages (w/ notmuch-show-toggle-elide-non-matching) +test_emacs '(let ((notmuch-show-only-matching-messages nil)) + (notmuch-search from:l...@seas.harvard.edu and subject:\Maildir storage\) + (notmuch-test-wait) + (notmuch-search-show-thread) + (notmuch-test-wait) + (notmuch-show-toggle-elide-non-matching) + (test-visible-output))' +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-elide-non-matching-messages-on + +test_begin_subtest notmuch-show: elide non-matching messages (w/ prefix arg to notmuch-show) +test_emacs '(let ((notmuch-show-only-matching-messages nil)) + (notmuch-search from:l...@seas.harvard.edu and subject:\Maildir storage\) + (notmuch-test-wait) + (let ((current-prefix-arg t)) + (notmuch-search-show-thread)) + (notmuch-test-wait) + (test-visible-output))' +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-elide-non-matching-messages-on + test_done diff --git a/test/emacs.expected-output/notmuch-show-elide-non-matching-messages-off b/test/emacs.expected-output/notmuch-show-elide-non-matching-messages-off new file mode 100644 index 000..b31fe62 --- /dev/null +++ b/test/emacs.expected-output/notmuch-show-elide-non-matching-messages-off @@ -0,0 +1,79 @@ +Lars Kellogg-Stedman l...@seas.harvard.edu (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 dotted...@dottedmag.net (2009-11-17) (inbox signed unread) + Lars Kellogg-Stedman l...@seas.harvard.edu (2009-11-17) (inbox signed) + Subject: Re: [notmuch] Working with Maildir storage? + To: Mikhail Gusarov dotted...@dottedmag.net + 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 +
[PATCH 2/3] test: emacs: toggle eliding of non-matching messages in `notmuch-show'
See commits 44a544ed, 866ce8b1, 668b66ec. --- test/emacs | 38 ++ .../notmuch-show-elide-non-matching-messages-off | 79 .../notmuch-show-elide-non-matching-messages-on| 75 +++ 3 files changed, 192 insertions(+), 0 deletions(-) create mode 100644 test/emacs.expected-output/notmuch-show-elide-non-matching-messages-off create mode 100644 test/emacs.expected-output/notmuch-show-elide-non-matching-messages-on diff --git a/test/emacs b/test/emacs index b207d20..320057a 100755 --- a/test/emacs +++ b/test/emacs @@ -553,5 +553,43 @@ test_emacs '(let ((notmuch-crypto-process-mime nil)) (test-visible-output))' test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-process-crypto-mime-parts-on +test_begin_subtest "notmuch-show: don't elide non-matching messages" +test_emacs '(let ((notmuch-show-only-matching-messages nil)) + (notmuch-search "from:lars at seas.harvard.edu and subject:\"Maildir storage\"") + (notmuch-test-wait) + (notmuch-search-show-thread) + (notmuch-test-wait) + (test-visible-output))' +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-elide-non-matching-messages-off + +test_begin_subtest "notmuch-show: elide non-matching messages" +test_emacs '(let ((notmuch-show-only-matching-messages t)) + (notmuch-search "from:lars at seas.harvard.edu and subject:\"Maildir storage\"") + (notmuch-test-wait) + (notmuch-search-show-thread) + (notmuch-test-wait) + (test-visible-output))' +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-elide-non-matching-messages-on + +test_begin_subtest "notmuch-show: elide non-matching messages (w/ notmuch-show-toggle-elide-non-matching)" +test_emacs '(let ((notmuch-show-only-matching-messages nil)) + (notmuch-search "from:lars at seas.harvard.edu and subject:\"Maildir storage\"") + (notmuch-test-wait) + (notmuch-search-show-thread) + (notmuch-test-wait) + (notmuch-show-toggle-elide-non-matching) + (test-visible-output))' +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-elide-non-matching-messages-on + +test_begin_subtest "notmuch-show: elide non-matching messages (w/ prefix arg to notmuch-show)" +test_emacs '(let ((notmuch-show-only-matching-messages nil)) + (notmuch-search "from:lars at seas.harvard.edu and subject:\"Maildir storage\"") + (notmuch-test-wait) + (let ((current-prefix-arg t)) + (notmuch-search-show-thread)) + (notmuch-test-wait) + (test-visible-output))' +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-elide-non-matching-messages-on + test_done diff --git a/test/emacs.expected-output/notmuch-show-elide-non-matching-messages-off b/test/emacs.expected-output/notmuch-show-elide-non-matching-messages-off new file mode 100644 index 000..b31fe62 --- /dev/null +++ b/test/emacs.expected-output/notmuch-show-elide-non-matching-messages-off @@ -0,0 +1,79 @@ +Lars Kellogg-Stedman (2009-11-17) (inbox signed) +Subject: [notmuch] Working with Maildir storage? +To: notmuch at 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 at 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) +
[PATCH 2/3] test: emacs: toggle eliding of non-matching messages in `notmuch-show'
See commits 44a544ed, 866ce8b1, 668b66ec. --- test/emacs | 38 ++ .../notmuch-show-elide-non-matching-messages-off | 79 .../notmuch-show-elide-non-matching-messages-on| 75 +++ 3 files changed, 192 insertions(+), 0 deletions(-) create mode 100644 test/emacs.expected-output/notmuch-show-elide-non-matching-messages-off create mode 100644 test/emacs.expected-output/notmuch-show-elide-non-matching-messages-on diff --git a/test/emacs b/test/emacs index b207d20..320057a 100755 --- a/test/emacs +++ b/test/emacs @@ -553,5 +553,43 @@ test_emacs '(let ((notmuch-crypto-process-mime nil)) (test-visible-output))' test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-process-crypto-mime-parts-on +test_begin_subtest notmuch-show: don't elide non-matching messages +test_emacs '(let ((notmuch-show-only-matching-messages nil)) + (notmuch-search from:l...@seas.harvard.edu and subject:\Maildir storage\) + (notmuch-test-wait) + (notmuch-search-show-thread) + (notmuch-test-wait) + (test-visible-output))' +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-elide-non-matching-messages-off + +test_begin_subtest notmuch-show: elide non-matching messages +test_emacs '(let ((notmuch-show-only-matching-messages t)) + (notmuch-search from:l...@seas.harvard.edu and subject:\Maildir storage\) + (notmuch-test-wait) + (notmuch-search-show-thread) + (notmuch-test-wait) + (test-visible-output))' +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-elide-non-matching-messages-on + +test_begin_subtest notmuch-show: elide non-matching messages (w/ notmuch-show-toggle-elide-non-matching) +test_emacs '(let ((notmuch-show-only-matching-messages nil)) + (notmuch-search from:l...@seas.harvard.edu and subject:\Maildir storage\) + (notmuch-test-wait) + (notmuch-search-show-thread) + (notmuch-test-wait) + (notmuch-show-toggle-elide-non-matching) + (test-visible-output))' +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-elide-non-matching-messages-on + +test_begin_subtest notmuch-show: elide non-matching messages (w/ prefix arg to notmuch-show) +test_emacs '(let ((notmuch-show-only-matching-messages nil)) + (notmuch-search from:l...@seas.harvard.edu and subject:\Maildir storage\) + (notmuch-test-wait) + (let ((current-prefix-arg t)) + (notmuch-search-show-thread)) + (notmuch-test-wait) + (test-visible-output))' +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-elide-non-matching-messages-on + test_done diff --git a/test/emacs.expected-output/notmuch-show-elide-non-matching-messages-off b/test/emacs.expected-output/notmuch-show-elide-non-matching-messages-off new file mode 100644 index 000..b31fe62 --- /dev/null +++ b/test/emacs.expected-output/notmuch-show-elide-non-matching-messages-off @@ -0,0 +1,79 @@ +Lars Kellogg-Stedman l...@seas.harvard.edu (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 dotted...@dottedmag.net (2009-11-17) (inbox signed unread) + Lars Kellogg-Stedman l...@seas.harvard.edu (2009-11-17) (inbox signed) + Subject: Re: [notmuch] Working with Maildir storage? + To: Mikhail Gusarov dotted...@dottedmag.net + 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 dotted...@dottedmag.net (2009-11-17) (inbox unread) + Keith Packard kei...@keithp.com