2020-06-25 14:23:38 -04:00
|
|
|
/////////////////////////////////////////////////////////////////
|
|
|
|
// EMAIL_COMMON.H
|
|
|
|
// Definitions shared between pop65.c and email.c
|
|
|
|
// Bobbi June 2020
|
|
|
|
/////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
// Configuration params from POP65.CFG
|
|
|
|
char cfg_server[80]; // IP of POP3 server
|
|
|
|
char cfg_user[80]; // Username
|
|
|
|
char cfg_pass[80]; // Password
|
2020-06-26 11:00:11 -04:00
|
|
|
char cfg_emaildir[80]; // ProDOS directory at root of email tree
|
2020-06-25 14:23:38 -04:00
|
|
|
|
|
|
|
// Represents the email headers for one message
|
|
|
|
struct emailhdrs {
|
|
|
|
uint16_t emailnum; // Name of file is EMAIL.n (n=emailnum)
|
2020-06-25 21:47:03 -04:00
|
|
|
char status; // 'N' new, 'R' read, 'D' deleted
|
2020-06-25 14:23:38 -04: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
|
|
|
|
struct emailhdrs *next; // Used in email.c only for linked list
|
|
|
|
#endif
|
|
|
|
};
|
|
|
|
|