diff options
author | Austin Clements <amdragon@MIT.EDU> | 2011-12-24 13:52:44 -0500 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2011-12-25 22:19:12 -0400 |
commit | bb189220a323e3140198161234ed54bf98175469 (patch) | |
tree | 5639019e0d3a2feeb576e0afa9267090116a7e35 /notmuch-restore.c | |
parent | 36f7fe5a1c83f3f0dd8fc883db558ab058b974f3 (diff) |
Introduce a generic tree-like abstraction for MIME traversal.
This wraps all of the complex MIME part handling in a single, simple
function that gets part N from *any* MIME object, so traversing a MIME
part tree becomes a two-line for loop. Furthermore, the MIME node
structure provides easy access to envelopes for message parts as well
as cryptographic information.
This code is directly derived from the current show_message_body code
(much of it is identical), but the control relation is inverted:
instead of show_message_body controlling the traversal of the MIME
structure and invoking callbacks, the caller controls the traversal of
the MIME structure.
Diffstat (limited to 'notmuch-restore.c')
0 files changed, 0 insertions, 0 deletions