Home GnuPG
Diffusion GpgOL e0cd79c6ef2a

Simplify / Fix attachment collection
e0cd79c6ef2aUnpublished

Unpublished Commit · Learn More

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

Description

Simplify / Fix attachment collection

* src/mimedataprovider.cpp (mime_context): Remove redundant
collect_attachment.
(t2body): Remove collect_attachment artifact. Infer from
crypto data / bodies / nesting level.

The old collect attachment handling rooted in the fact that
the old parser collected everything as attachments, even
the body. Now that we collect the body differently we don't
need to collect_attachment this way. We now collect
every nested parts that are not inline text as attachments
if they are not crypto_data.

Details

Provenance
aheineckeAuthored on Sep 28 2016, 4:10 PM
Parents
rOef8ea4a53711: tests: Add test for data with no headers
Branches
Unknown
Tags
Unknown