From e7929465963035b8285dfc75519da61d5774388d Mon Sep 17 00:00:00 2001 From: David Levine Date: Thu, 20 Nov 2014 22:27:58 -0600 Subject: [PATCH] Added support for multipart/related to MIME parser. --- h/mhparse.h | 1 + uip/mhparse.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/h/mhparse.h b/h/mhparse.h index 06710bdc..371e671a 100644 --- a/h/mhparse.h +++ b/h/mhparse.h @@ -205,6 +205,7 @@ struct text { #define MULTI_ALTERNATE 0x02 #define MULTI_DIGEST 0x03 #define MULTI_PARALLEL 0x04 +#define MULTI_RELATED 0x05 /* Structure for subparts of a multipart content */ struct part { diff --git a/uip/mhparse.c b/uip/mhparse.c index 7851e185..a4998345 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -59,6 +59,7 @@ struct k2v SubMultiPart[] = { { "alternative", MULTI_ALTERNATE }, { "digest", MULTI_DIGEST }, { "parallel", MULTI_PARALLEL }, + { "related", MULTI_RELATED }, { NULL, MULTI_UNKNOWN } /* this one must be last! */ }; @@ -3149,6 +3150,8 @@ ct_subtype_str (int type, int subtype) { return "digest"; case MULTI_PARALLEL: return "parallel"; + case MULTI_RELATED: + return "related"; default: return "unknown_multipart_subtype"; } -- 2.56.0