about summary refs log tree commit diff
path: root/mmime.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-05-26 23:24:26 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-05-26 23:24:26 +0200
commit46a44e2f2234ed8cf069c461313c78f2c7f188f1 (patch)
tree53718b3f20a3f06402f2237da0f0976fe25afd1a /mmime.c
parentd8976d416c017cfecc0f8c7e506e574b2658fb97 (diff)
downloadmblaze-46a44e2f2234ed8cf069c461313c78f2c7f188f1.tar.gz
mblaze-46a44e2f2234ed8cf069c461313c78f2c7f188f1.tar.xz
mblaze-46a44e2f2234ed8cf069c461313c78f2c7f188f1.zip
mmime: add mblaze/raw for plain text inclusion
Diffstat (limited to 'mmime.c')
-rw-r--r--mmime.c4
1 files changed, 4 insertions, 0 deletions
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) {