about summary refs log tree commit diff
path: root/mshow.c
diff options
context:
space:
mode:
Diffstat (limited to 'mshow.c')
-rw-r--r--mshow.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mshow.c b/mshow.c
index 4b87f46..298e209 100644
--- a/mshow.c
+++ b/mshow.c
@@ -225,6 +225,11 @@ render_mime(int depth, struct message *msg, char *body, size_t bodylen)
 		}
 		setenv("PIPE_CONTENTTYPE", ct, 1);
 
+		char *messageid = blaze822_hdr(msg, "message-id");
+		if (messageid) {
+			setenv("MESSAGE_ID", messageid, 1);
+		}
+
 		char *output;
 		size_t outlen;
 		int e = filter(body, bodylen, cmd, &output, &outlen);