From bb189220a323e3140198161234ed54bf98175469 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Sat, 24 Dec 2011 13:52:44 -0500 Subject: 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. --- Makefile.local | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile.local') diff --git a/Makefile.local b/Makefile.local index 97f397ff..516f26e8 100644 --- a/Makefile.local +++ b/Makefile.local @@ -315,6 +315,7 @@ notmuch_client_srcs = \ notmuch-time.c \ query-string.c \ show-message.c \ + mime-node.c \ json.c notmuch_client_modules = $(notmuch_client_srcs:.c=.o) -- cgit v1.2.3