mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-07-06 19:28:56 +00:00
Fixed line-endings in blank new email
This commit is contained in:
parent
34d334cadb
commit
11901d908e
19
apps/email.c
19
apps/email.c
@ -4,11 +4,10 @@
|
|||||||
// Bobbi June 2020
|
// Bobbi June 2020
|
||||||
/////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
// TODO:
|
// - TODO: Update To/From if reply or forward
|
||||||
// - Update To/From if reply or forward
|
// - TODO: Fix terrible scrollback algorithm!!
|
||||||
// - Fix terrible scrollback algorithm!!
|
// - TODO: Editor for email composition functions
|
||||||
// - Add MIME support? Quoted printable and Base64?
|
// - TODO: Add MIME support? Quoted printable and Base64?
|
||||||
// - Editor for email composition functions
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -1035,18 +1034,18 @@ void create_blank_outgoing() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(fp, "From: %s\n", cfg_emailaddr);
|
fprintf(fp, "From: %s\r", cfg_emailaddr);
|
||||||
prompt_for_name("To", 0);
|
prompt_for_name("To", 0);
|
||||||
if (strlen(userentry) == 0)
|
if (strlen(userentry) == 0)
|
||||||
return;
|
return;
|
||||||
fprintf(fp, "To: %s\n", userentry);
|
fprintf(fp, "To: %s\r", userentry);
|
||||||
prompt_for_name("Subject", 0);
|
prompt_for_name("Subject", 0);
|
||||||
fprintf(fp, "Subject: %s\n", userentry);
|
fprintf(fp, "Subject: %s\r", userentry);
|
||||||
readdatetime((unsigned char*)(SYSTEMTIME), &dt);
|
readdatetime((unsigned char*)(SYSTEMTIME), &dt);
|
||||||
datetimelong(&dt, userentry);
|
datetimelong(&dt, userentry);
|
||||||
fprintf(fp, "Date: %s\n", userentry);
|
fprintf(fp, "Date: %s\r", userentry);
|
||||||
prompt_for_name("cc", 0);
|
prompt_for_name("cc", 0);
|
||||||
fprintf(fp, "cc: %s\n\n", userentry);
|
fprintf(fp, "cc: %s\r\r", userentry);
|
||||||
fprintf(fp, "X-Mailer: %s - Apple II Forever!\r\r", PROGNAME);
|
fprintf(fp, "X-Mailer: %s - Apple II Forever!\r\r", PROGNAME);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user