From fa2c94ce3a50d5dfc33fbd04392f4aac99ed5daa Mon Sep 17 00:00:00 2001 From: David Edmondson Date: Tue, 9 Feb 2016 20:34:32 +0000 Subject: [PATCH] Re: [PATCH v4 7/7] test: fix the tests for the new reply code --- 5e/0c618b4b7cbac1a974a4932dc9bfe297967b41 | 163 ++++++++++++++++++++++ 1 file changed, 163 insertions(+) create mode 100644 5e/0c618b4b7cbac1a974a4932dc9bfe297967b41 diff --git a/5e/0c618b4b7cbac1a974a4932dc9bfe297967b41 b/5e/0c618b4b7cbac1a974a4932dc9bfe297967b41 new file mode 100644 index 000000000..b1de30114 --- /dev/null +++ b/5e/0c618b4b7cbac1a974a4932dc9bfe297967b41 @@ -0,0 +1,163 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id A29636DE1B5B + for ; Tue, 9 Feb 2016 12:34:38 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.095 +X-Spam-Level: +X-Spam-Status: No, score=-0.095 tagged_above=-999 required=5 + tests=[AWL=-0.028, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, + RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, + RCVD_IN_MSPIKE_WL=-0.01, SPF_NEUTRAL=0.652, UNPARSEABLE_RELAY=0.001] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id e5-X8JSSN370 for ; + Tue, 9 Feb 2016 12:34:36 -0800 (PST) +Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com + [74.125.82.67]) by arlo.cworth.org (Postfix) with ESMTPS id F0DED6DE1778 for + ; Tue, 9 Feb 2016 12:34:35 -0800 (PST) +Received: by mail-wm0-f67.google.com with SMTP id c200so16093wme.0 + for ; Tue, 09 Feb 2016 12:34:35 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=dme-org.20150623.gappssmtp.com; s=20150623; + h=to:subject:in-reply-to:references:from:date:message-id:mime-version + :content-type; bh=MIC+FKc3gmAiaDnTTzmw2UZcGbtB+AIDuappfz/Ptsc=; + b=aRBoQE173RSTSkkLEv5LtSW6+kPsQCuq3SGUcs4G4H7Y69YxXwu51oXA+iRskkD2VR + 4i0LEBdwppjddx9D9jd0nN8+ZlRl+rQYLfTzZqzT/6UqFo3F3NH4T5z7GqS4wltXpDlY + 8wDEa/7b6R4OO0QWvQ8ogso3/hRnWwdBJqDYTaThjGrpOzJ8ACRN3RhUCM45r7g26PK2 + JoVs2NKY0DnpOGx8LMUKyjbF9amR+rl1V/VmRc76uQB/YSGhNsiFDKI9vKyLupABu90v + YllxX6CnHNVsMwEIccyNwWCc3ds1QhQ5oyNDjluC2h6Xx7pnlJRbj9wnfzh6DcwSLPk0 + RftA== +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:to:subject:in-reply-to:references:from:date + :message-id:mime-version:content-type; + bh=MIC+FKc3gmAiaDnTTzmw2UZcGbtB+AIDuappfz/Ptsc=; + b=e7ku3d9rCIO67/NX4UYrBExP4blkK6oQpnXYBYEJU0mKIiBqcxT71+PM6EsK5s3x8w + ZGU1TErA0X8u0lOU6bCrOfi4/RIu6pYCgtuCaP5aEmvJxRof63QFcEsUd366WhNQveuG + WuH/kQwAJEY+4y01D2PqRWS/5fnTfMuSflGj+hgEKJKYCu01h8dws1F8n5ccx5qvr2cM + Q7N3lm/sUamWafFa46vxX2IlYOtvR1nAec5FA2nbSmgMdrv1x2Gdx5IA4o8XYqTZYMRp + mOxT2yQzmCLsvlFlGQucRZ70kCNQ0D6qiLGLrInD62WCslHCyu1+9bk7dzwXfJyV9lhG + l42g== +X-Gm-Message-State: + AG10YOT0OS9Q6sEQB/hn1hxq4WpZ41LLhDhIBmigNYGUgigFtGIvPXqFLbFpEHNmoS7dag== +X-Received: by 10.194.23.232 with SMTP id p8mr41650543wjf.80.1455050074646; + Tue, 09 Feb 2016 12:34:34 -0800 (PST) +Received: from disaster-area.hh.sledj.net + ([2a01:348:1a2:1:ea39:35ff:fe2c:a227]) + by smtp.gmail.com with ESMTPSA id ka4sm36360361wjc.47.2016.02.09.12.34.33 + (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Tue, 09 Feb 2016 12:34:33 -0800 (PST) +Received: from localhost (disaster-area.hh.sledj.net [local]) + by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 740f338b; + Tue, 9 Feb 2016 20:34:32 +0000 (UTC) +To: Mark Walters , notmuch@notmuchmail.org +Subject: Re: [PATCH v4 7/7] test: fix the tests for the new reply code +In-Reply-To: <1446894276-7814-8-git-send-email-markwalters1009@gmail.com> +References: <1446894276-7814-1-git-send-email-markwalters1009@gmail.com> + <1446894276-7814-8-git-send-email-markwalters1009@gmail.com> +From: David Edmondson +Date: Tue, 09 Feb 2016 20:34:32 +0000 +Message-ID: +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +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: Tue, 09 Feb 2016 20:34:38 -0000 + +On Sat, Nov 07 2015, Mark Walters wrote: +> This sets the part-insertion code to never insert part headers (as we +> didn't before). +> +> With that change there is only one failing test: this test has a text +> part (an email message) listed as application/octet-stream. Notmuch +> show displays this part, but the reply code omitted it as it had type +> application/octet-stream. The new code correctly includes it. Thus +> update the expected output to match. + +Looks fine. + +> --- +> test/T310-emacs.sh | 32 ++++++++++++++++++++++++++++++++ +> test/test-lib.el | 4 ++++ +> 2 files changed, 36 insertions(+) +> +> diff --git a/test/T310-emacs.sh b/test/T310-emacs.sh +> index 61bc369..22ca71c 100755 +> --- a/test/T310-emacs.sh +> +++ b/test/T310-emacs.sh +> @@ -473,6 +473,38 @@ Alex Botero-Lowry writes: +> > and http://mail-index.netbsd.org/pkgsrc-bugs/2006/06/07/msg016808.htmlspecifically +> > uses 64 as the +> > buffer size. +> +> From e3bc4bbd7b9d0d086816ab5f8f2d6ffea1dd3ea4 Mon Sep 17 00:00:00 2001 +> +> From: Alexander Botero-Lowry +> +> Date: Tue, 17 Nov 2009 11:30:39 -0800 +> +> Subject: [PATCH] Deal with situation where sysconf(_SC_GETPW_R_SIZE_MAX) returns -1 +> +> +> +> --- +> +> notmuch-config.c | 2 ++ +> +> 1 files changed, 2 insertions(+), 0 deletions(-) +> +> +> +> diff --git a/notmuch-config.c b/notmuch-config.c +> +> index 248149c..e7220d8 100644 +> +> --- a/notmuch-config.c +> +> +++ b/notmuch-config.c +> +> @@ -77,6 +77,7 @@ static char * +> +> get_name_from_passwd_file (void *ctx) +> +> { +> +> long pw_buf_size = sysconf(_SC_GETPW_R_SIZE_MAX); +> +> + if (pw_buf_size == -1) pw_buf_size = 64; +> +> char *pw_buf = talloc_zero_size (ctx, pw_buf_size); +> +> struct passwd passwd, *ignored; +> +> char *name; +> +> @@ -101,6 +102,7 @@ static char * +> +> get_username_from_passwd_file (void *ctx) +> +> { +> +> long pw_buf_size = sysconf(_SC_GETPW_R_SIZE_MAX); +> +> + if (pw_buf_size == -1) pw_buf_size = 64; +> +> char *pw_buf = talloc_zero_size (ctx, pw_buf_size); +> +> struct passwd passwd, *ignored; +> +> char *name; +> +> -- +> +> 1.6.5.2 +> +> +> > _______________________________________________ +> > notmuch mailing list +> > notmuch@notmuchmail.org +> diff --git a/test/test-lib.el b/test/test-lib.el +> index 04c8d63..6e1689a 100644 +> --- a/test/test-lib.el +> +++ b/test/test-lib.el +> @@ -184,6 +184,10 @@ (defmacro notmuch-test-progn (&rest body) +> (setq notmuch-tag-deleted-formats +> '((".*" nil))) +> +> +;; For historical reasonse we don't print part headers when replying +> +;; in the tests suite +> +(setq notmuch-mua-reply-insert-header-p-function 'notmuch-show-reply-insert-header-p-never) +> + +> ;; force a common html renderer, to avoid test variations between +> ;; environments +> +> -- +> 2.1.4 +> +> _______________________________________________ +> notmuch mailing list +> notmuch@notmuchmail.org +> https://notmuchmail.org/mailman/listinfo/notmuch -- 2.26.2