head	1.9;
access;
symbols
	RELEASE_4_2_0:1.8
	RELEASE_4_1_1:1.8
	RELEASE_4_1_0:1.8
	RELEASE_3_5_0:1.8
	RELEASE_4_0_0:1.8
	RELEASE_3_4_0:1.8
	RELEASE_3_3_0:1.7
	RELEASE_3_2_0:1.7
	RELEASE_3_1_0:1.6
	RELEASE_2_2_8:1.6
	RELEASE_3_0_0:1.6
	RELEASE_2_2_7:1.3
	RELEASE_2_2_6:1.2
	zh_pine_3_95:1.1.1.1
	WOJU:1.1.1;
locks; strict;
comment	@# @;


1.9
date	2000.11.17.19.06.52;	author keith;	state dead;
branches;
next	1.8;

1.8
date	99.11.01.00.40.56;	author steve;	state Exp;
branches;
next	1.7;

1.7
date	99.03.15.01.45.41;	author steve;	state Exp;
branches;
next	1.6;

1.6
date	98.10.10.04.29.21;	author steve;	state Exp;
branches;
next	1.5;

1.5
date	98.08.09.00.51.25;	author steve;	state Exp;
branches;
next	1.4;

1.4
date	98.07.30.12.30.38;	author vanilla;	state Exp;
branches;
next	1.3;

1.3
date	98.07.21.14.11.37;	author vanilla;	state Exp;
branches;
next	1.2;

1.2
date	98.02.02.14.34.28;	author vanilla;	state Exp;
branches;
next	1.1;

1.1
date	97.12.01.19.47.23;	author vanilla;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	97.12.01.19.47.23;	author vanilla;	state Exp;
branches;
next	;


desc
@@


1.9
log
@Upgrade from 4.21 to 4.30.

Especially thanks to the maintainer, Tai-hwa Liang (avatar), for
ending those long lasting evil +400k files/patch-*. :-)

According to kkenn, pine4's security will exist until it's totally
rewritten, so I'll leave pkg-install untouched, which shows the
security warning.
PR:		ports/22436
@
text
@--- pico/file.c.orig	Tue Mar 23 09:26:04 1999
+++ pico/file.c	Thu Oct 14 10:53:41 1999
@@@@ -63,17 +63,17 @@@@
                 return(s);
 
 	if(gmode&MDSCUR){
-	    emlwrite("File reading disabled in secure mode",NULL);
+	    emlwrite("wҦwŪɮת\\",NULL);
 	    return(0);
 	}
 
 	if (strlen(fname) == 0) {
-	  emlwrite("No file name entered",NULL);
+	  emlwrite("|JɮצW",NULL);
 	  return(0);
 	}
 
 	if((gmode & MDTREE) && !in_oper_tree(fname)){
-	  emlwrite("Can't read file from outside of %s", opertree);
+	  emlwrite("LkŪ %s H~ɮ", opertree);
 	  return(0);
 	}
 
@@@@ -137,13 +137,13 @@@@
 
 	    menu_ins[last_menu].name  = "^T";
 	    menu_ins[last_menu].key   = (CTRL|'T');
-	    menu_ins[last_menu].label = "To Files";
+	    menu_ins[last_menu].label = "ɮצC";
 	    KS_OSDATASET(&menu_ins[last_menu], KS_NONE);
 
 	    if(Pmaster && Pmaster->msgntext){
 		menu_ins[++last_menu].name  = "^W";
 		menu_ins[last_menu].key     = (CTRL|'W');
-		menu_ins[last_menu].label   = msg ? "InsertFile" : "InsertMsg";
+		menu_ins[last_menu].label   = msg ? "Jɮ" : "JT";
 		KS_OSDATASET(&menu_ins[last_menu], KS_NONE);
 	    }
 
@@@@ -159,44 +159,43 @@@@
 	    if(gmode & MDCMPLT){
 		menu_ins[++last_menu].name = msg ? "" : "TAB";
 		menu_ins[last_menu].key    = (CTRL|'I');
-		menu_ins[last_menu].label  = msg ? "" : "Complete";
+		menu_ins[last_menu].label  = msg ? "" : "";
 		KS_OSDATASET(&menu_ins[last_menu], KS_NONE);
 	    }
 
 	    menu_ins[++last_menu].name = NULL;
 	}
 
-	sprintf(prompt, "%s to insert from %s %s: ",
-		msg ? "Number of message" : "File",
+	sprintf(prompt, "%s%sJ%sG",
 		(msg || (gmode&MDCURDIR))
-		  ? "current"
-		  : ((gmode & MDTREE) || opertree[0]) ? opertree : "home",
-		msg ? "folder" : "directory");
+		  ? "ثe"
+		  : ((gmode & MDTREE) || opertree[0]) ? opertree : "a",
+		msg ? "ɮקX" : "ؿ", msg ? "Hs" : "ɮ");
 	s = mlreplyd(prompt, fname, NLINE, QDEFLT, msg ? NULL : menu_ins);
 	/* something to read and it was edited or the default accepted */
         if(fname[0] && (s == TRUE || s == FALSE)){
 	    bye++;
 	    if(msg){
 		if((*Pmaster->msgntext)(atol(fname), insmsgchar))
-		  emlwrite("Message %s included", fname);
+		  emlwrite("H %s wtJ", fname);
 	    }
 	    else{
 		bye++;
 		if(gmode&MDSCUR){
-		    emlwrite("Can't insert file in restricted mode",NULL);
+		    emlwrite("bҦLkJɮ",NULL);
 		}
 		else{
 		    if((gmode & MDTREE)
 		       && !compresspath(opertree, fname, NLINE)){
 			emlwrite(
-			"Can't insert file from outside of %s: too many ..'s",
+			"Lkb %s H~a贡JɮסGӦh .. F",
 			opertree);
 		    }
 		    else{
 			fixpath(fname, NLINE);
 
 			if((gmode & MDTREE) && !in_oper_tree(fname))
-			  emlwrite("Can't insert file from outside of %s",
+			  emlwrite("Lkb %s H~a贡Jɮ",
 				    opertree);
 			else
 			  retval = ifile(fname);
@@@@ -255,7 +254,7 @@@@
 		break;
 	      case (CTRL|'T'):
 		if(msg){
-		    emlwrite("Can't select messages yet!", NULL);
+		    emlwrite("ٵLkܫHI", NULL);
 		}
 		else{
 		    if(*fname && isdir(fname, NULL, NULL))
@@@@ -270,7 +269,7 @@@@
 		    if((s = FileBrowse(dir, NLINE, fname, NLINE, 
 				       NULL, FB_READ)) == 1){
 			if(gmode&MDSCUR){
-			    emlwrite("Can't insert in restricted mode",
+			    emlwrite("bҦLkJ",
 				     NULL);
 			    sleep(2);
 			}
@@@@ -311,7 +310,7 @@@@
 
 		    if(gmode&MDSCUR){
 			emlwrite(
-			      "\007Restricted mode disallows uploaded command",
+			      "\007Ҧ\\W",
 			      NULL);
 			return(0);
 		    }
@@@@ -411,20 +410,20 @@@@
 	strcpy(curbp->b_fname, fname);
 	if ((s=ffropen(fname)) != FIOSUC){	/* Hard file open.      */
 	    if(s == FIOFNF)                     /* File not found.      */
-	      emlwrite("New file", NULL);
+	      emlwrite("s", NULL);
 	    else
 	      fioperr(s, fname);
 	}
 	else{
-	    emlwrite("Reading file", NULL);
+	    emlwrite("Ūɮ", NULL);
 	    nline = 0L;
 	    done  = newline = 0;
 	    while(!done)
 	      if((s = ffgetline(line, NLINE, 1)) == FIOEOF){
 		  curbp->b_flag &= ~(BFTEMP|BFCHG);
 		  gotobob(FALSE, 1);
-		  sprintf(line,"Read %d line%s",
-			  nline, (nline > 1) ? "s" : "");
+		  sprintf(line,"Ū %d ",
+			  nline);
 		  emlwrite(line, NULL);
 		  break;
 	      }
@@@@ -482,14 +481,14 @@@@
 	  fname[0] = '\0';
 
 	menu_write[0].name  = "^T";
-	menu_write[0].label = "To Files";
+	menu_write[0].label = "ɮצC";
 	menu_write[0].key   = (CTRL|'T');
 	menu_write[1].name  = "TAB";
-	menu_write[1].label = "Complete";
+	menu_write[1].label = "";
 	menu_write[1].key   = (CTRL|'I');
 	menu_write[2].name  = NULL;
 	for(;!(gmode & MDTOOL);){
-	    s = mlreplyd("File Name to write : ", fname, NFILEN,
+	    s = mlreplyd("gJɦWG", fname, NFILEN,
 			 QDEFLT|QFFILE, menu_write);
 
 	    switch(s){
@@@@ -500,7 +499,7 @@@@
 		}
 	      case TRUE:
 		if((gmode & MDTREE) && !compresspath(opertree, fname, NFILEN)){
-		    emlwrite("Can't write outside of %s: too many ..'s",
+		    emlwrite("LkgJ %s H~ɮסGӦh .. F",
 			     opertree);
 		    sleep(2);
 		    continue;
@@@@ -508,7 +507,7 @@@@
 		else{
 		    fixpath(fname, NFILEN);	/*  fixup ~ in file name  */
 		    if((gmode & MDTREE) && !in_oper_tree(fname)){
-			emlwrite("Can't write outside of %s", opertree);
+			emlwrite("LkgJ %s H~ɮ", opertree);
 			sleep(2);
 			continue;
 		    }
@@@@ -592,12 +591,12 @@@@
 		    strcpy(fname, shows);
 		  }
 		  else {
-		    emlwrite("Cannot write. File name too long!!",NULL);
+		    emlwrite("LkgJCɦWLI",NULL);
 		    sleep(3);
 		  }
 		}
 		else if (s == -1){
-		  emlwrite("Cannot write. File name too long!!",NULL);
+		  emlwrite("LkgJCɦWLI",NULL);
 		  sleep(3);
 		}
 		refresh(FALSE, 1);
@@@@ -635,7 +634,7 @@@@
 		return(ABORT);
 	    }
 	}
-	emlwrite("Writing...", NULL);
+	emlwrite("bgJ...", NULL);
 
         if ((s=writeout(fname, 0)) != -1) {
 	        if(!(gmode&MDTOOL)){
@@@@ -652,9 +651,9 @@@@
 		}
 
 		if(s > 1)
-		  emlwrite("Wrote %d lines", (void *)s);
+		  emlwrite("gJ %d ", (void *)s);
 		else
-		  emlwrite("Wrote 1 line", NULL);
+		  emlwrite("gJ 1 ", NULL);
         }
         return ((s == -1) ? FALSE : TRUE);
 }
@@@@ -680,12 +679,12 @@@@
         if ((curbp->b_flag&BFCHG) == 0)         /* Return, no changes.  */
                 return (TRUE);
         if (curbp->b_fname[0] == 0) {           /* Must have a name.    */
-                emlwrite("No file name", NULL);
+                emlwrite("SɦW", NULL);
 		sleep(2);
                 return (FALSE);
         }
 
-	emlwrite("Writing...", NULL);
+	emlwrite("bgJ...", NULL);
         if ((s=writeout(curbp->b_fname, 0)) != -1) {
                 curbp->b_flag &= ~BFCHG;
                 wp = wheadp;                    /* Update mode lines.   */
@@@@ -696,10 +695,10 @@@@
                         wp = wp->w_wndp;
                 }
 		if(s > 1){
-		    emlwrite("Wrote %d lines", (void *)s);
+		    emlwrite("gJ %d ", (void *)s);
 		}
 		else
-		  emlwrite("Wrote 1 line", NULL);
+		  emlwrite("gJ 1 ", NULL);
         }
         return (s);
 }
@@@@ -818,7 +817,7 @@@@
 	curbp->b_flag &= ~BFTEMP;		/* and are not temporary*/
 	curbp->b_linecnt = -1;			/* must be recalculated */
 
-        emlwrite("Inserting %s.", fname);
+        emlwrite("bJ %sC", fname);
 	done = newline = 0;
 	nline = 0L;
 	while(!done)
@@@@ -828,7 +827,7 @@@@
 	      else
 		forwchar(FALSE, 1);
 
-	      sprintf(line,"Inserted %d line%s", nline, (nline>1) ? "s" : "");
+	      sprintf(line,"wJ %d ", nline);
 	      emlwrite(line, NULL);
 	      break;
 	  }
@@@@ -916,7 +915,7 @@@@
 	      strcat(fn, S_FILESEP);
 	  }
 	  else{
-	    emlwrite("File name too BIG!!",0);
+	    emlwrite("ɦWӤjFII",0);
 	    sleep(3);
 	    *fn = '\0';
 	  }
@


1.8
log
@Update to version 4.20.

PR:		14575
Submitted by:	maintainer
@
text
@@


1.7
log
@Update to version 4.10.

PR:		10245
Submitted by:	maintainer
@
text
@d1 2
a2 2
--- pico/file.c.orig	Sat Jan 30 03:59:32 1999
+++ pico/file.c	Mon Feb 22 22:11:27 1999
d94 1
a94 1
@@@@ -252,7 +251,7 @@@@
d103 1
a103 1
@@@@ -267,7 +266,7 @@@@
d112 1
a112 1
@@@@ -308,7 +307,7 @@@@
d121 1
a121 1
@@@@ -408,20 +407,20 @@@@
d146 1
a146 1
@@@@ -479,14 +478,14 @@@@
d164 1
a164 1
@@@@ -497,7 +496,7 @@@@
d173 1
a173 1
@@@@ -505,7 +504,7 @@@@
d182 1
a182 1
@@@@ -589,12 +588,12 @@@@
d197 1
a197 1
@@@@ -632,7 +631,7 @@@@
d206 1
a206 1
@@@@ -649,9 +648,9 @@@@
d218 1
a218 1
@@@@ -677,12 +676,12 @@@@
d233 1
a233 1
@@@@ -693,10 +692,10 @@@@
d246 1
a246 1
@@@@ -815,7 +814,7 @@@@
d255 1
a255 1
@@@@ -825,7 +824,7 @@@@
d264 1
a264 1
@@@@ -913,7 +912,7 @@@@
@


1.6
log
@Update to version 4.05.

PR:		8025
Submitted by:	maintainer
@
text
@d1 2
a2 2
--- pico/file.c.orig	Fri Aug 28 07:02:07 1998
+++ pico/file.c	Tue Sep 22 18:45:49 1998
d18 1
a18 1
 	if((gmode&MDTREE) && !in_oper_tree(fname)){
d40 1
a40 1
@@@@ -159,43 +159,42 @@@@
a53 1
-		(msg || (gmode&MDCURDIR)) ? "current"
d55 3
a57 3
+		(msg || (gmode&MDCURDIR)) ? "ثe"
 					  : (gmode&MDTREE) ? opertree
-							   : "home",
d59 2
a60 1
+							   : "a",
d78 2
a79 1
 		    if(gmode&MDTREE && !compresspath(opertree, fname, NLINE)){
d88 1
a88 1
 			if((gmode&MDTREE) && !in_oper_tree(fname))
d94 1
a94 1
@@@@ -250,7 +249,7 @@@@
d103 1
a103 1
@@@@ -264,7 +263,7 @@@@
d112 1
a112 1
@@@@ -305,7 +304,7 @@@@
d121 1
a121 2
@@@@ -403,17 +402,17 @@@@
 
d123 1
a123 6
 	if ((gmode&MDTREE) && !in_oper_tree(fname)) {
-	    emlwrite("Can't read file from outside of %s", opertree);
+	    emlwrite("LkŪ %s H~ɮ", opertree);
 	    s = FIOERR;
 	}
 	else if ((s=ffropen(fname)) != FIOSUC){	/* Hard file open.      */
d136 10
d167 1
a167 1
 		if(gmode&MDTREE && !compresspath(opertree, fname, NFILEN)){
d176 1
a176 1
 		    if((gmode&MDTREE) && !in_oper_tree(fname)){
d182 1
a182 1
@@@@ -586,12 +585,12 @@@@
d197 1
a197 1
@@@@ -629,7 +628,7 @@@@
d206 1
a206 1
@@@@ -646,9 +645,9 @@@@
d218 1
a218 1
@@@@ -674,12 +673,12 @@@@
d233 1
a233 1
@@@@ -690,10 +689,10 @@@@
d246 1
a246 1
@@@@ -812,7 +811,7 @@@@
d255 1
a255 1
@@@@ -822,7 +821,7 @@@@
d264 1
a264 1
@@@@ -910,7 +909,7 @@@@
@


1.5
log
@Cleanups from maintainer.

PR:		7468
Submitted by:	maintainer
@
text
@d1 23
a23 2
--- pico/file.c.orig	Fri Jul 17 08:11:52 1998
+++ pico/file.c	Tue Aug  4 12:42:14 1998
d40 1
a40 1
@@@@ -159,26 +159,25 @@@@
d62 1
a62 1
 	s = mlreplyd(prompt, fname, NFILEN, QDEFLT, msg ? NULL : menu_ins);
d73 195
@


1.4
log
@Upgrade to 4.02,
Submitted by:	maintainer
@
text
@d1 17
a17 10
--- pico/pico.c.orig	Tue Jul  7 05:41:45 1998
+++ pico/pico.c	Tue Jul 28 08:35:00 1998
@@@@ -318,7 +318,7 @@@@
 	c = GetKey();
         if (term.t_nrow < 6 && c != NODATA){
             (*term.t_beep)();
-            emlwrite("Please make the screen bigger.", NULL);
+            emlwrite("бNeդj@@ǡC", NULL);
             continue;
         }
d19 8
a26 44
@@@@ -560,9 +560,9 @@@@
     }
     
     if(c&CTRL)
-      emlwrite("\007Unknown Command: ^%c", (void *)(c&0xff));
+      emlwrite("\007ROG^%c", (void *)(c&0xff));
     else
-      emlwrite("\007Unknown Command", NULL);
+      emlwrite("\007RO", NULL);
 
     lastflag = 0;                           /* Fake last flags.     */
     return (FALSE);
@@@@ -615,7 +615,7 @@@@
 	    return(TRUE);
 	}
 	else{
-	    emlwrite("Cancel Cancelled", NULL);
+	    emlwrite("", NULL);
 	    curwp->w_flag |= WFMODE;		/* and modeline so we  */
 	    sgarbk = TRUE;			/* redraw the keymenu  */
 	    pclear(term.t_nrow - 1, term.t_nrow + 1);
@@@@ -624,17 +624,17 @@@@
 	}
     }
     else switch(mlyesno(Pmaster->headents
-	 ? "Cancel message (answering \"Yes\" will abandon your mail message)"
+	 ? "\"\"oӰʧ@@N|AثeHCTw"
 	 : (anycb() == FALSE)
-	     ? "Cancel Edit (and abandon changes)"
-	     : "Cancel Edit",
+	     ? "s(éҦ)"
+	     : "s",
 	 FALSE)){
       case TRUE:
 	pico_all_done = COMP_CANCEL;
 	return(TRUE);
 
       case ABORT:
-	emlwrite("\007Cancel Cancelled", NULL);
+	emlwrite("\007", NULL);
 	break;
 
       default:
@@@@ -672,7 +672,7 @@@@
d28 1
a28 5
 	/* First, make sure there are no outstanding problems */ 
 	if(AttachError()){
-	    emlwrite("\007Problem with attachments!  Fix errors or delete attachments.", NULL);
+	    emlwrite("\007D! Э״_ΧRӪC", NULL);
 	    return(FALSE);
d31 18
a48 52
@@@@ -706,7 +706,7 @@@@
         if (f != FALSE                          /* Argument forces it.  */
         || anycb() == FALSE                     /* All buffers clean.   */
 						/* User says it's OK.   */
-        || (s=mlyesno("Save modified buffer (ANSWERING \"No\" WILL DESTROY CHANGES)", -1)) == FALSE) {
+        || (s=mlyesno("sJLwİ (^ \"No\" NMҦwLק)", -1)) == FALSE) {
                 vttidy();
 #if     defined(USE_TERMCAP) || defined(USE_TERMINFO) || defined(VMS)
 		kbdestroy(kbesc);
@@@@ -719,7 +719,7 @@@@
 	      wquit(1, 0);
 	}
 	else if(s == ABORT){
-	    emlwrite("Exit cancelled", NULL);
+	    emlwrite("}", NULL);
 	    if(term.t_mrow == 0)
 	      curwp->w_flag |= WFHARD;	/* cause bottom 3 lines to paint */
 	}
@@@@ -753,7 +753,7 @@@@
 ctrlg(f, n)
 int f, n;
 {
-    emlwrite("Cancelled", NULL);
+    emlwrite("", NULL);
     return (ABORT);
 }
 
@@@@ -764,7 +764,7 @@@@
 rdonly()
 {
     (*term.t_beep)();
-    emlwrite("Key illegal in VIEW mode", NULL);
+    emlwrite("oO@@Ӧb VIEW ҦXkRO", NULL);
     return(FALSE);
 }
 
@@@@ -1289,7 +1289,7 @@@@
        wp->doto = 0;
    }
    else
-     emlwrite("Can't allocate space for text", NULL);
+     emlwrite("LktmrOŶ", NULL);
 
    return((void *)wp);
 }
@@@@ -1377,7 +1377,7 @@@@
 	    register LINE *lp;
 
 	    if((lp = lalloc(0)) == NULL){
-		emlwrite("Can't allocate space for more characters",NULL);
+		emlwrite("LktmOŶhr",NULL);
 		return(0);
d50 2
a51 1
 
@


1.3
log
@Upgrade to 4.00
Submitted by:	Liang Tai-hwa <avatar@@www.mmlab.cse.yzu.edu.tw>
@
text
@d1 10
a10 8
--- pine/osdep/os-bsf.h.orig	Fri Jun 26 14:19:54 1998
+++ pine/osdep/os-bsf.h	Wed Jul 15 17:02:35 1998
@@@@ -268,7 +268,7 @@@@
        8
        9 logs gross details of command execution
  ----*/
-#define DEFAULT_DEBUG 2
+#define DEFAULT_DEBUG 0
d12 9
d22 95
@


1.2
log
@Add a lot of patches of chinese menu.
Submitted by:	maintainer
@
text
@d1 11
a11 20
*** pico/tcap.c.bak	Fri Mar 15 10:42:31 1996
--- pico/tcap.c	Thu Jan 29 22:04:28 1998
***************
*** 322,328 ****
  	KPPU   = tgetstr("kP", &p);
  	KPPD   = tgetstr("kN", &p);
  	KPHOME = tgetstr("kh", &p);
! 	KPEND  = tgetstr("kE", &p);
  	KPDEL  = tgetstr("kD", &p);
  	KU     = tgetstr("ku", &p);
  	KD     = tgetstr("kd", &p);
--- 322,329 ----
  	KPPU   = tgetstr("kP", &p);
  	KPPD   = tgetstr("kN", &p);
  	KPHOME = tgetstr("kh", &p);
! 	if((KPEND = tgetstr("@@7", &p)) == NULL)
! 	  KPEND  = tgetstr("kE", &p);
  	KPDEL  = tgetstr("kD", &p);
  	KU     = tgetstr("ku", &p);
  	KD     = tgetstr("kd", &p);
@


1.1
log
@Initial revision
@
text
@d1 20
a20 27
--- pine/send.c.orig	Tue Jul  9 02:10:50 1996
+++ pine/send.c	Sat Dec 28 02:36:30 1996
@@@@ -49,6 +49,11 @@@@
 #include "headers.h"
 #include "../c-client/smtp.h"
 #include "../c-client/nntp.h"
+/*
+woju
+disable bitstrip, keep 8-bit clean
+*/
+#define bitstrip(x) (x)
 
 
 #ifndef TCPSTREAM
@@@@ -5427,6 +5432,12 @@@@
 
     if(body->encoding == ENCOTHER)
       body->encoding = new_encoding;
+/*
+woju
+disable qp-encode
+*/
+    if (body->encoding == ENC8BIT)
+       body->encoding = 0;
 
 #ifndef	DOS
     fs_give((void **)&buf);
@


1.1.1.1
log
@Fix chinese display/input problem in pine.
PR:		ports/5083
Submitted by:	Yen-Shuo Su <yssu@@CCCA.NCTU.edu.tw>
@
text
@@
