summary refs log tree commit diff
path: root/html.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-26 20:14:15 -0400
committerJune McEnroe <june@causal.agency>2020-04-26 20:14:15 -0400
commit99b6908162b73143e0fb4d0babca80dbea48e304 (patch)
treee0e05e1780f4c2d8f2992e972a7ca3d2bcdab5f7 /html.c
parentIterate through nested multiparts to find content for Atom (diff)
downloadbubger-99b6908162b73143e0fb4d0babca80dbea48e304.tar.gz
bubger-99b6908162b73143e0fb4d0babca80dbea48e304.zip
Rename part->id to part->contentID
Disambiguate with messageID.
Diffstat (limited to '')
-rw-r--r--html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/html.c b/html.c
index a8c344e..ff08357 100644
--- a/html.c
+++ b/html.c
@@ -175,10 +175,10 @@ int htmlMessageOpen(FILE *file, const struct Envelope *envelope) {
 
 static int htmlInlineAttrs(FILE *file, const struct BodyPart *part) {
 	const char *template = " [attr]=\"[value]\"";
-	if (part->id) {
+	if (part->contentID) {
 		struct Variable vars[] = {
 			{ "attr", "id" },
-			{ "value", part->id },
+			{ "value", part->contentID },
 			{0},
 		};
 		int error = templateRender(file, template, vars, escapeXML);