Package: metamail
Version: 2.7-46
Severity: normal
Tags: patch


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux kogan 2.4.25 #18 Mon Jun 28 16:55:20 OMSST 2004 i686
Locale: LANG=ru_RU.koi8r, LC_CTYPE=ru_RU.koi8r

Versions of packages metamail depends on:
ii  libc6                       2.3.2.ds1-11 GNU C Library: Shared libraries an
ii  libncurses5                 5.4-3        Shared libraries for terminal hand

-- no debconf information
8-bit text/plain e-mail are common in ex-USSR countries. Metamail itself
works with 8-bit transfer-encoding just fine, but metasend script treats
-e "8bit" like -e "quoted-printable". Attached patch should fix this
problem.

*** metasend.old        Thu Dec 16 17:55:09 2004
--- metasend.new        Thu Dec 16 17:58:57 2004
***************
*** 135,144 ****
--- 135,145 ----
                    encode=$1
                    case "$encode" in
                        "base64")       encodingprog="mimencode -b";;
                        "x-uue")        encodingprog="uuencode \$datafile";;
                        "7bit")         encodingprog=cat;;
+                       "8bit")         encodingprog=cat;;
                        *)              encodingprog="mimencode -q"
                                        encode=quoted-printable ;;
                    esac
                    shift ;;
  
***************
*** 322,331 ****
--- 323,333 ----
                        echo "Do you want to encode this data for sending 
through the mail?"
                        echo "  1 -- No, it is already in 7 bit ASCII"
                        echo "  2 -- Yes, encode in base64 (most efficient)"
                        echo "  3 -- Yes, encode in quoted-printable (less 
efficient, more readable)"
                        echo "  4 -- Yes, encode it using uuencode (not 
standard, being phased out)"
+                       echo "  5 -- No, it is 8 bit extended ASCII"
                        read encode
                        looping=0
                        case "$encode" in
                                1) encodingprog=cat
                                   encode=7bit ;;
***************
*** 333,342 ****
--- 335,346 ----
                                   encode=base64 ;;
                                3) encodingprog="mimencode -q"
                                   encode=quoted-printable ;;
                                4) encodingprog="uuencode $datafile"
                                   encode=x-uue ;;
+                               5) encodingprog=cat
+                                  encode=8bit ;;
                                *) echo Unrecognized answer, please try again.
                                   looping=1 ;;
                        esac
                done
            fi
***************
*** 423,432 ****
--- 427,437 ----
        else
                case "$encode" in
                        base64) encodingprog="mimencode -b" ;;
                        x-uue)  encodingprog="uuencode $datafile" ;;
                        7bit)   encodingprog=cat ;;
+                       8bit)   encodingprog=cat ;;
                        *) encodingprog="mimencode -q"
                           encode=quoted-printable ;;
                esac
        fi
  fi

Reply via email to