Subject: auto jump to inbox

From: Brian Harvell <[email-masked]>
Date: Tue, 21 Jan 2003 10:58:56 -0500 (EST)

Is there a way to disable the question of

No more incoming folders.  Return to "INBOX"?

and just make it jump to the inbox?

Brian

-- 

Brian Harvell                [email-masked]             http://ToolBoy.com/
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Steve Hubert <[email-masked]>
Date: Tue, 28 Jan 2003 10:33:47 -0800 (Pacific Standard Time)

> and just make it jump to the inbox?

We'll add a feature to do that in the next version of pine. Thanks.

Steve Hubert <[email-masked]>
Networks and Distributed Computing, Univ. of Washington, Seattle

---

From: Brian Harvell <[email-masked]>
Date: Tue, 28 Jan 2003 14:58:06 -0500 (EST)

> We'll add a feature to do that in the next version of pine. Thanks.

A friend of mine made this patch against the 4.53 uber patched pine at

http://www.math.washington.edu/~chappa/pine/patches/pine4.53/pine4.53.tar.gz

It works great for me.

Brian

-- 

diff -r -U 5 pine4.53/pine/init.c pine4.53-inbox_patch/pine/init.c
--- pine4.53/pine/init.c	Fri Jan 24 12:38:00 2003
+++ pine4.53-inbox_patch/pine/init.c	Fri Jan 24 17:55:44 2003
@@ -2572,10 +2572,12 @@
 /* Index prefs */
 	{"auto-open-next-unread",
 	 F_AUTO_OPEN_NEXT_UNREAD, h_config_auto_open_unread, PREF_INDX},
         {"enable-circular-tab",
          F_AUTO_CIRCULAR_TAB, h_config_circular_tab, PREF_INDX},
+        {"return-to-inbox-without-confirm",
+         F_RETURN_TO_INBOX_WITHOUT_CONFIRM, return_to_inbox_without_confirm, PREF_INDX},
 	{"thread-index-shows-important-color",
 	 F_COLOR_LINE_IMPORTANT, h_config_color_thrd_import, PREF_INDX},
 	{"enhanced-fancy-thread-support",
 	 F_ENHANCED_THREAD, h_config_enhanced_thread, PREF_INDX},
 	{"continue-tab-without-confirm",
diff -r -U 5 pine4.53/pine/mailcmd.c pine4.53-inbox_patch/pine/mailcmd.c
--- pine4.53/pine/mailcmd.c	Fri Jan 24 12:38:03 2003
+++ pine4.53-inbox_patch/pine/mailcmd.c	Fri Jan 24 17:58:16 2003
@@ -918,19 +918,23 @@
 				{'n', 'n', "N", "No"},
 				{TAB, 'z', "Tab", "To Inbox"},
 				{-1, 0, NULL, NULL}
 			    };
 
-			    sprintf(prompt,
-				    "No more %ss.  Return to \"%.*s\"? ",
-				    (state->context_current->use&CNTXT_INCMNG)
-				      ? "incoming folder" : "news group", 
-				    sizeof(prompt)-40, state->inbox_name);
+                            if ( F_OFF(F_RETURN_TO_INBOX_WITHOUT_CONFIRM,state) ) {
+			      sprintf(prompt,
+				      "No more %ss.  Return to \"%.*s\"? ",
+				      (state->context_current->use&CNTXT_INCMNG)
+				        ? "incoming folder" : "news group", 
+				      sizeof(prompt)-40, state->inbox_name);
 
-			    ret = radio_buttons(prompt, -FOOTER_ROWS(state),
-						inbox_opt, 'y', 'x',
-						NO_HELP, RB_NORM);
+			      ret = radio_buttons(prompt, -FOOTER_ROWS(state),
+			  			  inbox_opt, 'y', 'x',
+						  NO_HELP, RB_NORM);
+                            } else {
+                              ret = 'y';
+                            }
 
 			    /*
 			     * 'z' is a synonym for 'y'.  It is not 'y'
 			     * so that it isn't displayed as a default
 			     * action with square-brackets around it
diff -r -U 5 pine4.53/pine/pine.h pine4.53-inbox_patch/pine/pine.h
--- pine4.53/pine/pine.h	Fri Jan 24 12:38:11 2003
+++ pine4.53-inbox_patch/pine/pine.h	Fri Jan 24 17:56:26 2003
@@ -1074,10 +1074,11 @@
 	F_FORCE_LOW_SPEED,
 	F_ALT_ED_NOW,
 	F_SHOW_DELAY_CUE,
 	F_AUTO_OPEN_NEXT_UNREAD,
 	F_AUTO_CIRCULAR_TAB,
+        F_RETURN_TO_INBOX_WITHOUT_CONFIRM,
 	F_SELECTED_SHOWN_BOLD,
 	F_QUOTE_ALL_FROMS,
 	F_AUTO_INCLUDE_IN_REPLY,
 	F_DISABLE_CONFIG_SCREEN,
 	F_DISABLE_PASSWORD_CACHING,
diff -r -U 5 pine4.53/pine/pine.hlp pine4.53-inbox_patch/pine/pine.hlp
--- pine4.53/pine/pine.hlp	Fri Jan 24 12:38:14 2003
+++ pine4.53-inbox_patch/pine/pine.hlp	Fri Jan 24 18:20:43 2003
@@ -2580,10 +2580,11 @@
 <li><a href="h_config_allow_chg_from">FEATURE: allow-changing-from</a>
 <li><a href="h_config_auto_read_msgs">FEATURE: auto-move-read-msgs</a>
 <li><a href="h_config_auto_read_msgs_rules">FEATURE: auto-move-read-msgs-using-rules</a>
 <li><a href="h_config_auto_open_unread">FEATURE: auto-open-next-unread</a>
 <li><a href="h_config_circular_tab">FEATURE: enable-circular-tab</a>
+<li><a href="return_to_inbox_without_confirm">FEATURE: return-to-inbox-without-confirm</a>
 <li><a href="h_config_combined_abook_display">FEATURE: combined-addrbook-display</a>
 <li><a href="h_config_combined_folder_display">FEATURE: combined-folder-display</a>
 <li><a href="h_config_combined_subdir_display">FEATURE: combined-subdirectory-display</a>
 <li><a href="h_config_compose_rejects_unqual">FEATURE: compose-rejects-unqualified-addrs</a>
 <li><a href="h_config_send_filter_dflt">FEATURE: compose-send-offers-first-filter</a>
@@ -22662,10 +22663,26 @@
 <LI><A HREF="h_finding_help">Finding more information and requesting help</A>
 </UL><P>
 &lt;End of help on this topic&gt;
 </BODY>
 </HTML>
+====== return_to_inbox_without_confirm =====
+<HTML>
+<HEAD>
+<TITLE>FEATURE: return-to-inbox-without-confirm </TITLE>
+</HEAD>
+<BODY>
+<H1>FEATURE: return-to-inbox-without-confirm </H1>
+
+<P>
+Do not prompt to return to inbox at the end of incoming folders.
+<UL>
+<LI><A HREF="h_finding_help">Finding more information and requesting help</A>
+</UL><P>
+&lt;End of help on this topic&gt;
+</BODY>
+</HTML>
 ====== h_config_auto_include_reply =====
 <HTML>
 <HEAD>
 <TITLE>FEATURE: include-text-in-reply</TITLE>
 </HEAD>