summaryrefslogtreecommitdiff
path: root/mail/pine4/files/patch-ai
blob: dbf0aa6b88d047d8086b4bee4a084330c10757bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
*** pine/send.c.orig	Wed Jul  1 21:32:53 1998
--- pine/send.c	Fri Jul 10 00:51:41 1998
***************
*** 6616,6628 ****
  		body->subtype = cpystr("octet-stream");
  	    }
  
! 	    /*
! 	     * Apply maximal encoding regardless of previous
! 	     * setting.  This segment's either not text, or is 
! 	     * unlikely to be readable with > 30% of the
! 	     * text encoded anyway, so we might as well save space...
! 	     */
! 	    new_encoding = ENCBINARY;   /*  > 30% 8 bit chars */
  	}
      }
  
--- 6616,6632 ----
  		body->subtype = cpystr("octet-stream");
  	    }
  
! 	    if(body->type == TYPETEXT)
!               /* Use ENC8BIT rather than ENCBINARY for TEXT */
! 	      new_encoding = ENC8BIT;
! 	    else
! 	      /*
! 	       * Apply maximal encoding regardless of previous
! 	       * setting.  This segment's either not text, or is 
! 	       * unlikely to be readable with > 30% of the
! 	       * text encoded anyway, so we might as well save space...
! 	       */
! 	      new_encoding = ENCBINARY;   /*  > 30% 8 bit chars */
  	}
      }
  
***************
*** 7439,7445 ****
  
  	switch (body->encoding) {	/* all else needs filtering */
  	  case ENC8BIT:			/* encode 8BIT into QUOTED-PRINTABLE */
! 	    gf_link_filter(gf_8bit_qp, NULL);
  	    break;
  
  	  case ENCBINARY:		/* encode binary into BASE64 */
--- 7443,7450 ----
  
  	switch (body->encoding) {	/* all else needs filtering */
  	  case ENC8BIT:			/* encode 8BIT into QUOTED-PRINTABLE */
! 	    if(F_OFF(F_ENABLE_8BIT, ps_global)) /* unless 8BIT enabled */
! 		gf_link_filter(gf_8bit_qp, NULL);
  	    break;
  
  	  case ENCBINARY:		/* encode binary into BASE64 */
***************
*** 7506,7512 ****
        sprintf (*dst += strlen (*dst),"Content-Transfer-Encoding: %s\015\012",
  	       body_encodings[(body->encoding == ENCBINARY)
  				? ENCBASE64
! 				: (body->encoding == ENC8BIT)
  				    ? ENCQUOTEDPRINTABLE
  				    : (body->encoding <= ENCMAX)
  					? body->encoding : ENCOTHER]);
--- 7511,7517 ----
        sprintf (*dst += strlen (*dst),"Content-Transfer-Encoding: %s\015\012",
  	       body_encodings[(body->encoding == ENCBINARY)
  				? ENCBASE64
! 				: (body->encoding == ENC8BIT && F_OFF(F_ENABLE_8BIT, ps_global))
  				    ? ENCQUOTEDPRINTABLE
  				    : (body->encoding <= ENCMAX)
  					? body->encoding : ENCOTHER]);