From 99b6908162b73143e0fb4d0babca80dbea48e304 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 26 Apr 2020 20:14:15 -0400 Subject: Rename part->id to part->contentID Disambiguate with messageID. --- parse.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'parse.c') diff --git a/parse.c b/parse.c index e2f2a99..ead3b15 100644 --- a/parse.c +++ b/parse.c @@ -122,7 +122,9 @@ static void parseDisposition(struct BodyPart *part, struct List list) { } static void parseNonMultipart(struct BodyPart *part, struct List list) { - enum { Type, Subtype, Params, ID, Description, Encoding, Size, BasicLen }; + enum { + Type, Subtype, Params, ContentID, Description, Encoding, Size, BasicLen + }; if (list.len < BasicLen) errx(EX_PROTOCOL, "missing body part fields"); part->multipart = false; @@ -131,8 +133,8 @@ static void parseNonMultipart(struct BodyPart *part, struct List list) { if (list.ptr[Params].type == List) { part->params = list.ptr[Params].list; } - if (list.ptr[ID].type == String) { - part->id = list.ptr[ID].string; + if (list.ptr[ContentID].type == String) { + part->contentID = list.ptr[ContentID].string; } if (list.ptr[Description].type == String) { part->description = list.ptr[Description].string; -- cgit 1.4.1