Re: [PATCH v3 2/5] test: Add tests for 'config' command
authorJameson Graef Rollins <jrollins@finestructure.net>
Tue, 10 Apr 2012 07:30:29 +0000 (00:30 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:46:13 +0000 (09:46 -0800)
2b/60a2dff7d7ea6f7937e9c933e09a9769833bd8 [new file with mode: 0644]

diff --git a/2b/60a2dff7d7ea6f7937e9c933e09a9769833bd8 b/2b/60a2dff7d7ea6f7937e9c933e09a9769833bd8
new file mode 100644 (file)
index 0000000..a2a46b3
--- /dev/null
@@ -0,0 +1,100 @@
+Return-Path: <jrollins@finestructure.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 31D2D431FAF\r
+       for <notmuch@notmuchmail.org>; Tue, 10 Apr 2012 00:30:36 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.29\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id bcey6xqkP9gg for <notmuch@notmuchmail.org>;\r
+       Tue, 10 Apr 2012 00:30:35 -0700 (PDT)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+       [131.215.239.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id D3552431FAE\r
+       for <notmuch@notmuchmail.org>; Tue, 10 Apr 2012 00:30:35 -0700 (PDT)\r
+Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by fire-doxen-postvirus (Postfix) with ESMTP id 7A2CA2E50D7E;\r
+       Tue, 10 Apr 2012 00:30:35 -0700 (PDT)\r
+X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new\r
+Received: from finestructure.net (unknown [76.89.193.65])\r
+       (Authenticated sender: jrollins)\r
+       by fire-doxen-submit (Postfix) with ESMTP id B9B0D2E50DA0;\r
+       Tue, 10 Apr 2012 00:30:32 -0700 (PDT)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id 6EE66762; Tue, 10 Apr 2012 00:30:32 -0700 (PDT)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Peter Wang <novalazy@gmail.com>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH v3 2/5] test: Add tests for 'config' command\r
+In-Reply-To: <1333676886-9835-3-git-send-email-novalazy@gmail.com>\r
+References: <1332282698-7951-1-git-send-email-novalazy@gmail.com>\r
+       <1333676886-9835-1-git-send-email-novalazy@gmail.com>\r
+       <1333676886-9835-3-git-send-email-novalazy@gmail.com>\r
+User-Agent: Notmuch/0.12+108~g7bdb40c (http://notmuchmail.org) Emacs/23.4.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Tue, 10 Apr 2012 00:30:29 -0700\r
+Message-ID: <87pqbghwmi.fsf@servo.finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha256; protocol="application/pgp-signature"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 10 Apr 2012 07:30:36 -0000\r
+\r
+--=-=-=\r
+\r
+On Thu, Apr 05 2012, Peter Wang <novalazy@gmail.com> wrote:\r
+> +test_begin_subtest "Set string value"\r
+> +notmuch config set foo.bar baz\r
+> +test_expect_equal "$(notmuch config get foo.bar)" "baz"\r
+> +\r
+> +test_begin_subtest "Set list value"\r
+> +notmuch config set foo.list xxx "yyy yyy" "zzz zzz"\r
+> +test_expect_equal "$(notmuch config get foo.list)" "\\r
+> +xxx\r
+> +yyy yyy\r
+> +zzz zzz"\r
+\r
+I find it slightly strange to use non-existent fields here, but I also\r
+don't see that it hurts anything either.  At least at the moment.\r
+Another option would be to use an existing field, and change it back\r
+when you're done.\r
+\r
+jamie.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.12 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJPg+GWAAoJEO00zqvie6q8l+gP/izGT8F/1300lfRfSjmIJpwC\r
+VCjZhAVHtIlFstuaBJ5OeKWH1Dr7nNNY7+pUM07w3Gg3XJpzAlpNomHFYeWCABY/\r
+LyX5KFChPIicui/vlYfCChh28kUHKwge8LdGnE4t/otzvGnWB/M85OQRyN+Sp1I7\r
+9aybvbSkGi6UCBgclPVaO1kb6qC4RuotE6kg4CjAqLeHLzbDUxGIl7QWFH0uL8vD\r
+ebIbQMtTALwYo9EpCm1sSFruYWrOid6cLCu8Ne9skRXQj5fq0PsDvOfLPk1ag3TX\r
+KJuMvEW4yYS0phCfPfxnzTOWz6XhfT/pW6VV9BKOme23TqJD3HwuJZtZqbmSmJPP\r
+WgDUcVw3E5kLxbC8cO6XKkTX/gHKi/BEcgSc+yQIhBmSxj7YuZPB/DSdbmEoHhVR\r
+I9fy3eXPsY6lmZUzBMgKWruHCXgsCg9R5pUFydpxz0hyj4vYqDQdfyy2vn28zCAP\r
+cWWeQ+hyPShgb1FSL6OEhozdouZYY9yWX5AiWhiVMltAzbVXbDMu5qtGgnM9ZnLR\r
+aeoSUtsyiC47g6reIX7HDeG10gxWrs+QrPjF8qZNXJxJ40iUFvnWonVrnvKxpaeO\r
+r7ucxcFzVVSqlvV+9FbiuonwaYHeSayl5AiP11wACQQdCKHglQdIiEOXoCR8f4vp\r
+xeNvSSC1r2TKl86HPbRu\r
+=CB70\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r