X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Fmultipart;h=7757b3774b8ecb2785b31dd2549c10455804bbf6;hp=42cbb7658f2afa66510d6ae873e9edb4f8895a79;hb=33cf04c6a5f76cba2bf56a27504eaf9ac022f5a2;hpb=916c2aa6247c6ef3d2a9c9c784cf4d3a5de263d0 diff --git a/test/multipart b/test/multipart index 42cbb765..7757b377 100755 --- a/test/multipart +++ b/test/multipart @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description="output of multipart message" . ./test-lib.sh @@ -305,4 +305,24 @@ test_expect_success \ "--format=mbox --part=1, incompatible, expect error" \ "! notmuch show --format=mbox --part=1 'id:87liy5ap00.fsf@yoom.home.cworth.org'" +test_begin_subtest "'notmuch reply' to a multipart message" +output=$(notmuch reply 'id:87liy5ap00.fsf@yoom.home.cworth.org') +test_expect_equal "$output" "From: Notmuch Test Suite +Subject: Re: Multipart message +To: Carl Worth , cworth@cworth.org +In-Reply-To: <87liy5ap00.fsf@yoom.home.cworth.org> +References: <87liy5ap00.fsf@yoom.home.cworth.org> + +On Tue, 05 Jan 2001 15:43:57 -0000, Carl Worth wrote: +Non-text part: multipart/signed +Non-text part: multipart/mixed +Non-text part: message/rfc822 +Non-text part: text/html +> This is a text attachment. +> And this message is signed. +> +> -Carl +Non-text part: application/pgp-signature" + + test_done