diff options
author | tv <tv@pkgsrc.org> | 1998-06-18 16:14:58 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 1998-06-18 16:14:58 +0000 |
commit | b82d2609ca5c76d0ebb73b49723043a35f1ee3e3 (patch) | |
tree | 0651a6a790b5fe8a281ccedf5a2410aa0b8e396b /mail/pine | |
parent | 4a882b7d0c6526372c14cf26dd1051ee3c8b5e9a (diff) | |
download | pkgsrc-b82d2609ca5c76d0ebb73b49723043a35f1ee3e3.tar.gz |
Allow the use of the tab key to peruse folders other than just the
incoming mailbox list.
Diffstat (limited to 'mail/pine')
-rw-r--r-- | mail/pine/patches/patch-tabkey | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/mail/pine/patches/patch-tabkey b/mail/pine/patches/patch-tabkey new file mode 100644 index 00000000000..be33e1a5b3c --- /dev/null +++ b/mail/pine/patches/patch-tabkey @@ -0,0 +1,73 @@ +*** pine/mailcmd.c.orig Wed Sep 10 14:14:13 1997 +--- pine/mailcmd.c Wed Sep 10 14:16:22 1997 +*************** +*** 534,546 **** + char ret = 'n'; + int in_inbox = !strucmp(state->cur_folder,state->inbox_name); + +! if(!state->nr_mode && state->context_current +! && (((state->context_current->use & CNTXT_NEWS) +! && context_isambig(state->cur_folder)) +! || ((state->context_current->use & CNTXT_INCMNG) +! && (in_inbox +! || folder_index(state->cur_folder, +! state->context_current->folders) >=0)))){ + char nextfolder[MAXPATH]; + MAILSTREAM *nextstream = NULL; + +--- 534,540 ---- + char ret = 'n'; + int in_inbox = !strucmp(state->cur_folder,state->inbox_name); + +! if(!state->nr_mode && state->context_current) { + char nextfolder[MAXPATH]; + MAILSTREAM *nextstream = NULL; + +*************** +*** 551,557 **** + if(!in_inbox){ + sprintf(prompt, "No more %ss. Return to \"%s\"", +! (state->context_current->use&CNTXT_INCMNG) +! ? "incoming folder" : "news group", + state->inbox_name); + ret = want_to(prompt, 'y', 'x', NO_HELP, 0, 0); + if(ret == 'y') +--- 545,551 ---- + if(!in_inbox){ + sprintf(prompt, "No more %ss. Return to \"%s\"", +! (state->context_current->use&CNTXT_NEWS) +! ? "news group" : "folder", + state->inbox_name); + ret = want_to(prompt, 'y', 'x', NO_HELP, 0, 0); + if(ret == 'y') +*************** +*** 561,574 **** + else + q_status_message1(SM_ORDER, 0, 2, "No more %ss", +! (state->context_current->use&CNTXT_INCMNG) +! ? "incoming folder" : "news group"); + + break; + } + + sprintf(prompt, "View next %s \"%s\"? ", +! (state->context_current->use&CNTXT_INCMNG) +! ? "Incoming folder" : "news group", + nextfolder); + + /* +--- 555,568 ---- + else + q_status_message1(SM_ORDER, 0, 2, "No more %ss", +! (state->context_current->use&CNTXT_NEWS) +! ? "news group" : "folder"); + + break; + } + + sprintf(prompt, "View next %s \"%s\"? ", +! (state->context_current->use&CNTXT_NEWS) +! ? "news group" : "folder", + nextfolder); + + /* |