Home GnuPG
Diffusion GpgOL 3985969e5557

Start refactoring mimeparser into mimedataprovider
3985969e5557Unpublished

Unpublished Commit · Learn More

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

Description

Start refactoring mimeparser into mimedataprovider

* src/mail.cpp (Mail::parsing_done): Use new API.
* src/mailparser.cpp: Move out body / attachment handling.
* src/mailparser.h: Update accordingly.
* src/mapihelp.cpp (mapi_mark_or_create_moss_attach): Fix return
for multipart/signed.
* src/mimedataprovider.cpp, src/mimedataprovider.h: Rework.

The MimeDataprovider now handles the transition from a MIME Message
into a signed / signature or for crypto messages into a (html)body
with attachments. It can be wrapped into GpgME::Data.

After creation of a MimeDataprovider no more MAPI structures
are needed and everything is currently done in memory.

The mimeparser code is based on the old mimeparser.c but a bit
simplyfied and restructured to split out the actual mime parsing
from the crypto calls.

This is a first working version and is not fully working
yet.

Details

Provenance
aheineckeAuthored on Sep 14 2016, 2:18 PM
Parents
rO4229a56e2e3b: Fix c++ linkage of rfc2047parse
Branches
Unknown
Tags
Unknown