Home GnuPG
Diffusion GnuPG 95d60c6ce9e8

tools: Simplify the mime-maker container creation.
95d60c6ce9e8Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

tools: Simplify the mime-maker container creation.

* tools/mime-maker.c (struct part_s): Remove field MEDIATYPE.
(release_parts): Ditto.
(dump_parts): Print a body line only if tehre is a body.
(mime_maker_add_header): Check for body or container.
(mime_maker_add_container): Remove arg MEDIATYPE.  Change all callers.
(mime_maker_end_container): New.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Sep 29 2016, 10:20 AM
Parents
rG4ac138c84d0f: tools: Give mime parser callbacks access to the rfc822 parser.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG95d60c6ce9e8: tools: Simplify the mime-maker container creation. (authored by Werner Koch <wk@gnupg.org>).Sep 29 2016, 5:56 PM