diff options
author | Werner Koch <[email protected]> | 2016-09-29 10:29:27 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-09-29 15:56:37 +0000 |
commit | 29db3be6e8dbc9b4dd52cd1781106fa9fa3954a5 (patch) | |
tree | f2de522f904a19322fbb62fa1a648cd70b5f0048 /tools/mime-parser.c | |
parent | tools: Simplify the mime-maker container creation. (diff) | |
download | gnupg-29db3be6e8dbc9b4dd52cd1781106fa9fa3954a5.tar.gz gnupg-29db3be6e8dbc9b4dd52cd1781106fa9fa3954a5.zip |
tools: Change mime-maker to write out CR,LF.
* tools/mime-maker.c (struct part_s): Add field PARTID.
(struct mime_maker_context_s): Add field PARTID_COUNTER.
(dump_parts): Print part ids.
(mime_maker_add_header): Assign PARTID.
(mime_maker_add_container): Ditto.
(mime_maker_get_partid): New.
(write_ct_with_boundary): Remove.
(add_header): Strip trailing white spaces.
(write_header): Remove trailing spaces trimming. Add arg BOUNDARY.
Handle emdedded LFs.
(write_gap, write_boundary, write_body): New.
(write_tree): Use new functions.
--
These changes prepare for forthcoming enhancements.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'tools/mime-parser.c')
0 files changed, 0 insertions, 0 deletions