summaryrefslogtreecommitdiff
path: root/mail/pine
diff options
context:
space:
mode:
authortv <tv>1998-06-18 16:14:58 +0000
committertv <tv>1998-06-18 16:14:58 +0000
commit427ef98621537010f57132eaa8ef259755053f8f (patch)
tree0651a6a790b5fe8a281ccedf5a2410aa0b8e396b /mail/pine
parent684b3811273f37f048a6b84ba55be32640261787 (diff)
downloadpkgsrc-427ef98621537010f57132eaa8ef259755053f8f.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-tabkey73
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);
+
+ /*