[PATCH 4/4] cli/show: show repaired form of "Mixed Up" mangled messages

Rollins, Jameson jrollins at caltech.edu
Thu May 30 10:06:34 PDT 2019

On Thu, May 30 2019, Daniel Kahn Gillmor <dkg at fifthhorseman.net> wrote:
> Yes, it does fix notmuch reply as well.  Do you think that we should
> augment the test suite to include 'notmuch reply' too?

I mean, more tests don't hurt, but I don't see it as critical.  I think
it could be as simple as (please verify):

test_begin_subtest "reply 'Mixed-Up' mangled PGP/MIME message"
output=$(notmuch reply --format=json --decrypt id:mixed-up at mangling.notmuchmail.org)
test_json_nodes <<<"$output" \
                'body:["original"]["body"][0]["content"][1]["content"]="The password is \"abcd1234!\", please do not tell anyone.\n"'

More information about the notmuch mailing list