mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-05-28 20:41:33 +00:00
Improved tagged message prompt. Allow OA-/ for help.
This commit is contained in:
parent
305c7bcf34
commit
c2b4773e1c
|
@ -2638,6 +2638,7 @@ int edit(char *fname) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 0x80 + '?': // OA-? "Help"
|
case 0x80 + '?': // OA-? "Help"
|
||||||
|
case 0x80 + '/': // OA-/ "Help"
|
||||||
help1:
|
help1:
|
||||||
help(1);
|
help(1);
|
||||||
c = cgetc();
|
c = cgetc();
|
||||||
|
|
12
apps/email.c
12
apps/email.c
|
@ -2044,7 +2044,7 @@ uint16_t get_db_index(void) {
|
||||||
* on the current message. If they are, prompt the user and, if affirmative,
|
* on the current message. If they are, prompt the user and, if affirmative,
|
||||||
* iterate through the tagged messages calling copy_to_mailbox() on each.
|
* iterate through the tagged messages calling copy_to_mailbox() on each.
|
||||||
*/
|
*/
|
||||||
uint8_t copy_to_mailbox_tagged(char *mbox, uint8_t delete) {
|
uint8_t copy_to_mailbox_tagged(char *mbox, char mode, uint8_t delete) {
|
||||||
uint16_t count = 0, tagcount = 0;
|
uint16_t count = 0, tagcount = 0;
|
||||||
struct emailhdrs *h;
|
struct emailhdrs *h;
|
||||||
uint16_t l;
|
uint16_t l;
|
||||||
|
@ -2053,7 +2053,8 @@ uint8_t copy_to_mailbox_tagged(char *mbox, uint8_t delete) {
|
||||||
copy_to_mailbox(h, get_db_index(), mbox, delete, ' ');
|
copy_to_mailbox(h, get_db_index(), mbox, delete, ' ');
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
snprintf(filename, 80, "%u tagged - ", total_tag);
|
snprintf(filename, 80, "%s %u tagged - ",
|
||||||
|
(mode == 'C' ? "Copy" : (mode == 'M' ? "Move" : "Archive")), total_tag);
|
||||||
if (!prompt_okay(filename))
|
if (!prompt_okay(filename))
|
||||||
return 0;
|
return 0;
|
||||||
h = (struct emailhdrs*)malloc(sizeof(struct emailhdrs));
|
h = (struct emailhdrs*)malloc(sizeof(struct emailhdrs));
|
||||||
|
@ -2333,7 +2334,7 @@ void keyboard_hdlr(void) {
|
||||||
if (h) {
|
if (h) {
|
||||||
c = prompt_for_name("Copy to mbox", 1);
|
c = prompt_for_name("Copy to mbox", 1);
|
||||||
if ((c != 0) && (c != 255))
|
if ((c != 0) && (c != 255))
|
||||||
copy_to_mailbox_tagged(userentry, 0);
|
copy_to_mailbox_tagged(userentry, 'C', 0);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'm':
|
case 'm':
|
||||||
|
@ -2341,14 +2342,14 @@ void keyboard_hdlr(void) {
|
||||||
if (h) {
|
if (h) {
|
||||||
c = prompt_for_name("Move to mbox", 1);
|
c = prompt_for_name("Move to mbox", 1);
|
||||||
if ((c != 0) && (c != 255))
|
if ((c != 0) && (c != 255))
|
||||||
copy_to_mailbox_tagged(userentry, 1);
|
copy_to_mailbox_tagged(userentry, 'M', 1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'a':
|
case 'a':
|
||||||
case 'A':
|
case 'A':
|
||||||
if (h) {
|
if (h) {
|
||||||
goto_prompt_row();
|
goto_prompt_row();
|
||||||
copy_to_mailbox_tagged("RECEIVED", 1);
|
copy_to_mailbox_tagged("RECEIVED", 'A', 1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'p':
|
case 'p':
|
||||||
|
@ -2421,6 +2422,7 @@ void keyboard_hdlr(void) {
|
||||||
load_app(APP_SMTP);
|
load_app(APP_SMTP);
|
||||||
break;
|
break;
|
||||||
case 0x80 + '?': // OA-? "Help"
|
case 0x80 + '?': // OA-? "Help"
|
||||||
|
case 0x80 + '/': // OA-/ "Help"
|
||||||
help(1);
|
help(1);
|
||||||
c = cgetc();
|
c = cgetc();
|
||||||
email_summary();
|
email_summary();
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#define PROGNAME "emai//er v2.1.10"
|
#define PROGNAME "emai//er v2.1.11"
|
||||||
|
|
||||||
// Configuration params from EMAIL.CFG
|
// Configuration params from EMAIL.CFG
|
||||||
char cfg_server[40]; // IP of POP3 server
|
char cfg_server[40]; // IP of POP3 server
|
||||||
|
|
Loading…
Reference in New Issue
Block a user