From 46a44e2f2234ed8cf069c461313c78f2c7f188f1 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Fri, 26 May 2017 23:24:26 +0200 Subject: mmime: add mblaze/raw for plain text inclusion --- mmime.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mmime.c') diff --git a/mmime.c b/mmime.c index b229310..3bcbbd1 100644 --- a/mmime.c +++ b/mmime.c @@ -164,6 +164,9 @@ gen_file(char *file, char *ct) return -1; } + if (strcmp(ct, "mblaze/raw") == 0) + goto raw; + off_t bithigh = 0; off_t bitlow = 0; off_t linelen = 0; @@ -191,6 +194,7 @@ gen_file(char *file, char *ct) ct = "text/plain"; printf("Content-Type: %s\n", ct); printf("Content-Transfer-Encoding: 7bit\n\n"); +raw: fwrite(content, 1, size, stdout); return 0; } else if (bitlow == 0 && bithigh == 0) { -- cgit 1.4.1