unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 1/3] test: Test notmuch new for single-message mbox
@ 2012-11-25  6:15 Austin Clements
  2012-11-25  6:16 ` [PATCH 2/3] test: Test for ignoring multi-message mbox Austin Clements
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Austin Clements @ 2012-11-25  6:15 UTC (permalink / raw)
  To: notmuch

We support this for historical reasons.
---
 test/new |   13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/test/new b/test/new
index 587aa11..43d56e4 100755
--- a/test/new
+++ b/test/new
@@ -163,6 +163,19 @@ rm -rf "${MAIL_DIR}"/two
 output=$(NOTMUCH_NEW)
 test_expect_equal "$output" "No new mail. Removed 3 messages."
 
+test_begin_subtest "Support single-message mbox"
+cat > "${MAIL_DIR}"/mbox_file1 <<EOF
+From test_suite@notmuchmail.org Fri Jan  5 15:43:57 2001
+From: Notmuch Test Suite <test_suite@notmuchmail.org>
+To: Notmuch Test Suite <test_suite@notmuchmail.org>
+Subject: Test mbox message 1
+
+Body.
+EOF
+output=$(NOTMUCH_NEW 2>&1)
+test_expect_equal "$output" \
+"Added 1 new message to the database."
+
 # This test requires that notmuch new has been run at least once.
 test_begin_subtest "Skip and report non-mail files"
 generate_message
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-11-27  1:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-25  6:15 [PATCH 1/3] test: Test notmuch new for single-message mbox Austin Clements
2012-11-25  6:16 ` [PATCH 2/3] test: Test for ignoring multi-message mbox Austin Clements
2012-11-25  6:16 ` [PATCH 3/3] lib: Reject multi-message mboxes and deprecate single-message mbox Austin Clements
2012-11-25 13:26   ` Tomi Ollila
2012-11-25 18:05     ` Austin Clements
2012-11-25 19:57       ` Tomi Ollila
2012-11-25 11:33 ` [PATCH 1/3] test: Test notmuch new for " Mark Walters
2012-11-27  1:14 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).