tools: Give mime parser callbacks access to the rfc822 parser.
authorWerner Koch <wk@gnupg.org>
Thu, 29 Sep 2016 06:11:32 +0000 (08:11 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 29 Sep 2016 15:56:37 +0000 (17:56 +0200)
commit4ac138c84d0f344ca9442f90c96f0e1f76062a4a
tree8184b8bf4742864074e76c515f9a1c71968a0db0
parent9e6f8a55ed04f876635792125858ee76a948802a
tools: Give mime parser callbacks access to the rfc822 parser.

* tools/mime-parser.c (mime_parser_context_s): Add field MSG.
(parse_message_cb): Set it.
(mime_parser_rfc822parser): New.
* tools/mime-parser.h: Declare rfc822parse_t for the new prototype.

Signed-off-by: Werner Koch <wk@gnupg.org>
tools/mime-parser.c
tools/mime-parser.h