mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 46a44e2f2234ed8cf069c461313c78f2c7f188f1
parent d8976d416c017cfecc0f8c7e506e574b2658fb97
Author: Leah Neukirchen <leah@vuxu.org>
Date:   Fri, 26 May 2017 23:24:26 +0200

mmime: add mblaze/raw for plain text inclusion

Diffstat:
mmime.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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) {