mirror of
https://github.com/bobbimanners/emailler.git
synced 2025-08-15 12:27:35 +00:00
EMAIL: Added help screen. Got rid of menu bar in email summary screen.
This commit is contained in:
48
apps/email.c
48
apps/email.c
@@ -22,8 +22,7 @@
|
|||||||
#include "email_common.h"
|
#include "email_common.h"
|
||||||
|
|
||||||
// Program constants
|
// Program constants
|
||||||
#define MSGS_PER_PAGE 18 // Number of messages shown on summary screen
|
#define MSGS_PER_PAGE 19 // Number of messages shown on summary screen
|
||||||
#define MENU_ROW 22 // Row that the menu appears on
|
|
||||||
#define PROMPT_ROW 24 // Row that data entry prompt appears on
|
#define PROMPT_ROW 24 // Row that data entry prompt appears on
|
||||||
#define READSZ 1024 // Size of buffer for copying files
|
#define READSZ 1024 // Size of buffer for copying files
|
||||||
|
|
||||||
@@ -46,6 +45,8 @@
|
|||||||
#define CURSORROW 0x0025
|
#define CURSORROW 0x0025
|
||||||
#define SYSTEMTIME 0xbf90
|
#define SYSTEMTIME 0xbf90
|
||||||
|
|
||||||
|
char openapple[] = "\x0f\x1b""A\x18\x0e";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Represents a date and time
|
* Represents a date and time
|
||||||
*/
|
*/
|
||||||
@@ -465,14 +466,12 @@ void print_one_email_summary(struct emailhdrs *h, uint8_t inverse) {
|
|||||||
putchar('D'); // Deleted
|
putchar('D'); // Deleted
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
//printf("%02d|", h->emailnum);
|
|
||||||
putchar('|');
|
putchar('|');
|
||||||
printfield(h->date, 0, 16);
|
printfield(h->date, 0, 16);
|
||||||
putchar('|');
|
putchar('|');
|
||||||
printfield(h->from, 0, 20);
|
printfield(h->from, 0, 20);
|
||||||
putchar('|');
|
putchar('|');
|
||||||
printfield(h->subject, 0, 39);
|
printfield(h->subject, 0, 39);
|
||||||
//putchar('\r');
|
|
||||||
putchar(NORMAL);
|
putchar(NORMAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -524,10 +523,9 @@ void email_summary(void) {
|
|||||||
h = h->next;
|
h = h->next;
|
||||||
}
|
}
|
||||||
putchar(HOME);
|
putchar(HOME);
|
||||||
for (i = 0; i < MENU_ROW - 1; ++i)
|
for (i = 0; i < PROMPT_ROW - 2; ++i)
|
||||||
putchar(CURDOWN);
|
putchar(CURDOWN);
|
||||||
printf("%cUp/K Prev | SPC/RET Read | A)rchive | C)opy | M)ove | D)el | U)ndel | P)urge %c", INVERSE, NORMAL);
|
printf("%cOA-? Help %c", INVERSE, NORMAL);
|
||||||
printf("%cDn/J Next | S)witch mbox | N)ew mbox| T)ag | W)rite | R)eply | F)wd | Q)uit %c", INVERSE, NORMAL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1864,6 +1862,38 @@ done:
|
|||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Display help screen
|
||||||
|
*/
|
||||||
|
void help(void) {
|
||||||
|
clrscr2();
|
||||||
|
printf("%c%s HELP%c\n", INVERSE, PROGNAME, NORMAL);
|
||||||
|
puts("------------------------------------------+------------------------------------");
|
||||||
|
puts("Email Summary Screen | Email Pager");
|
||||||
|
puts(" [Up] / K Previous message | [Space] Page forward");
|
||||||
|
puts(" [Down] / J Next message | B Page back");
|
||||||
|
puts(" [Space] / [Ret] Read current message | T Go to top");
|
||||||
|
puts(" Q Quit to ProDOS | M MIME mode");
|
||||||
|
puts("------------------------------------------+ H Show email headers");
|
||||||
|
puts("Message Management | Q Return to summary");
|
||||||
|
puts(" S Switch mailbox +------------------------------------");
|
||||||
|
puts(" N Create new mailbox");
|
||||||
|
puts(" T Tag current message for group Archive/Move/Copy");
|
||||||
|
puts(" A Archive current/tagged message to 'received' mailbox");
|
||||||
|
puts(" C Copy current/tagged message to another mailbox");
|
||||||
|
puts(" M Move current/tagged message to another mailbox");
|
||||||
|
puts(" D Mark current message deleted");
|
||||||
|
puts(" U Undelete current message if marked deleted");
|
||||||
|
puts(" P Purge messages marked as deleted");
|
||||||
|
puts("------------------------------------------+------------------------------------");
|
||||||
|
puts("Message Composition | Invoke Helper Programs");
|
||||||
|
printf(" W Write an email message | %s-R Retrieve messages\n", openapple);
|
||||||
|
printf(" R Reply to current message | %s-S Send outbox\n", openapple);
|
||||||
|
printf(" F Forward current message | %s-D Set date using NTP\n", openapple);
|
||||||
|
fputs("------------------------------------------+------------------------------------", stdout);
|
||||||
|
cgetc();
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Keyboard handler
|
* Keyboard handler
|
||||||
*/
|
*/
|
||||||
@@ -2036,6 +2066,10 @@ void keyboard_hdlr(void) {
|
|||||||
case 0x80 + 'S':
|
case 0x80 + 'S':
|
||||||
load_smtp65();
|
load_smtp65();
|
||||||
break;
|
break;
|
||||||
|
case 0x80 + '?': // OA-? "Help"
|
||||||
|
help();
|
||||||
|
email_summary();
|
||||||
|
break;
|
||||||
case 'q':
|
case 'q':
|
||||||
case 'Q':
|
case 'Q':
|
||||||
if (prompt_okay("Quit - ")) {
|
if (prompt_okay("Quit - ")) {
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#define PROGNAME "emai//er v1.03"
|
#define PROGNAME "emai//er v1.04"
|
||||||
|
|
||||||
// Configuration params from POP65.CFG
|
// Configuration params from POP65.CFG
|
||||||
char cfg_server[40]; // IP of POP3 server
|
char cfg_server[40]; // IP of POP3 server
|
||||||
|
Reference in New Issue
Block a user