Subject: Quoted Printable problems

From: [email-masked] (Enric Navarro Sanchis)
Date: 21 Apr 1995 11:56:00 GMT

Hello,
	I have instaled pine3.91 and all works fine except the QP
	codification.
	I do not have seen any compile option or parameter in the
	configuration option .pinerc that talks about QP.
	The question is:
	when I send text with 8bit characters (ISO-xxxx) pine always
	send the message with Quoted-Printable indeed of 8-bit.

	Please, some help.

	Thanks in advance.

--
Enric Navarro Sanchis		e-mail:[email-masked]	
Analista de Sistemas		Tfn: 964-345875 ext. 4119
Centre Processament de Dades	| Oh, mother. I can feel |
Universitat Jaume I		| the soil falling over  | 
Castello, Spain			| my head. 		 |

---

From: [email-masked] (Ming-Yen Hsu)
Date: 21 Apr 1995 18:33:19 GMT

Enric Navarro Sanchis ([email-masked]) wrote:
: 	I do not have seen any compile option or parameter in the
: 	configuration option .pinerc that talks about QP.
: 	The question is:
: 	when I send text with 8bit characters (ISO-xxxx) pine always
: 	send the message with Quoted-Printable indeed of 8-bit.
: 	Please, some help.
: 	Thanks in advance.

Apply following patch then enable the 8bit option in Config
menu (enable-send-only-8bit, enable-8bit-in subject).

It seems pine 3.92 will add 8bit esmtp as a optional
feature.

diff -r -c ../pine3.91.orig/imap/ANSI/c-client/Makefile ./imap/ANSI/c-client/Makefile
*** ../pine3.91.orig/imap/ANSI/c-client/Makefile	Tue Oct 11 07:13:22 1994
--- ./imap/ANSI/c-client/Makefile	Mon Mar 20 03:06:17 1995
***************
*** 193,199 ****
  sun:	# SUN-OS
  	$(MAKE) mtest OS=$@ EXTRADRIVERS="$(EXTRADRIVERS)" \
  		STDPROTO=bezerkproto \
! 		CFLAGS="-g -Dconst= $(EXTRACFLAGS)" \
  		LDFLAGS="-ldl"
  
  sv2:	# SVR2
--- 193,199 ----
  sun:	# SUN-OS
  	$(MAKE) mtest OS=$@ EXTRADRIVERS="$(EXTRADRIVERS)" \
  		STDPROTO=bezerkproto \
! 		CFLAGS="-O2 -Dconst= $(EXTRACFLAGS)" \
  		LDFLAGS="-ldl"
  
  sv2:	# SVR2
diff -r -c ../pine3.91.orig/imap/ANSI/imapd/Makefile ./imap/ANSI/imapd/Makefile
*** ../pine3.91.orig/imap/ANSI/imapd/Makefile	Tue Oct 12 13:29:19 1993
--- ./imap/ANSI/imapd/Makefile	Mon Mar 20 03:06:17 1995
***************
*** 36,42 ****
  
  # Get local CFLAGS and LFLAGS definitions from c-client directory
  
! CFLAGS = -I$C `cat $C/CFLAGS`
  LDFLAGS = $(CCLIENTLIB) `cat $C/LDFLAGS`
  
  imapd: $(CCLIENTLIB) imapd.o
--- 36,42 ----
  
  # Get local CFLAGS and LFLAGS definitions from c-client directory
  
! CFLAGS = -I$C `cat $C/CFLAGS` -O2
  LDFLAGS = $(CCLIENTLIB) `cat $C/LDFLAGS`
  
  imapd: $(CCLIENTLIB) imapd.o
diff -r -c ../pine3.91.orig/imap/ANSI/ipopd/Makefile ./imap/ANSI/ipopd/Makefile
*** ../pine3.91.orig/imap/ANSI/ipopd/Makefile	Tue Oct 12 13:32:58 1993
--- ./imap/ANSI/ipopd/Makefile	Mon Mar 20 03:06:18 1995
***************
*** 36,42 ****
  
  # Get local CFLAGS and LFLAGS definitions from c-client directory
  
! CFLAGS = -I$C `cat $C/CFLAGS`
  LDFLAGS = $(CCLIENTLIB) `cat $C/LDFLAGS`
  
  ipopd: ipop2d ipop3d
--- 36,42 ----
  
  # Get local CFLAGS and LFLAGS definitions from c-client directory
  
! CFLAGS = -I$C `cat $C/CFLAGS` -O2
  LDFLAGS = $(CCLIENTLIB) `cat $C/LDFLAGS`
  
  ipopd: ipop2d ipop3d
diff -r -c ../pine3.91.orig/imap/non-ANSI/c-client/Makefile ./imap/non-ANSI/c-client/Makefile
*** ../pine3.91.orig/imap/non-ANSI/c-client/Makefile	Tue Oct 11 07:13:22 1994
--- ./imap/non-ANSI/c-client/Makefile	Mon Mar 20 03:06:18 1995
***************
*** 193,199 ****
  sun:	# SUN-OS
  	$(MAKE) mtest OS=$@ EXTRADRIVERS="$(EXTRADRIVERS)" \
  		STDPROTO=bezerkproto \
! 		CFLAGS="-g -Dconst= $(EXTRACFLAGS)" \
  		LDFLAGS="-ldl"
  
  sv2:	# SVR2
--- 193,199 ----
  sun:	# SUN-OS
  	$(MAKE) mtest OS=$@ EXTRADRIVERS="$(EXTRADRIVERS)" \
  		STDPROTO=bezerkproto \
! 		CFLAGS="-O2 -Dconst= $(EXTRACFLAGS)" \
  		LDFLAGS="-ldl"
  
  sv2:	# SVR2
diff -r -c ../pine3.91.orig/imap/non-ANSI/c-client/bezerk.c ./imap/non-ANSI/c-client/bezerk.c
*** ../pine3.91.orig/imap/non-ANSI/c-client/bezerk.c	Fri Oct  7 06:46:32 1994
--- ./imap/non-ANSI/c-client/bezerk.c	Mon Mar 20 03:06:18 1995
***************
*** 1644,1657 ****
        i = (sod + i) - s;	/* total number of tries */
        do {			/* fast search for newline */
  	if ((0x80808080 & (0x01010101 + (0x7f7f7f7f & ~(m ^ *(Word *) s)))) &&
! 	    (s1 = ((s[3] == '\n') ? (s + 4) :
! 		   ((s[2] == '\n') ? (s + 3) :
! 		    ((s[1] == '\n') ? (s + 2) :
! 		     ((s[0] == '\n') ? (s + 1) : NIL)))))) {
! 	  VALID (s1,t,ti,zn);	/* interesting word, check it closer */
  	  if (ti) return s1;
  	}
! 	else s += 4;		/* try next word */
  	i -= 4;			/* count a word checked */
        } while (i > 24);		/* continue until end of plausible string */
      }
--- 1644,1657 ----
        i = (sod + i) - s;	/* total number of tries */
        do {			/* fast search for newline */
  	if ((0x80808080 & (0x01010101 + (0x7f7f7f7f & ~(m ^ *(Word *) s)))) &&
! 				/* find rightmost newline in word */
! 	    ((*(s1 = s + 3) == '\n') || (*--s1 == '\n') ||
! 	     (*--s1 == '\n') || (*--s1 == '\n'))) {
! 	  s1++;			/* skip past newline */
! 	  VALID (s1,t,ti,zn);	/* see if valid From line */
  	  if (ti) return s1;
  	}
! 	s += 4;			/* try next word */
  	i -= 4;			/* count a word checked */
        } while (i > 24);		/* continue until end of plausible string */
      }
diff -r -c ../pine3.91.orig/imap/non-ANSI/c-client/pop3.c ./imap/non-ANSI/c-client/pop3.c
*** ../pine3.91.orig/imap/non-ANSI/c-client/pop3.c	Mon Oct 10 09:01:54 1994
--- ./imap/non-ANSI/c-client/pop3.c	Mon Mar 20 03:06:19 1995
***************
*** 363,370 ****
        LOCAL->buf = (char *) fs_get ((LOCAL->buflen = MAXMESSAGESIZE) + 1);
        nmsgs = strtol (LOCAL->reply,NIL,10);
  				/* create caches */
!       LOCAL->header = (char **) fs_get (i * sizeof (char *));
!       LOCAL->body = (char **) fs_get (i * sizeof (char *));
        for (i = 0; i < nmsgs;) {	/* initialize caches */
  	LOCAL->header[i] = LOCAL->body[i] = NIL;
  				/* instantiate elt */
--- 363,370 ----
        LOCAL->buf = (char *) fs_get ((LOCAL->buflen = MAXMESSAGESIZE) + 1);
        nmsgs = strtol (LOCAL->reply,NIL,10);
  				/* create caches */
!       LOCAL->header = (char **) fs_get (nmsgs * sizeof (char *));
!       LOCAL->body = (char **) fs_get (nmsgs * sizeof (char *));
        for (i = 0; i < nmsgs;) {	/* initialize caches */
  	LOCAL->header[i] = LOCAL->body[i] = NIL;
  				/* instantiate elt */
diff -r -c ../pine3.91.orig/imap/non-ANSI/imapd/Makefile ./imap/non-ANSI/imapd/Makefile
*** ../pine3.91.orig/imap/non-ANSI/imapd/Makefile	Tue Oct 12 13:29:19 1993
--- ./imap/non-ANSI/imapd/Makefile	Mon Mar 20 03:06:19 1995
***************
*** 36,42 ****
  
  # Get local CFLAGS and LFLAGS definitions from c-client directory
  
! CFLAGS = -I$C `cat $C/CFLAGS`
  LDFLAGS = $(CCLIENTLIB) `cat $C/LDFLAGS`
  
  imapd: $(CCLIENTLIB) imapd.o
--- 36,42 ----
  
  # Get local CFLAGS and LFLAGS definitions from c-client directory
  
! CFLAGS = -I$C `cat $C/CFLAGS` -O2
  LDFLAGS = $(CCLIENTLIB) `cat $C/LDFLAGS`
  
  imapd: $(CCLIENTLIB) imapd.o
diff -r -c ../pine3.91.orig/imap/non-ANSI/ipopd/Makefile ./imap/non-ANSI/ipopd/Makefile
*** ../pine3.91.orig/imap/non-ANSI/ipopd/Makefile	Tue Oct 12 13:32:58 1993
--- ./imap/non-ANSI/ipopd/Makefile	Mon Mar 20 03:06:19 1995
***************
*** 36,42 ****
  
  # Get local CFLAGS and LFLAGS definitions from c-client directory
  
! CFLAGS = -I$C `cat $C/CFLAGS`
  LDFLAGS = $(CCLIENTLIB) `cat $C/LDFLAGS`
  
  ipopd: ipop2d ipop3d
--- 36,42 ----
  
  # Get local CFLAGS and LFLAGS definitions from c-client directory
  
! CFLAGS = -I$C `cat $C/CFLAGS` -O2
  LDFLAGS = $(CCLIENTLIB) `cat $C/LDFLAGS`
  
  ipopd: ipop2d ipop3d
diff -r -c ../pine3.91.orig/pico/composer.c ./pico/composer.c
*** ../pine3.91.orig/pico/composer.c	Fri Sep 30 06:29:19 1994
--- ./pico/composer.c	Mon Mar 20 03:30:40 1995
***************
*** 144,149 ****
--- 144,152 ----
  struct on_display ods;				/* global on_display struct */

+ /* enable-8bit-in-subject feature*/
+ int ext_char_in_subject = 0;
+ 
  /*
   * useful macros
   */
***************
*** 981,988 ****
  	    }
          }
  
! 
!         if(ch > 0x1f && ch < 0x7f){		/* char input */
              /*
               * if we are allowing editing, insert the new char
               * end up leaving tbufp pointing to newly
--- 984,997 ----
  	    }
          }
  
!        
!         if(ch > 0x1f && (
!           (ch < 0xff && (ch != 0x7f) && (ext_char_in_subject)) | ( 
!           (ch < 0x7f && (!ext_char_in_subject))
!           )))
!         {
!         
!         /* char input */
              /*
               * if we are allowing editing, insert the new char
               * end up leaving tbufp pointing to newly
diff -r -c ../pine3.91.orig/pico/makefile.lnx ./pico/makefile.lnx
*** ../pine3.91.orig/pico/makefile.lnx	Wed Oct 12 05:57:36 1994
--- ./pico/makefile.lnx	Mon Mar 20 03:06:20 1995
***************
*** 40,48 ****
  #
  
  #includes symbol for debugging
! DASHO=		-g
  #for normal build
! #DASHO=		-O2
  
  CFLAGS=	 	-Dbsd -DLINUX -DPOSIX -DJOB_CONTROL
  
--- 40,48 ----
  #
  
  #includes symbol for debugging
! #DASHO=		-g
  #for normal build
! DASHO=		-O2
  
  CFLAGS=	 	-Dbsd -DLINUX -DPOSIX -DJOB_CONTROL
  
diff -r -c ../pine3.91.orig/pico/makefile.sun ./pico/makefile.sun
*** ../pine3.91.orig/pico/makefile.sun	Sat Feb 26 02:37:22 1994
--- ./pico/makefile.sun	Mon Mar 20 03:06:20 1995
***************
*** 40,48 ****
  #
  
  #includes symbol info for debugging 
! DASHO=		-g
  #for normal build
! #DASHO=		-O
  
  CFLAGS=		-Dsun -DJOB_CONTROL -ldl
  
--- 40,48 ----
  #
  
  #includes symbol info for debugging 
! #DASHO=		-g
  #for normal build
! DASHO=		-O2
  
  CFLAGS=		-Dsun -DJOB_CONTROL -ldl
  
diff -r -c ../pine3.91.orig/pine/init.c ./pine/init.c
*** ../pine3.91.orig/pine/init.c	Tue Oct 11 05:34:29 1994
--- ./pine/init.c	Mon Mar 20 03:15:01 1995
***************
*** 864,874 ****
--- 864,876 ----
  	{"enable-alternate-editor-cmd",		F_ENABLE_ALT_ED},
  	{"enable-alternate-editor-implicitly",	F_ALT_ED_NOW},
  	{"enable-bounce-cmd",			F_ENABLE_BOUNCE},
+ 	{"enable-8bit-in-subject",              F_8BIT_IN_SUBJECT},
  	{"enable-flag-cmd",			F_ENABLE_FLAG},
  	{"enable-full-header-cmd",		F_ENABLE_FULL_HDR},
  	{"enable-incoming-folders",		F_ENABLE_INCOMING},
  	{"enable-jump-shortcut",		F_ENABLE_JUMP},
  	{"enable-mail-check-cue",		F_SHOW_DELAY_CUE},
+ 	{"enable-send-only-8bit",               F_SEND_ONLY_8BIT},
  	{"enable-suspend",			F_CAN_SUSPEND},
  	{"enable-tab-completion",		F_ENABLE_TAB_COMPLETE},
  	{"enable-unix-pipe-cmd",		F_ENABLE_PIPE},
***************
*** 2089,2100 ****
          }
  
          /*--- Var is not user controlled, leave it alone for back compat ---*/
!         if(!v->is_user){
!             if(which_vars == ParseLocal){           
                  pline->is_var = 0;
                  pline->line = cpystr(line);
                  pline++;
-             }
              continue;
          }
  
--- 2091,2100 ----
          }
  
          /*--- Var is not user controlled, leave it alone for back compat ---*/
!         if(!v->is_user && which_vars == ParseLocal){
                  pline->is_var = 0;
                  pline->line = cpystr(line);
                  pline++;
              continue;
          }
  
diff -r -c ../pine3.91.orig/pine/makefile.lnx ./pine/makefile.lnx
*** ../pine3.91.orig/pine/makefile.lnx	Wed Oct 12 06:24:30 1994
--- ./pine/makefile.lnx	Mon Mar 20 03:06:21 1995
***************
*** 57,65 ****
  RM=          rm -f
  LN=          ln -s
  MAKE=        make
! OPTIMIZE=    # -O2
  PROFILE=     # -pg
! DEBUG=       -DDEBUG
  
  IMAPDIR=     ../c-client
  PICODIR=     ../pico
--- 57,65 ----
  RM=          rm -f
  LN=          ln -s
  MAKE=        make
! OPTIMIZE=    -O2
  PROFILE=     # -pg
! DEBUG=       # -DDEBUG
  
  IMAPDIR=     ../c-client
  PICODIR=     ../pico
diff -r -c ../pine3.91.orig/pine/makefile.sun ./pine/makefile.sun
*** ../pine3.91.orig/pine/makefile.sun	Wed Oct  5 14:14:51 1994
--- ./pine/makefile.sun	Mon Mar 20 03:06:21 1995
***************
*** 57,65 ****
  RM=          rm -f
  LN=          ln -s
  MAKE=        make
! OPTIMIZE=    # -O
  PROFILE=     # -pg
! DEBUG=       -g -DDEBUG
  
  IMAPDIR=     ../c-client
  PICODIR=     ../pico
--- 57,65 ----
  RM=          rm -f
  LN=          ln -s
  MAKE=        make
! OPTIMIZE=    -O2
  PROFILE=     # -pg
! DEBUG=       # -g -DDEBUG
  
  IMAPDIR=     ../c-client
  PICODIR=     ../pico
diff -r -c ../pine3.91.orig/pine/osdep/os-sun.h ./pine/osdep/os-sun.h
*** ../pine3.91.orig/pine/osdep/os-sun.h	Tue Oct 11 06:30:00 1994
--- ./pine/osdep/os-sun.h	Mon Mar 20 03:06:21 1995
***************
*** 146,152 ****
  #define POSTPONED_MAIL            "postponed-mail"
  #define POSTPONED_MSGS            "postponed-msgs"
  #define INTERRUPTED_MAIL          ".pine-interrupted-mail"
! #define DF_MAIL_DIRECTORY         "mail"
  #define INBOX_NAME                "INBOX"
  #define DF_SIGNATURE_FILE         ".signature"
  #define DF_ELM_STYLE_SAVE         "no"
--- 146,152 ----
  #define POSTPONED_MAIL            "postponed-mail"
  #define POSTPONED_MSGS            "postponed-msgs"
  #define INTERRUPTED_MAIL          ".pine-interrupted-mail"
! #define DF_MAIL_DIRECTORY         "Mail"
  #define INBOX_NAME                "INBOX"
  #define DF_SIGNATURE_FILE         ".signature"
  #define DF_ELM_STYLE_SAVE         "no"
diff -r -c ../pine3.91.orig/pine/other.c ./pine/other.c
*** ../pine3.91.orig/pine/other.c	Sat Oct  8 08:29:44 1994
--- ./pine/other.c	Mon Mar 20 03:48:44 1995
***************
*** 1089,1094 ****
--- 1089,1098 ----
  	    return(h_config_compose_rejects_unqual);
  	  case F_FAKE_NEW_IN_NEWS:
  	    return(h_config_news_uses_recent);
+           case F_SEND_ONLY_8BIT:
+ 	    return(h_config_send_only_8bit);
+           case F_8BIT_IN_SUBJECT:
+ 	    return(h_config_ext_char_in_subject);
  	  default :
  	    return(NO_HELP);
          }
diff -r -c ../pine3.91.orig/pine/pine.h ./pine/pine.h
*** ../pine3.91.orig/pine/pine.h	Sat Oct  8 08:25:55 1994
--- ./pine/pine.h	Mon Mar 20 03:32:58 1995
***************
*** 600,606 ****
  #define	F_PRESERVE_START_STOP      40
  #define	F_COMPOSE_REJECTS_UNQUAL   41
  #define	F_FAKE_NEW_IN_NEWS	   42
! #define F_LAST_FEATURE		   42		 /* RESET WITH NEW FEATURES */
  
  #if (F_LAST_FEATURE > (LARGEST_BITMAP - 1))
     Whoa!  Too many features!
--- 600,608 ----
  #define	F_PRESERVE_START_STOP      40
  #define	F_COMPOSE_REJECTS_UNQUAL   41
  #define	F_FAKE_NEW_IN_NEWS	   42
! #define F_SEND_ONLY_8BIT           43
! #define F_8BIT_IN_SUBJECT          44
! #define F_LAST_FEATURE		   44		 /* RESET WITH NEW FEATURES */
  
  #if (F_LAST_FEATURE > (LARGEST_BITMAP - 1))
     Whoa!  Too many features!
diff -r -c ../pine3.91.orig/pine/pine.hlp ./pine/pine.hlp
*** ../pine3.91.orig/pine/pine.hlp	Tue Oct 11 09:47:48 1994
--- ./pine/pine.hlp	Mon Mar 20 05:08:01 1995
***************
*** 3560,3565 ****
--- 3560,3588 ----
  useful if you have accounts on multiple computers.
  
  <End of help on this topic>
+ ====== h_config_send_only_8bit =====
+          FEATURE: enable-send-only-8bit
+ 
+ This feature changes the original content-transfer-encoding scheme. If
+ set, Pine will use 8BIT instead of encoding 8 bit character into BASE64
+ or QUOTEQUOTED-PRINTABLE in mail body. (See also \"enable-8bit-in-
+ subject\".)
+ 
+ NOTE: This feature should only be set if you can make sure both the
+ sender and recipient are using 8 bit capable MTAs.
+ 
+ <End of help on this topic>
+ ====== h_config_ext_char_in_subject
+          FEATURE: enable-8bit-in-subject
+ 
+ This feature enables 8 bit ascii character editing in Subject field.
+ By default, subject field accepts 7 bit character only. (See also
+ \"enable-send-only-8bit\".)
+ 
+ NOTE: This feature should only be set if you can make sure both the
+ sender and recipient are using 8 bit capable MTAs.
+ 
+ <End of help on this topic>
  ====== h_config_attach_in_reply ======
           FEATURE: include-attachments-in-reply
  
diff -r -c ../pine3.91.orig/pine/send.c ./pine/send.c
*** ../pine3.91.orig/pine/send.c	Tue Oct 11 04:01:34 1994
--- ./pine/send.c	Mon Mar 20 03:31:52 1995
***************
*** 159,164 ****
--- 159,167 ----
  int        open_fcc();
  #endif   /* ANSI */
  
+ /* enable-8bit-in-subject feature */
+ extern ext_char_in_subject;
+ 
  
  /*
   * Buffer to hold pointers into pine data that's needed by pico. 
***************
*** 166,172 ****
   */
  static	PICO	pbuf;
  
- 
  /* 
   * Storage object where the FCC is to be written.
   * This is amazingly bogus.  Much work was done to put messages 
--- 169,174 ----
***************
*** 1755,1760 ****
--- 1757,1769 ----
          clear_cursor_pos();
  
  	dprint(1, (debugfile, "\n  ---- COMPOSER ----\n"));
+ 	
+ 	/* enable extended ascii char feature */
+ 	if (F_ON(F_8BIT_IN_SUBJECT, ps_global))
+ 	    ext_char_in_subject = 1;
+ 	else
+ 	    ext_char_in_subject = 0;  
+ 	
  	editor_result = pico(&pbuf);
  	dprint(4, (debugfile, "... composer returns (0x%x)\n", editor_result));
  
***************
*** 3395,3401 ****
  		body->type = TYPETEXT;
  
  	    if (new_encoding == ENCOTHER)
! 		new_encoding = ENC7BIT;  /* short lines, no 8 bit */
  	}
  	else if ((eight_bit_chars * 100L)/len < 30L) {
  	    /*
--- 3404,3414 ----
  		body->type = TYPETEXT;
  
  	    if (new_encoding == ENCOTHER)
! 	        if (F_ON(F_SEND_ONLY_8BIT, ps_global))
! 	            new_encoding = ENC8BIT;
! 	        else
! 		    new_encoding = ENC7BIT;    /* short lines, no 8 bit */ 
! 	      
  	}
  	else if ((eight_bit_chars * 100L)/len < 30L) {
  	    /*
***************
*** 3421,3427 ****
  	     * 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 */
  	}
      }
  
--- 3434,3445 ----
  	     * unlikely to be readable with > 30% of the
  	     * text encoded anyway, so we might as well save space...
  	     */
! 	    
! 	     if (F_ON(F_SEND_ONLY_8BIT, ps_global))
! 	         new_encoding = ENC8BIT;        
! 	     else
!   	         new_encoding = ENCBINARY;        /* > 30% 8 bit chars */
! 
  	}
      }
  
***************
*** 3942,3948 ****
  
  	switch (body->encoding) {	/* all else needs filtering */
  	  case ENC8BIT:			/* encode 8BIT into QUOTED-PRINTABLE */
! 	    gf_link_filter(gf_8bit_qp);
  	    break;
  
  	  case ENCBINARY:		/* encode binary into BASE64 */
--- 3960,3967 ----
  
  	switch (body->encoding) {	/* all else needs filtering */
  	  case ENC8BIT:			/* encode 8BIT into QUOTED-PRINTABLE */
! 	      if (F_OFF(F_SEND_ONLY_8BIT, ps_global))
!      	          gf_link_filter(gf_8bit_qp); 
  	    break;
  
  	  case ENCBINARY:		/* encode binary into BASE64 */
***************
*** 3998,4004 ****
      if (body->encoding)		/* note: encoding 7BIT never output! */
        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]);
      if (body->id) sprintf (*dst += strlen (*dst),"Content-ID: %s\015\012",
--- 4017,4025 ----
      if (body->encoding)		/* note: encoding 7BIT never output! */
        sprintf (*dst += strlen (*dst),"Content-Transfer-Encoding: %s\015\012",
  	       body_encodings[body->encoding == ENCBINARY ? ENCBASE64 :
! 			      body->encoding == ENC8BIT ? 
! 			      F_ON(F_SEND_ONLY_8BIT, ps_global) ? ENC8BIT :
! 			      ENCQUOTEDPRINTABLE : 
  			      body->encoding <= ENCMAX ? body->encoding :
  							 ENCOTHER]);
      if (body->id) sprintf (*dst += strlen (*dst),"Content-ID: %s\015\012",

--
 _____  _____                                              _____  ____  _____
|     \|  _  \ Ming-Yen Hsu, Database Lab. NCU Taiwan ROC |     \/    \|  |  |
|  |   |  _  < Computer Science & Information Engineering |  |  |  <--<|  |  |
|_____/|_____/ Electronic Mail : [email-masked] |__|__/\____/\_____|