mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
tools: New support functions for the mail parser.
* tools/rfc822parse.h (RFC822PARSE_HEADER_SEEN): New.
* tools/rfc822parse.c (rfc822_cmp_header_name): New.
(insert_header): Run header seen callback.
(rfc822parse_last_header_line): New.
(rfc822_free): New.
* tools/wks-receive.c (t2body): Use it here.
* tools/mime-parser.c (parse_message_cb): and here.
---
Backported-from-master: 675b12ddd8
This commit is contained in:
parent
afcac631f1
commit
2130760904
6 changed files with 58 additions and 6 deletions
|
@ -420,7 +420,7 @@ parse_message_cb (void *opaque, rfc822parse_event_t event, rfc822parse_t msg)
|
|||
if (!rc)
|
||||
rc = b64dec_start (ctx->b64state, NULL);
|
||||
}
|
||||
free (value); /* Right, we need a plain free. */
|
||||
rfc822_free (value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue