Subject: Avoid re-typing filename when saving attachments

From: John Berthels <[email-masked]>
Date: Tue, 6 Jul 1999 10:11:13 +0100 (BST)

Folks,

I seem to recall a post to this list some time ago relating to pine's
behaviour when saving an attachment.

The issue is when navigating to a directory (using ^t for example) the
filename from the MIME attachment is lost and must be re-typed.

The ideal behaviour for me would be to have a 'save file here with
original name' keystroke in the directory navigator.

Is this:

a) a FAQ
b) a planned feature
c) something someone has implemented in a patch
d) something people would like implemented in a patch
e) a bad idea in the first place (please enlighten)

regards,

jb

-- 
John Berthels
Email: [email-masked]
X.400: /G=john/S=berthels/O=nexor/P=nexor/A=cwmail/C=gb/

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

---

From: John Berthels <[email-masked]>
Date: Tue, 6 Jul 1999 19:39:30 +0100 (BST)

Sorry to followup my own post, but here is a tiny patch which does the
necessary. Its not ideal, but if you use the existing 'Add' button to
create a file whilst in the browser it now defaults to inserting the MIME
attachment name, so you can just hit multiple returns and end up with what
you want.

Does anyone have any interest in my cleaning this up for them? Any chance
of similar feature going in a future release? [Perhaps as its own
shortcut, rather than overloading 'Add'.]

regards,

jb

> original name' keystroke in the directory navigator.

--- pine4.10/pico/browse.c	Wed Sep 16 01:19:17 1998
+++ pine4.10-jb/pico/browse.c	Tue Jul  6 19:28:38 1999
@@ -972,7 +972,12 @@
 	    }
 
 	    i = 0;
-	    child[0] = '\0';
+	    /*
+	     * JB1 - Support default filename
+	     *
+	     * Set the default filename as that which we have already
+	     */
+	    strcpy( child, fn );
 
 	    while(!i){
 
@@ -991,9 +996,16 @@
 		    i++;
 		    break;
 		  case FALSE:
-		    i++;
-		    mlerase();
-		    break;
+		/*
+		 * JB1 - Support default filename
+		 *
+		 * False here means 'no change' which is OK since we
+		 * now supply a default. Treat this the same as true.
+		 *
+		 *   i++;
+		 *   mlerase();
+		 *   break;
+		 */
 		  case TRUE:
 		    i++;