mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
wks: New callback for the mime parser.
* tools/mime-parser.c (mime_parser_context_s): New field 't2body'. (parse_message_cb): Call that callback. (mime_parser_set_t2body): New. -- This callback allows to process header values even on the outer level. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
effa80e0b5
commit
a209025082
2 changed files with 27 additions and 0 deletions
|
@ -27,6 +27,8 @@ gpg_error_t mime_parser_new (mime_parser_t *r_ctx, void *cookie);
|
|||
void mime_parser_release (mime_parser_t ctx);
|
||||
|
||||
void mime_parser_set_verbose (mime_parser_t ctx, int level);
|
||||
void mime_parser_set_t2body (mime_parser_t ctx,
|
||||
gpg_error_t (*fnc) (void *cookie, int level));
|
||||
void mime_parser_set_new_part (mime_parser_t ctx,
|
||||
gpg_error_t (*fnc) (void *cookie,
|
||||
const char *mediatype,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue