Fixed X-Mailer header.

This commit is contained in:
Bobbi Webber-Manners 2020-06-29 00:22:52 -04:00
parent effe9ee473
commit efb66656e6
3 changed files with 4 additions and 1 deletions

View File

@ -601,7 +601,7 @@ void write_email_headers(FILE *fp1, FILE *fp2, struct emailhdrs *h, char mode) {
truncate_header(h->from, buf, 80);
fprintf(fp2, "To: %s\r", (mode == 'R' ? buf : ""), buf);
fprintf(fp2, "cc: \r");
fprintf(fp2, "X-Mailer: %s - Apple ][ Forever!\r\r", PROGNAME);
fprintf(fp2, "X-Mailer: %s - Apple II Forever!\r\r", PROGNAME);
if (mode == 'R') {
truncate_header(h->date, buf, 40);
fprintf(fp2, "On %s, ", buf);

View File

@ -6,6 +6,7 @@
// Bobbi June 2020
/////////////////////////////////////////////////////////////////
// TODO: Needs a DELETE option
// TODO: EMAIL.n files should be type TXT
// TODO: The way CRLF.CRLF is detected will not work if split across packets
// We can probably fix this by copying the last 4 bytes of each buffer

View File

@ -6,6 +6,8 @@
// Bobbi June 2020
/////////////////////////////////////////////////////////////////
// TODO See below
#include <cc65.h>
#include <errno.h>
#include <ctype.h>