2020-06-25 18:23:38 +00:00
|
|
|
/////////////////////////////////////////////////////////////////
|
|
|
|
// EMAIL_COMMON.H
|
|
|
|
// Definitions shared between pop65.c and email.c
|
|
|
|
// Bobbi June 2020
|
|
|
|
/////////////////////////////////////////////////////////////////
|
|
|
|
|
2020-07-28 21:14:43 +00:00
|
|
|
#define PROGNAME "emai//er v0.90"
|
2020-06-29 21:51:12 +00:00
|
|
|
|
2020-06-25 18:23:38 +00:00
|
|
|
// Configuration params from POP65.CFG
|
2020-06-28 17:14:29 +00:00
|
|
|
char cfg_server[40]; // IP of POP3 server
|
2020-06-29 21:51:12 +00:00
|
|
|
char cfg_user[40]; // POP3 username
|
|
|
|
char cfg_pass[40]; // POP3 password
|
|
|
|
char cfg_pop_delete[40]; // If 'DELETE', delete message from POP3
|
2020-06-28 17:14:29 +00:00
|
|
|
char cfg_smtp_server[40]; // IP of SMTP server
|
|
|
|
char cfg_smtp_domain[40]; // Our domain
|
2020-07-15 23:45:25 +00:00
|
|
|
char cfg_instdir[80]; // ProDOS directory where apps are installed
|
2020-06-26 15:00:11 +00:00
|
|
|
char cfg_emaildir[80]; // ProDOS directory at root of email tree
|
2020-06-28 01:00:50 +00:00
|
|
|
char cfg_emailaddr[80]; // Our email address
|
2020-06-25 18:23:38 +00:00
|
|
|
|
|
|
|
// Represents the email headers for one message
|
|
|
|
struct emailhdrs {
|
|
|
|
uint16_t emailnum; // Name of file is EMAIL.n (n=emailnum)
|
2020-06-26 01:47:03 +00:00
|
|
|
char status; // 'N' new, 'R' read, 'D' deleted
|
2020-06-27 00:28:41 +00:00
|
|
|
char tag; // Used to maintain tag status in email.c
|
2020-06-25 18:23:38 +00:00
|
|
|
uint16_t skipbytes; // How many bytes to skip over the headers
|
|
|
|
char date[40];
|
|
|
|
char from[80];
|
|
|
|
char to[80];
|
|
|
|
char cc[80];
|
|
|
|
char subject[80];
|
|
|
|
#ifdef EMAIL_C
|
2020-06-27 00:28:41 +00:00
|
|
|
// The following fields are present in memory in email.c only, not on disk
|
2020-06-25 18:23:38 +00:00
|
|
|
struct emailhdrs *next; // Used in email.c only for linked list
|
|
|
|
#endif
|
|
|
|
};
|
|
|
|
|
2020-06-27 00:28:41 +00:00
|
|
|
#ifdef EMAIL_C
|
|
|
|
#define EMAILHDRS_SZ_ON_DISK (sizeof(struct emailhdrs) - 2)
|
|
|
|
#endif
|
|
|
|
|