aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-08-06 19:15:12 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-08-06 19:15:12 +0200
commitf9226dde7b37064c235123d523a5c5a1a9b09f5d (patch)
treea979a0b7601f1daca42baa4395a27a1a66b5bc22
parent758351abc533c25eada4d223c830d4051ee94e2c (diff)
downloadmblaze-f9226dde7b37064c235123d523a5c5a1a9b09f5d.tar.gz
mmime: generate LF before MIME boundaries
-rw-r--r--mmime.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mmime.c b/mmime.c
index d9fb6d1..d6897a8 100644
--- a/mmime.c
+++ b/mmime.c
@@ -291,7 +291,7 @@ gen_build()
} else {
printf("Content-Type: multipart/mixed; boundary=\"%s\"\n", sep);
printf("\n");
- printf("This is a multipart message in MIME format.\n\n");
+ printf("This is a multipart message in MIME format.\n");
}
} else {
print_header(line);
@@ -303,7 +303,7 @@ gen_build()
char *f = strchr(line, ' ');
*f = 0;
if (strchr(line, '/')) {
- printf("--%s\n", sep);
+ printf("\n--%s\n", sep);
if (line[read-1] == '\n')
line[read-1] = 0;
gen_file(f+1, (char *)line+1);
@@ -313,7 +313,7 @@ gen_build()
}
if (!rflag && !intext) {
- printf("--%s\n", sep);
+ printf("\n--%s\n", sep);
printf("Content-Type: text/plain; charset=UTF-8\n");
printf("Content-Disposition: inline\n");
printf("Content-Transfer-Encoding: quoted-printable\n\n");
@@ -324,7 +324,7 @@ gen_build()
gen_qp((uint8_t *)line, strlen(line), 78, 0);
}
if (!rflag && !inheader)
- printf("--%s--\n", sep);
+ printf("\n--%s--\n", sep);
free(line);
return 0;